)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Tap devices are removed when host is rebooted"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"WIP"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"When a VM is deployed with ovs port, tap devies disappear when"},{"line_number":12,"context_line":"host is rebooted. This patchset fixes the problem by updating"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1f485f77_4c56182c","line":9,"updated":"2017-11-13 14:58:25.000000000","message":"remove WIP","commit_id":"bc5f1ce3788b11f3b0443bb719e0cf7e30c34b9d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"WIP"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"When a VM is deployed with ovs port, tap devies disappear when"},{"line_number":12,"context_line":"host is rebooted. This patchset fixes the problem by updating"},{"line_number":13,"context_line":"corresponding trunk adapters with mtu, ovs external ids"},{"line_number":14,"context_line":"and ovs bridge name. pvm-rest under the covers will restore tap"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1f485f77_0c36e004","line":11,"range":{"start_line":11,"start_character":41,"end_line":11,"end_character":47},"updated":"2017-11-13 14:58:25.000000000","message":"nit: spelling","commit_id":"bc5f1ce3788b11f3b0443bb719e0cf7e30c34b9d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":12,"context_line":"host is rebooted. This patchset fixes the problem by updating"},{"line_number":13,"context_line":"corresponding trunk adapters with mtu, ovs external ids"},{"line_number":14,"context_line":"and ovs bridge name. pvm-rest under the covers will restore tap"},{"line_number":15,"context_line":"devies."},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: Ic57f946bbfaed2dd4b61121901b8c7e61fee1d69"},{"line_number":18,"context_line":"Closes-Bug: #1731548"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1f485f77_4c04d817","line":15,"updated":"2017-11-13 14:58:25.000000000","message":"nit: spelling","commit_id":"bc5f1ce3788b11f3b0443bb719e0cf7e30c34b9d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Tap devices are removed when host is rebooted"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"When a VM is deployed with ovs port, tap devies disappear when"},{"line_number":10,"context_line":"host is rebooted. This patchset fixes the problem by updating"},{"line_number":11,"context_line":"corresponding trunk adapters with mtu, ovs external ids"},{"line_number":12,"context_line":"and ovs bridge name. pvm-rest under the covers will restore tap"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1f485f77_27289784","line":9,"range":{"start_line":9,"start_character":41,"end_line":9,"end_character":47},"updated":"2017-11-13 14:58:25.000000000","message":"nit: spelling","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":10,"context_line":"host is rebooted. This patchset fixes the problem by updating"},{"line_number":11,"context_line":"corresponding trunk adapters with mtu, ovs external ids"},{"line_number":12,"context_line":"and ovs bridge name. pvm-rest under the covers will restore tap"},{"line_number":13,"context_line":"devies."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Change-Id: Ic57f946bbfaed2dd4b61121901b8c7e61fee1d69"},{"line_number":16,"context_line":"Closes-Bug: #1731548"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1f485f77_e7215fa1","line":13,"range":{"start_line":13,"start_character":0,"end_line":13,"end_character":6},"updated":"2017-11-13 14:58:25.000000000","message":"nit: spelling","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"}],"nova_powervm/virt/powervm/vif.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"17175b0168b24c987c03b06b22cc0813ea706f0a","unresolved":false,"context_lines":[{"line_number":632,"context_line":"                slot_num\u003dslot_num, ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":633,"context_line":"                ovs_ext_ids\u003dstr(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":634,"context_line":"        else:"},{"line_number":635,"context_line":"            # When a VM is deployed with OVS vif and corresponding"},{"line_number":636,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":637,"context_line":"            # agent. ovs-vsctl show does not show tap devies under"},{"line_number":638,"context_line":"            # br-int anymore. This problem is fixed by recreating them"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_167966fb","line":635,"updated":"2017-11-11 17:35:53.000000000","message":"Include the bug number here","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"a409f236cfa64c50cfd325efdb1e5521935f67c4","unresolved":false,"context_lines":[{"line_number":632,"context_line":"                slot_num\u003dslot_num, ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":633,"context_line":"                ovs_ext_ids\u003dstr(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":634,"context_line":"        else:"},{"line_number":635,"context_line":"            # When a VM is deployed with OVS vif and corresponding"},{"line_number":636,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":637,"context_line":"            # agent. ovs-vsctl show does not show tap devies under"},{"line_number":638,"context_line":"            # br-int anymore. This problem is fixed by recreating them"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_d682aec8","line":635,"in_reply_to":"1f485f77_167966fb","updated":"2017-11-11 17:42:54.000000000","message":"Done","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"17175b0168b24c987c03b06b22cc0813ea706f0a","unresolved":false,"context_lines":[{"line_number":642,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":643,"context_line":"            # for the instance and filter them for this specific vif."},{"line_number":644,"context_line":"            # Then its corresponding trunk adaptes are retrieved and"},{"line_number":645,"context_line":"            # mtu, device name, ovs extennal ids and ovs bridege are"},{"line_number":646,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":647,"context_line":"            # re-associate tap device to VM."},{"line_number":648,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_76241a0e","line":645,"range":{"start_line":645,"start_character":19,"end_line":645,"end_character":30},"updated":"2017-11-11 17:35:53.000000000","message":"pretty sure not","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"a409f236cfa64c50cfd325efdb1e5521935f67c4","unresolved":false,"context_lines":[{"line_number":642,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":643,"context_line":"            # for the instance and filter them for this specific vif."},{"line_number":644,"context_line":"            # Then its corresponding trunk adaptes are retrieved and"},{"line_number":645,"context_line":"            # mtu, device name, ovs extennal ids and ovs bridege are"},{"line_number":646,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":647,"context_line":"            # re-associate tap device to VM."},{"line_number":648,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_b68732d8","line":645,"range":{"start_line":645,"start_character":19,"end_line":645,"end_character":30},"in_reply_to":"1f485f77_76241a0e","updated":"2017-11-11 17:42:54.000000000","message":"Done","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"17175b0168b24c987c03b06b22cc0813ea706f0a","unresolved":false,"context_lines":[{"line_number":655,"context_line":""},{"line_number":656,"context_line":"            trunks \u003d pvm_cna.find_trunks(self.adapter, cna_w)"},{"line_number":657,"context_line":"            for trunk in trunks:"},{"line_number":658,"context_line":"                # below mentioned set_parm_value calls are temporary."},{"line_number":659,"context_line":"                # In a separate pypowervm change in future, corresponding"},{"line_number":660,"context_line":"                # methods will be made avaialble to set these values."},{"line_number":661,"context_line":"                # When such a change is available in pypowervm, modify"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_96279613","line":658,"updated":"2017-11-11 17:35:53.000000000","message":"Mark this comment with a TODO","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"a409f236cfa64c50cfd325efdb1e5521935f67c4","unresolved":false,"context_lines":[{"line_number":655,"context_line":""},{"line_number":656,"context_line":"            trunks \u003d pvm_cna.find_trunks(self.adapter, cna_w)"},{"line_number":657,"context_line":"            for trunk in trunks:"},{"line_number":658,"context_line":"                # below mentioned set_parm_value calls are temporary."},{"line_number":659,"context_line":"                # In a separate pypowervm change in future, corresponding"},{"line_number":660,"context_line":"                # methods will be made avaialble to set these values."},{"line_number":661,"context_line":"                # When such a change is available in pypowervm, modify"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_966c3637","line":658,"in_reply_to":"1f485f77_96279613","updated":"2017-11-11 17:42:54.000000000","message":"Done","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"17175b0168b24c987c03b06b22cc0813ea706f0a","unresolved":false,"context_lines":[{"line_number":663,"context_line":"                # will be used."},{"line_number":664,"context_line":"                trunk.set_parm_value(\u0027ConfiguredMTU\u0027,"},{"line_number":665,"context_line":"                                     mtu, attrib\u003dc.ATTR_KSV160)"},{"line_number":666,"context_line":"                trunk.set_parm_value(\u0027DeviceName\u0027, dev_name)"},{"line_number":667,"context_line":"                trunk.set_parm_value(\u0027OvsPortExternalIds\u0027,"},{"line_number":668,"context_line":"                                     meta_attrs, attrib\u003dc.ATTR_KSV160)"},{"line_number":669,"context_line":"                trunk.set_parm_value(\u0027OvsBridge\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_361ea2ba","line":666,"range":{"start_line":666,"start_character":16,"end_line":666,"end_character":60},"updated":"2017-11-11 17:35:53.000000000","message":"Not needed.","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"a409f236cfa64c50cfd325efdb1e5521935f67c4","unresolved":false,"context_lines":[{"line_number":663,"context_line":"                # will be used."},{"line_number":664,"context_line":"                trunk.set_parm_value(\u0027ConfiguredMTU\u0027,"},{"line_number":665,"context_line":"                                     mtu, attrib\u003dc.ATTR_KSV160)"},{"line_number":666,"context_line":"                trunk.set_parm_value(\u0027DeviceName\u0027, dev_name)"},{"line_number":667,"context_line":"                trunk.set_parm_value(\u0027OvsPortExternalIds\u0027,"},{"line_number":668,"context_line":"                                     meta_attrs, attrib\u003dc.ATTR_KSV160)"},{"line_number":669,"context_line":"                trunk.set_parm_value(\u0027OvsBridge\u0027,"}],"source_content_type":"text/x-python","patch_set":1,"id":"1f485f77_5676be08","line":666,"range":{"start_line":666,"start_character":16,"end_line":666,"end_character":60},"in_reply_to":"1f485f77_361ea2ba","updated":"2017-11-11 17:42:54.000000000","message":"Done","commit_id":"7e40a7f6b81d02e9ca88b459dbe1d3650002548e"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"49678d8a47b040c924cbf10d7e2ff5732e0dcbd8","unresolved":false,"context_lines":[{"line_number":613,"context_line":"        :return: The new vif that was created.  Only returned if new_vif is"},{"line_number":614,"context_line":"                 set to True.  Otherwise None is expected."},{"line_number":615,"context_line":"        \"\"\""},{"line_number":616,"context_line":"        # NOTE(svenkat): Due to bug 1731657, which we can\u0027t backport, we"},{"line_number":617,"context_line":"        #  need to manually fix the child element ordering for CNA"},{"line_number":618,"context_line":"        child_order \u003d list(pvm_net.CNA._child_order)"},{"line_number":619,"context_line":"        child_order.remove(\u0027VirtualNetworks\u0027)"},{"line_number":620,"context_line":"        child_order.append(\u0027VirtualNetworks\u0027)"},{"line_number":621,"context_line":"        pvm_net.CNA._child_order \u003d tuple(child_order)"},{"line_number":622,"context_line":""},{"line_number":623,"context_line":"        lpar_uuid \u003d vm.get_pvm_uuid(self.instance)"},{"line_number":624,"context_line":"        mgmt_uuid \u003d pvm_par.get_mgmt_partition(self.adapter).uuid"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_b6ee1286","line":621,"range":{"start_line":616,"start_character":8,"end_line":621,"end_character":53},"updated":"2017-11-11 18:12:38.000000000","message":"We really don\u0027t need to do this on every plug - just once when we load up pypowervm.wrappers.network.  So we could move this chunk to the top of the file - as long as we don\u0027t lose sight of it and remember to remove it when we fix the rest (big TODO comment, at least).","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"53689f85b454f87f1ab7227e6f5ef85eceb3f500","unresolved":false,"context_lines":[{"line_number":613,"context_line":"        :return: The new vif that was created.  Only returned if new_vif is"},{"line_number":614,"context_line":"                 set to True.  Otherwise None is expected."},{"line_number":615,"context_line":"        \"\"\""},{"line_number":616,"context_line":"        # NOTE(svenkat): Due to bug 1731657, which we can\u0027t backport, we"},{"line_number":617,"context_line":"        #  need to manually fix the child element ordering for CNA"},{"line_number":618,"context_line":"        child_order \u003d list(pvm_net.CNA._child_order)"},{"line_number":619,"context_line":"        child_order.remove(\u0027VirtualNetworks\u0027)"},{"line_number":620,"context_line":"        child_order.append(\u0027VirtualNetworks\u0027)"},{"line_number":621,"context_line":"        pvm_net.CNA._child_order \u003d tuple(child_order)"},{"line_number":622,"context_line":""},{"line_number":623,"context_line":"        lpar_uuid \u003d vm.get_pvm_uuid(self.instance)"},{"line_number":624,"context_line":"        mgmt_uuid \u003d pvm_par.get_mgmt_partition(self.adapter).uuid"}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_dc6f6dc3","line":621,"range":{"start_line":616,"start_character":8,"end_line":621,"end_character":53},"in_reply_to":"1f485f77_b6ee1286","updated":"2017-11-12 01:06:13.000000000","message":"Done","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"49678d8a47b040c924cbf10d7e2ff5732e0dcbd8","unresolved":false,"context_lines":[{"line_number":643,"context_line":"            # When a VM is deployed with OVS vif and corresponding"},{"line_number":644,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":645,"context_line":"            # agent. ovs-vsctl show does not show tap devies under"},{"line_number":646,"context_line":"            # br-int anymore. This problem is fixed by recreating them"},{"line_number":647,"context_line":"            # during host init (nova-powervm service init). In this"},{"line_number":648,"context_line":"            # path, vif plug is invoked with new_vif set to False."},{"line_number":649,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_f6992a1f","line":646,"updated":"2017-11-11 18:12:38.000000000","message":"May be worth mentioning the effect to the end user - that their VM has no network connectivity.","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"53689f85b454f87f1ab7227e6f5ef85eceb3f500","unresolved":false,"context_lines":[{"line_number":643,"context_line":"            # When a VM is deployed with OVS vif and corresponding"},{"line_number":644,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":645,"context_line":"            # agent. ovs-vsctl show does not show tap devies under"},{"line_number":646,"context_line":"            # br-int anymore. This problem is fixed by recreating them"},{"line_number":647,"context_line":"            # during host init (nova-powervm service init). In this"},{"line_number":648,"context_line":"            # path, vif plug is invoked with new_vif set to False."},{"line_number":649,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_9c69f5bf","line":646,"in_reply_to":"1f485f77_f6992a1f","updated":"2017-11-12 01:06:13.000000000","message":"Done","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"49678d8a47b040c924cbf10d7e2ff5732e0dcbd8","unresolved":false,"context_lines":[{"line_number":649,"context_line":""},{"line_number":650,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":651,"context_line":"            # for the instance and filter them for this specific vif."},{"line_number":652,"context_line":"            # Then its corresponding trunk adaptes are retrieved and"},{"line_number":653,"context_line":"            # mtu, ovs extennal ids and ovs bridege are"},{"line_number":654,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":655,"context_line":"            # re-associate tap device to VM."}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_56fd9e38","line":652,"range":{"start_line":652,"start_character":43,"end_line":652,"end_character":50},"updated":"2017-11-11 18:12:38.000000000","message":"adapters","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"53689f85b454f87f1ab7227e6f5ef85eceb3f500","unresolved":false,"context_lines":[{"line_number":649,"context_line":""},{"line_number":650,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":651,"context_line":"            # for the instance and filter them for this specific vif."},{"line_number":652,"context_line":"            # Then its corresponding trunk adaptes are retrieved and"},{"line_number":653,"context_line":"            # mtu, ovs extennal ids and ovs bridege are"},{"line_number":654,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":655,"context_line":"            # re-associate tap device to VM."}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_7c6639f0","line":652,"range":{"start_line":652,"start_character":43,"end_line":652,"end_character":50},"in_reply_to":"1f485f77_56fd9e38","updated":"2017-11-12 01:06:13.000000000","message":"Done","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"49678d8a47b040c924cbf10d7e2ff5732e0dcbd8","unresolved":false,"context_lines":[{"line_number":654,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":655,"context_line":"            # re-associate tap device to VM."},{"line_number":656,"context_line":""},{"line_number":657,"context_line":"            # Update CNA with ovs_ext_ids and ovs_bridge attrs"},{"line_number":658,"context_line":"            # and post."},{"line_number":659,"context_line":"            cna_w_list \u003d vm.get_cnas(self.adapter, self.instance)"},{"line_number":660,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_9688b6c6","line":657,"updated":"2017-11-11 18:12:38.000000000","message":"It would be nice to cache some of these GET payloads.  I don\u0027t see how to do it offhand, and it should probably be for a future change set anyway.  So please add a TODO.","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"53689f85b454f87f1ab7227e6f5ef85eceb3f500","unresolved":false,"context_lines":[{"line_number":654,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":655,"context_line":"            # re-associate tap device to VM."},{"line_number":656,"context_line":""},{"line_number":657,"context_line":"            # Update CNA with ovs_ext_ids and ovs_bridge attrs"},{"line_number":658,"context_line":"            # and post."},{"line_number":659,"context_line":"            cna_w_list \u003d vm.get_cnas(self.adapter, self.instance)"},{"line_number":660,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"1f485f77_3c60c1ce","line":657,"in_reply_to":"1f485f77_9688b6c6","updated":"2017-11-12 01:06:13.000000000","message":"Done","commit_id":"7f4cd6dac6d20169a3dda9650be65d899e3efe1b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":26,"context_line":"from oslo_serialization import jsonutils"},{"line_number":27,"context_line":"from oslo_utils import excutils"},{"line_number":28,"context_line":"from oslo_utils import importutils"},{"line_number":29,"context_line":"import pypowervm.const as c"},{"line_number":30,"context_line":"from pypowervm import exceptions as pvm_ex"},{"line_number":31,"context_line":"from pypowervm.tasks import cna as pvm_cna"},{"line_number":32,"context_line":"from pypowervm.tasks import partition as pvm_par"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_274d3772","line":29,"range":{"start_line":29,"start_character":26,"end_line":29,"end_character":27},"updated":"2017-11-13 14:58:25.000000000","message":"let\u0027s call this pvm_c or something like that to maintain the prefixing of all things pypowervm with pvm_","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":61,"context_line":"               VIF_TYPE_PVM_SRIOV:"},{"line_number":62,"context_line":"               \u0027nova_powervm.virt.powervm.vif.PvmVnicSriovVifDriver\u0027}"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"# NOTE(svenkat): Due to bug 1731657, which we can\u0027t backport, we"},{"line_number":65,"context_line":"# need to manually fix the child element ordering for CNA"},{"line_number":66,"context_line":"# TODO(svenkat) This will be removed in future when pypowervm"},{"line_number":67,"context_line":"# is fixed."}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_471ef3ba","line":64,"updated":"2017-11-13 14:58:25.000000000","message":"let\u0027s reword this...\n\n# NOTE(svenkat): Manually fixing the CNA child ordering as a workaround for bug 1731657 until a new version of pypowervm is available.","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":641,"context_line":"                slot_num\u003dslot_num, ovs_bridge\u003dvif[\u0027network\u0027][\u0027bridge\u0027],"},{"line_number":642,"context_line":"                ovs_ext_ids\u003dstr(meta_attrs), configured_mtu\u003dmtu)[0]"},{"line_number":643,"context_line":"        else:"},{"line_number":644,"context_line":"            # Bug : https://bugs.launchpad.net/nova-powervm/+bug/1731548"},{"line_number":645,"context_line":"            # When a VM is deployed with OVS vif and corresponding"},{"line_number":646,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":647,"context_line":"            # agent. ovs-vsctl show does not show tap devices under"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_8e2be380","line":644,"updated":"2017-11-13 14:58:25.000000000","message":"this comment is confusing.","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":643,"context_line":"        else:"},{"line_number":644,"context_line":"            # Bug : https://bugs.launchpad.net/nova-powervm/+bug/1731548"},{"line_number":645,"context_line":"            # When a VM is deployed with OVS vif and corresponding"},{"line_number":646,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":647,"context_line":"            # agent. ovs-vsctl show does not show tap devices under"},{"line_number":648,"context_line":"            # br-int anymore. This problem is fixed by recreating them"},{"line_number":649,"context_line":"            # during host init (nova-powervm service init). In this"},{"line_number":650,"context_line":"            # path, vif plug is invoked with new_vif set to False."}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_6b289933","line":647,"range":{"start_line":646,"start_character":48,"end_line":647,"end_character":19},"updated":"2017-11-13 14:58:25.000000000","message":"Sridhar says he doesn\u0027t think it\u0027s the neutron agent, and if we\u0027re not sure we shouldn\u0027t be pointing fingers, so just end the sentence with \"being discarded\".","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":646,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":647,"context_line":"            # agent. ovs-vsctl show does not show tap devices under"},{"line_number":648,"context_line":"            # br-int anymore. This problem is fixed by recreating them"},{"line_number":649,"context_line":"            # during host init (nova-powervm service init). In this"},{"line_number":650,"context_line":"            # path, vif plug is invoked with new_vif set to False."},{"line_number":651,"context_line":""},{"line_number":652,"context_line":"            # Due to missing tap devices after host reboot, VM will"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_e7839f03","line":649,"range":{"start_line":649,"start_character":32,"end_line":649,"end_character":44},"updated":"2017-11-13 14:58:25.000000000","message":"nova compute","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":646,"context_line":"            # host is rebooted, tap devices are discarded by neutron"},{"line_number":647,"context_line":"            # agent. ovs-vsctl show does not show tap devices under"},{"line_number":648,"context_line":"            # br-int anymore. This problem is fixed by recreating them"},{"line_number":649,"context_line":"            # during host init (nova-powervm service init). In this"},{"line_number":650,"context_line":"            # path, vif plug is invoked with new_vif set to False."},{"line_number":651,"context_line":""},{"line_number":652,"context_line":"            # Due to missing tap devices after host reboot, VM will"},{"line_number":653,"context_line":"            # lost network connectivity."}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_4bb95de7","line":650,"range":{"start_line":649,"start_character":60,"end_line":650,"end_character":66},"updated":"2017-11-13 14:58:25.000000000","message":"remove this sentence","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":650,"context_line":"            # path, vif plug is invoked with new_vif set to False."},{"line_number":651,"context_line":""},{"line_number":652,"context_line":"            # Due to missing tap devices after host reboot, VM will"},{"line_number":653,"context_line":"            # lost network connectivity."},{"line_number":654,"context_line":""},{"line_number":655,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":656,"context_line":"            # for the instance and filter them for this specific vif."}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_2bb2a195","line":653,"range":{"start_line":653,"start_character":14,"end_line":653,"end_character":18},"updated":"2017-11-13 14:58:25.000000000","message":"lose","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":652,"context_line":"            # Due to missing tap devices after host reboot, VM will"},{"line_number":653,"context_line":"            # lost network connectivity."},{"line_number":654,"context_line":""},{"line_number":655,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":656,"context_line":"            # for the instance and filter them for this specific vif."},{"line_number":657,"context_line":"            # Then its corresponding trunk adapters are retrieved and"},{"line_number":658,"context_line":"            # mtu, ovs extennal ids and ovs bridege are"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_4baefd98","line":655,"range":{"start_line":655,"start_character":14,"end_line":655,"end_character":48},"updated":"2017-11-13 14:58:25.000000000","message":"there\u0027s no \"same\" here... I think you mean \"It does this by...\"","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":655,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":656,"context_line":"            # for the instance and filter them for this specific vif."},{"line_number":657,"context_line":"            # Then its corresponding trunk adapters are retrieved and"},{"line_number":658,"context_line":"            # mtu, ovs extennal ids and ovs bridege are"},{"line_number":659,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":660,"context_line":"            # re-associate tap device to VM."},{"line_number":661,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_8bbbd5c2","line":658,"range":{"start_line":658,"start_character":23,"end_line":658,"end_character":31},"updated":"2017-11-13 14:58:25.000000000","message":"nit: spelling","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":655,"context_line":"            # Below mentioned code does the same by retrieving cnas"},{"line_number":656,"context_line":"            # for the instance and filter them for this specific vif."},{"line_number":657,"context_line":"            # Then its corresponding trunk adapters are retrieved and"},{"line_number":658,"context_line":"            # mtu, ovs extennal ids and ovs bridege are"},{"line_number":659,"context_line":"            # updated. pvm-rest-app under the covers does the rest to"},{"line_number":660,"context_line":"            # re-associate tap device to VM."},{"line_number":661,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_ab63311a","line":658,"range":{"start_line":658,"start_character":44,"end_line":658,"end_character":51},"updated":"2017-11-13 14:58:25.000000000","message":"nit: spelling","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":661,"context_line":""},{"line_number":662,"context_line":"            # Update CNA with ovs_ext_ids and ovs_bridge attrs"},{"line_number":663,"context_line":"            # and post."},{"line_number":664,"context_line":"            # TODO(svenkat) It will be nice to cache trunk adapter"},{"line_number":665,"context_line":"            # as update payload. In a future patchset, such a"},{"line_number":666,"context_line":"            # caching technique should be considered and implemented"},{"line_number":667,"context_line":"            cna_w_list \u003d vm.get_cnas(self.adapter, self.instance)"}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_4ef60bfc","line":664,"updated":"2017-11-13 14:58:25.000000000","message":"clarify","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":671,"context_line":""},{"line_number":672,"context_line":"            trunks \u003d pvm_cna.find_trunks(self.adapter, cna_w)"},{"line_number":673,"context_line":"            for trunk in trunks:"},{"line_number":674,"context_line":"                # TODO(svenkat) below mentioned set_parm_value calls are"},{"line_number":675,"context_line":"                # temporary."},{"line_number":676,"context_line":"                # In a separate pypowervm change in future, corresponding"},{"line_number":677,"context_line":"                # methods will be made avaialble to set these values."}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_0b68051f","line":674,"updated":"2017-11-13 14:58:25.000000000","message":"note: there should only be one trunk","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"050f38b52d45024aa18b7ed735990117ecd97af6","unresolved":false,"context_lines":[{"line_number":674,"context_line":"                # TODO(svenkat) below mentioned set_parm_value calls are"},{"line_number":675,"context_line":"                # temporary."},{"line_number":676,"context_line":"                # In a separate pypowervm change in future, corresponding"},{"line_number":677,"context_line":"                # methods will be made avaialble to set these values."},{"line_number":678,"context_line":"                # When such a change is available in pypowervm, modify"},{"line_number":679,"context_line":"                # these to match new methods. Until then set_parm_value"},{"line_number":680,"context_line":"                # will be used."}],"source_content_type":"text/x-python","patch_set":4,"id":"1f485f77_8e02c308","line":677,"range":{"start_line":677,"start_character":39,"end_line":677,"end_character":48},"updated":"2017-11-13 14:58:25.000000000","message":"nit: spelling","commit_id":"be0d68111bdf1894c9328b9213c7bd5e58cd6f9b"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"19b60127eccb81d98f4e337d5af82fe738a9f291","unresolved":false,"context_lines":[{"line_number":61,"context_line":"               VIF_TYPE_PVM_SRIOV:"},{"line_number":62,"context_line":"               \u0027nova_powervm.virt.powervm.vif.PvmVnicSriovVifDriver\u0027}"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"# NOTE(svenkat): Manually adjust CNA child ordering to workaround bug 1731657"},{"line_number":65,"context_line":"# TODO(svenkat) Remove workaround when pypowervm is fixed"},{"line_number":66,"context_line":"child_order \u003d list(pvm_net.CNA._child_order)"},{"line_number":67,"context_line":"child_order.remove(\u0027VirtualNetworks\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1f485f77_9108a4d9","line":64,"range":{"start_line":64,"start_character":55,"end_line":64,"end_character":65},"updated":"2017-11-13 15:48:13.000000000","message":"work around","commit_id":"8f5e82a9fcfa9ddfaef756bc28a7629eb923dc52"}]}
