)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6b49f29524b6f87953b00adbb86661b980f20343","unresolved":false,"context_lines":[{"line_number":25,"context_line":"there are no physical network in incoming vif detail, it is retreived using"},{"line_number":26,"context_line":"network id. Refer to"},{"line_number":27,"context_line":"https://bugs.launchpad.net/networking-powervm/+bug/1651129"},{"line_number":28,"context_line":"for a fix on neutron_powervm to avoid this moving forward."},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"Second part is to retrieve physical ports from the environment using"},{"line_number":31,"context_line":"physical_network against port label attribute."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"ba5201f7_f4b7def2","line":28,"range":{"start_line":28,"start_character":13,"end_line":28,"end_character":28},"updated":"2017-01-03 21:58:08.000000000","message":"networking-powervm","commit_id":"6f9b83ef23a2b34cf21869f4f72579fc4b35d373"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"7a9618afd22ded04f665865e5d3eed1586614f74","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Sridhar Venkat \u003csvenkat@us.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-01-16 20:41:51 -0500"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP: Migration scenario, SR-IOV vif contains source physical ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is not a bug, this is related to future work to support migration for"},{"line_number":10,"context_line":"SR-IOV VMs. In migration scenarios, SR-IOV plug mechanism receives vif and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7a3c09a3_d3c0df52","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":3},"updated":"2017-01-17 15:31:19.000000000","message":"We ready to remove WIP?","commit_id":"d76a354e3f3ed8364df9830b4c21682f779ad04a"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"c898e74228cce15fb7c43e60584ec5d6bca8731b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Sridhar Venkat \u003csvenkat@us.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2017-01-16 20:41:51 -0500"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"WIP: Migration scenario, SR-IOV vif contains source physical ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This is not a bug, this is related to future work to support migration for"},{"line_number":10,"context_line":"SR-IOV VMs. In migration scenarios, SR-IOV plug mechanism receives vif and"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7a3c09a3_b0c6db65","line":7,"range":{"start_line":7,"start_character":0,"end_line":7,"end_character":3},"in_reply_to":"7a3c09a3_d3c0df52","updated":"2017-01-17 18:15:46.000000000","message":"Done","commit_id":"d76a354e3f3ed8364df9830b4c21682f779ad04a"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"7a9618afd22ded04f665865e5d3eed1586614f74","unresolved":false,"context_lines":[{"line_number":30,"context_line":"Second part is to retrieve physical ports from the environment using"},{"line_number":31,"context_line":"physical_network against port label attribute."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"This is work in progress, unit test added to this patchset."},{"line_number":34,"context_line":"Let me know if there are any concerns with this approach to deploy and"},{"line_number":35,"context_line":"attach of vif to vm as this helps with migration scenario."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Change-Id: Ic511314095472da21c3a5588d77955c939b7e0f1"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7a3c09a3_b3899328","line":35,"range":{"start_line":33,"start_character":0,"end_line":35,"end_character":58},"updated":"2017-01-17 15:31:19.000000000","message":"Ready to remove?","commit_id":"d76a354e3f3ed8364df9830b4c21682f779ad04a"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"c898e74228cce15fb7c43e60584ec5d6bca8731b","unresolved":false,"context_lines":[{"line_number":30,"context_line":"Second part is to retrieve physical ports from the environment using"},{"line_number":31,"context_line":"physical_network against port label attribute."},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"This is work in progress, unit test added to this patchset."},{"line_number":34,"context_line":"Let me know if there are any concerns with this approach to deploy and"},{"line_number":35,"context_line":"attach of vif to vm as this helps with migration scenario."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"Change-Id: Ic511314095472da21c3a5588d77955c939b7e0f1"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"7a3c09a3_f0a223ad","line":35,"range":{"start_line":33,"start_character":0,"end_line":35,"end_character":58},"in_reply_to":"7a3c09a3_b3899328","updated":"2017-01-17 18:15:46.000000000","message":"Done","commit_id":"d76a354e3f3ed8364df9830b4c21682f779ad04a"}],"nova_powervm/virt/powervm/vif.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6b49f29524b6f87953b00adbb86661b980f20343","unresolved":false,"context_lines":[{"line_number":633,"context_line":"        # Physical ports for the given physical network"},{"line_number":634,"context_line":"        msys \u003d pvm_ms.System.get(self.adapter)[0]"},{"line_number":635,"context_line":"        mapping \u003d {}"},{"line_number":636,"context_line":"        for sriov in msys.asio_config.sriov_adapters:"},{"line_number":637,"context_line":"            for pport_w in sriov.phys_ports:"},{"line_number":638,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":639,"context_line":"                if label not in mapping:"},{"line_number":640,"context_line":"                    mapping[label] \u003d []"},{"line_number":641,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":642,"context_line":"        pports \u003d None"},{"line_number":643,"context_line":"        if physnet in mapping:"},{"line_number":644,"context_line":"            pports \u003d mapping[physnet]"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_811e5361","line":641,"range":{"start_line":636,"start_character":0,"end_line":641,"end_character":55},"updated":"2017-01-03 21:58:08.000000000","message":"I think it\u0027s time to put this block into a helper method in pypowervm.tasks.sriov.","commit_id":"6f9b83ef23a2b34cf21869f4f72579fc4b35d373"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"13e0779df183f0ed429f4ad49a597bfe618ddc09","unresolved":false,"context_lines":[{"line_number":633,"context_line":"        # Physical ports for the given physical network"},{"line_number":634,"context_line":"        msys \u003d pvm_ms.System.get(self.adapter)[0]"},{"line_number":635,"context_line":"        mapping \u003d {}"},{"line_number":636,"context_line":"        for sriov in msys.asio_config.sriov_adapters:"},{"line_number":637,"context_line":"            for pport_w in sriov.phys_ports:"},{"line_number":638,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":639,"context_line":"                if label not in mapping:"},{"line_number":640,"context_line":"                    mapping[label] \u003d []"},{"line_number":641,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":642,"context_line":"        pports \u003d None"},{"line_number":643,"context_line":"        if physnet in mapping:"},{"line_number":644,"context_line":"            pports \u003d mapping[physnet]"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_8a801148","line":641,"range":{"start_line":636,"start_character":0,"end_line":641,"end_character":55},"in_reply_to":"ba5201f7_811e5361","updated":"2017-01-04 13:39:03.000000000","message":"I will move this code to a utility method in pypowervm.","commit_id":"6f9b83ef23a2b34cf21869f4f72579fc4b35d373"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"6b49f29524b6f87953b00adbb86661b980f20343","unresolved":false,"context_lines":[{"line_number":631,"context_line":"                  {\u0027physnet\u0027: physnet, \u0027inst\u0027: self.instance.name})"},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        # Physical ports for the given physical network"},{"line_number":634,"context_line":"        msys \u003d pvm_ms.System.get(self.adapter)[0]"},{"line_number":635,"context_line":"        mapping \u003d {}"},{"line_number":636,"context_line":"        for sriov in msys.asio_config.sriov_adapters:"},{"line_number":637,"context_line":"            for pport_w in sriov.phys_ports:"},{"line_number":638,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":639,"context_line":"                if label not in mapping:"},{"line_number":640,"context_line":"                    mapping[label] \u003d []"},{"line_number":641,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":642,"context_line":"        pports \u003d None"},{"line_number":643,"context_line":"        if physnet in mapping:"},{"line_number":644,"context_line":"            pports \u003d mapping[physnet]"},{"line_number":645,"context_line":"        if not pports:"},{"line_number":646,"context_line":"            raise exception.VirtualInterfacePlugException("},{"line_number":647,"context_line":"                _(\"Unable to find SR-IOV physical ports for physical \""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_0f0d2f3e","line":644,"range":{"start_line":634,"start_character":0,"end_line":644,"end_character":37},"updated":"2017-01-03 21:58:08.000000000","message":"Can we condition this block on \u0027not pports\u0027 or similar?","commit_id":"6f9b83ef23a2b34cf21869f4f72579fc4b35d373"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"13e0779df183f0ed429f4ad49a597bfe618ddc09","unresolved":false,"context_lines":[{"line_number":631,"context_line":"                  {\u0027physnet\u0027: physnet, \u0027inst\u0027: self.instance.name})"},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        # Physical ports for the given physical network"},{"line_number":634,"context_line":"        msys \u003d pvm_ms.System.get(self.adapter)[0]"},{"line_number":635,"context_line":"        mapping \u003d {}"},{"line_number":636,"context_line":"        for sriov in msys.asio_config.sriov_adapters:"},{"line_number":637,"context_line":"            for pport_w in sriov.phys_ports:"},{"line_number":638,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":639,"context_line":"                if label not in mapping:"},{"line_number":640,"context_line":"                    mapping[label] \u003d []"},{"line_number":641,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":642,"context_line":"        pports \u003d None"},{"line_number":643,"context_line":"        if physnet in mapping:"},{"line_number":644,"context_line":"            pports \u003d mapping[physnet]"},{"line_number":645,"context_line":"        if not pports:"},{"line_number":646,"context_line":"            raise exception.VirtualInterfacePlugException("},{"line_number":647,"context_line":"                _(\"Unable to find SR-IOV physical ports for physical \""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba5201f7_6acbeda5","line":644,"range":{"start_line":634,"start_character":0,"end_line":644,"end_character":37},"in_reply_to":"ba5201f7_0f0d2f3e","updated":"2017-01-04 13:39:03.000000000","message":"Can you explain more? pports is retrieved from mapping only if available. If not, VirtualInterfacePlugException is raised...","commit_id":"6f9b83ef23a2b34cf21869f4f72579fc4b35d373"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"62af842a17c3d05b62d000eba1755625a3a7e59a","unresolved":false,"context_lines":[{"line_number":631,"context_line":"                  {\u0027physnet\u0027: physnet, \u0027inst\u0027: self.instance.name})"},{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        # Physical ports for the given physical network"},{"line_number":634,"context_line":"        msys \u003d pvm_ms.System.get(self.adapter)[0]"},{"line_number":635,"context_line":"        mapping \u003d {}"},{"line_number":636,"context_line":"        for sriov in msys.asio_config.sriov_adapters:"},{"line_number":637,"context_line":"            for pport_w in sriov.phys_ports:"},{"line_number":638,"context_line":"                label \u003d pport_w.label or \u0027default\u0027"},{"line_number":639,"context_line":"                if label not in mapping:"},{"line_number":640,"context_line":"                    mapping[label] \u003d []"},{"line_number":641,"context_line":"                mapping[label].append(pport_w.loc_code)"},{"line_number":642,"context_line":"        pports \u003d None"},{"line_number":643,"context_line":"        if physnet in mapping:"},{"line_number":644,"context_line":"            pports \u003d mapping[physnet]"},{"line_number":645,"context_line":"        if not pports:"},{"line_number":646,"context_line":"            raise exception.VirtualInterfacePlugException("},{"line_number":647,"context_line":"                _(\"Unable to find SR-IOV physical ports for physical \""}],"source_content_type":"text/x-python","patch_set":2,"id":"7a3c09a3_748015c1","line":644,"range":{"start_line":634,"start_character":0,"end_line":644,"end_character":37},"in_reply_to":"ba5201f7_6acbeda5","updated":"2017-01-17 01:43:46.000000000","message":"Please ignore this comment by me.","commit_id":"6f9b83ef23a2b34cf21869f4f72579fc4b35d373"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b132cc4ffad9d4f62e3e293d2767cd58c6efbc93","unresolved":false,"context_lines":[{"line_number":618,"context_line":"            return None"},{"line_number":619,"context_line":""},{"line_number":620,"context_line":"        physnet \u003d vif.get_physical_network()"},{"line_number":621,"context_line":"        if not physnet:"},{"line_number":622,"context_line":"            # Get physnet from neutron network if not present in vif"},{"line_number":623,"context_line":"            net_id \u003d vif[\u0027network\u0027][\u0027id\u0027]"},{"line_number":624,"context_line":"            admin_context \u003d ctx.get_admin_context()"},{"line_number":625,"context_line":"            napi \u003d net_api.API()"},{"line_number":626,"context_line":"            network \u003d napi.get(admin_context, net_id)"},{"line_number":627,"context_line":"            physnet \u003d network.physical_network"},{"line_number":628,"context_line":""},{"line_number":629,"context_line":"        LOG.debug(\"Plugging vNIC SR-IOV vif for physical network \""},{"line_number":630,"context_line":"                  \"\u0027%(physnet)s\u0027 into instance %(inst)s.\","}],"source_content_type":"text/x-python","patch_set":5,"id":"7a3c09a3_194997d0","line":627,"range":{"start_line":621,"start_character":0,"end_line":627,"end_character":46},"updated":"2017-01-17 20:10:39.000000000","message":"When would this happen?  Do we want to make this a method for others to use?\n\nSeems odd that the vif has a get_physical_network yet you need this.","commit_id":"57ce4e06cb56535344f7040e75e81458cfdceff2"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"08a1ba8efeadbdd77cde90c1d63b40c9560aaf72","unresolved":false,"context_lines":[{"line_number":618,"context_line":"            return None"},{"line_number":619,"context_line":""},{"line_number":620,"context_line":"        physnet \u003d vif.get_physical_network()"},{"line_number":621,"context_line":"        if not physnet:"},{"line_number":622,"context_line":"            # Get physnet from neutron network if not present in vif"},{"line_number":623,"context_line":"            net_id \u003d vif[\u0027network\u0027][\u0027id\u0027]"},{"line_number":624,"context_line":"            admin_context \u003d ctx.get_admin_context()"},{"line_number":625,"context_line":"            napi \u003d net_api.API()"},{"line_number":626,"context_line":"            network \u003d napi.get(admin_context, net_id)"},{"line_number":627,"context_line":"            physnet \u003d network.physical_network"},{"line_number":628,"context_line":""},{"line_number":629,"context_line":"        LOG.debug(\"Plugging vNIC SR-IOV vif for physical network \""},{"line_number":630,"context_line":"                  \"\u0027%(physnet)s\u0027 into instance %(inst)s.\","}],"source_content_type":"text/x-python","patch_set":5,"id":"7a3c09a3_3cd641f1","line":627,"range":{"start_line":621,"start_character":0,"end_line":627,"end_character":46},"in_reply_to":"7a3c09a3_194997d0","updated":"2017-01-17 20:35:25.000000000","message":"Drew, if a VM is deployed before the corresponding networking_powervm fix was put in, physical_network will not be in the vif. So such a VM, when rebuilt, will run through this code.","commit_id":"57ce4e06cb56535344f7040e75e81458cfdceff2"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b5297304fb5dcfec352df079965fd1e7cca03a62","unresolved":false,"context_lines":[{"line_number":620,"context_line":"        physnet \u003d vif.get_physical_network()"},{"line_number":621,"context_line":"        if not physnet:"},{"line_number":622,"context_line":"            # Get physnet from neutron network if not present in vif"},{"line_number":623,"context_line":"            # TODO(IBM): This section of code will be eliminated in"},{"line_number":624,"context_line":"            # pike release. Design will be in place to fix any vif"},{"line_number":625,"context_line":"            # that has physical_network missing. The fix will be in"},{"line_number":626,"context_line":"            # compute startup code."}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_0577063b","line":623,"range":{"start_line":623,"start_character":19,"end_line":623,"end_character":22},"updated":"2017-01-19 15:16:45.000000000","message":"svenkat specifically?  I\u0027d like to call out the developer for historical purposes.","commit_id":"270a6d3637c863f988dd8d7d0fcb6373123f8f57"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"beecb33b2246d6ad889792f25c422868225489a9","unresolved":false,"context_lines":[{"line_number":620,"context_line":"        physnet \u003d vif.get_physical_network()"},{"line_number":621,"context_line":"        if not physnet:"},{"line_number":622,"context_line":"            # Get physnet from neutron network if not present in vif"},{"line_number":623,"context_line":"            # TODO(IBM): This section of code will be eliminated in"},{"line_number":624,"context_line":"            # pike release. Design will be in place to fix any vif"},{"line_number":625,"context_line":"            # that has physical_network missing. The fix will be in"},{"line_number":626,"context_line":"            # compute startup code."}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_ff551e1d","line":623,"range":{"start_line":623,"start_character":19,"end_line":623,"end_character":22},"in_reply_to":"5a3905b3_0577063b","updated":"2017-01-19 18:07:23.000000000","message":"Done","commit_id":"270a6d3637c863f988dd8d7d0fcb6373123f8f57"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"b5297304fb5dcfec352df079965fd1e7cca03a62","unresolved":false,"context_lines":[{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        LOG.debug(\"Plugging vNIC SR-IOV vif for physical network \""},{"line_number":634,"context_line":"                  \"\u0027%(physnet)s\u0027 into instance %(inst)s.\","},{"line_number":635,"context_line":"                  {\u0027physnet\u0027: physnet, \u0027inst\u0027: self.instance.name})"},{"line_number":636,"context_line":""},{"line_number":637,"context_line":"        # Get the msys"},{"line_number":638,"context_line":"        msys \u003d pvm_ms.System.get(self.adapter)[0]"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_8535b647","line":635,"updated":"2017-01-19 15:16:45.000000000","message":"can we do \u0027instance\u003dself.instance\u0027 or is that not available on debug?","commit_id":"270a6d3637c863f988dd8d7d0fcb6373123f8f57"},{"author":{"_account_id":12947,"name":"Sridhar Venkat","email":"svenkat@us.ibm.com","username":"svenkat"},"change_message_id":"beecb33b2246d6ad889792f25c422868225489a9","unresolved":false,"context_lines":[{"line_number":632,"context_line":""},{"line_number":633,"context_line":"        LOG.debug(\"Plugging vNIC SR-IOV vif for physical network \""},{"line_number":634,"context_line":"                  \"\u0027%(physnet)s\u0027 into instance %(inst)s.\","},{"line_number":635,"context_line":"                  {\u0027physnet\u0027: physnet, \u0027inst\u0027: self.instance.name})"},{"line_number":636,"context_line":""},{"line_number":637,"context_line":"        # Get the msys"},{"line_number":638,"context_line":"        msys \u003d pvm_ms.System.get(self.adapter)[0]"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_5f3b92eb","line":635,"in_reply_to":"5a3905b3_8535b647","updated":"2017-01-19 18:07:23.000000000","message":"Done","commit_id":"270a6d3637c863f988dd8d7d0fcb6373123f8f57"}]}
