)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"37d11fd87719a3afc7e7fb255a9c12c20ab45a7a","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     eshaseth \u003ceshaseth@in.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-07-12 13:49:36 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Change to selectively return all lpars vs non-novalink lpars"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: Ic47b4f20c04a7f98517a77cdb31d044a1f8f63e8"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"1aa78d24_f92787c7","line":7,"updated":"2016-07-12 18:17:56.000000000","message":"https://wiki.openstack.org/wiki/GitCommitMessages\n\nPlease reference that.  You need a bug (and you should probably change the branch to be named after the bug.  That branch name makes no sense).\n\nYou need a description of what you\u0027re fixing.\n\nYou need a Closes-Bug: 1234567 (replace numbers with your bug tag).\n\nI think svenkat has done these before, you can chat with him.","commit_id":"e90aba6f04534a51bde5125be46c017ce8001ef3"}],"networking_powervm/plugins/ibm/agent/powervm/agent_base.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":366,"context_line":"        It is expected this is used in the heal_and_optimize code path.  After"},{"line_number":367,"context_line":"        these devices are pulled, something will need to reset their states"},{"line_number":368,"context_line":"        back to \u0027up\u0027.  That is the requirement of the implementing class."},{"line_number":369,"context_line":"        \"\"\""},{"line_number":370,"context_line":"        prov_reqs \u003d []"},{"line_number":371,"context_line":""},{"line_number":372,"context_line":"        # Get all the LPARs...we need to match up the client adapters with a"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_10dc3811","line":369,"updated":"2016-07-25 21:40:01.000000000","message":"This would be a great time to add some :return: statements to this docstring.","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":366,"context_line":"        It is expected this is used in the heal_and_optimize code path.  After"},{"line_number":367,"context_line":"        these devices are pulled, something will need to reset their states"},{"line_number":368,"context_line":"        back to \u0027up\u0027.  That is the requirement of the implementing class."},{"line_number":369,"context_line":"        \"\"\""},{"line_number":370,"context_line":"        prov_reqs \u003d []"},{"line_number":371,"context_line":""},{"line_number":372,"context_line":"        # Get all the LPARs...we need to match up the client adapters with a"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_449551e2","line":369,"in_reply_to":"dada55a8_10dc3811","updated":"2016-07-25 22:11:06.000000000","message":"Done.  It was basically the header.","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":375,"context_line":"            self.adapter, lpars\u003dTrue, vioses\u003dFalse)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"        # The lpar_uuids is simply the client VM lpar uuids.  Don\u0027t includ mgmt"},{"line_number":378,"context_line":"        lpar_uuids \u003d [x.uuid for x in lpar_wraps if x.uuid !\u003d self.mgmt_uuid]"},{"line_number":379,"context_line":"        overall_cnas, request_cnas \u003d [], []"},{"line_number":380,"context_line":"        lpar_cna_map \u003d {}"},{"line_number":381,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_d0f8e07e","line":378,"range":{"start_line":378,"start_character":8,"end_line":378,"end_character":18},"updated":"2016-07-25 21:40:01.000000000","message":"Consider taking this line out...","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":375,"context_line":"            self.adapter, lpars\u003dTrue, vioses\u003dFalse)"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"        # The lpar_uuids is simply the client VM lpar uuids.  Don\u0027t includ mgmt"},{"line_number":378,"context_line":"        lpar_uuids \u003d [x.uuid for x in lpar_wraps if x.uuid !\u003d self.mgmt_uuid]"},{"line_number":379,"context_line":"        overall_cnas, request_cnas \u003d [], []"},{"line_number":380,"context_line":"        lpar_cna_map \u003d {}"},{"line_number":381,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_c425c1c2","line":378,"range":{"start_line":378,"start_character":8,"end_line":378,"end_character":18},"in_reply_to":"dada55a8_d0f8e07e","updated":"2016-07-25 22:11:06.000000000","message":"Done","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":380,"context_line":"        lpar_cna_map \u003d {}"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        # Don\u0027t use lpar_uuids, as we want to include mgmt VM for overall_cnas"},{"line_number":383,"context_line":"        for lpar_uuid in [x.uuid for x in lpar_wraps]:"},{"line_number":384,"context_line":"            lpar_cnas \u003d utils.list_cnas("},{"line_number":385,"context_line":"                self.adapter, self.host_uuid, lpar_uuid\u003dlpar_uuid)"},{"line_number":386,"context_line":"            overall_cnas.extend(lpar_cnas)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_302e9cfa","line":383,"range":{"start_line":383,"start_character":12,"end_line":383,"end_character":21},"updated":"2016-07-25 21:40:01.000000000","message":"...and instead iterating over lpar_wraps...","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":380,"context_line":"        lpar_cna_map \u003d {}"},{"line_number":381,"context_line":""},{"line_number":382,"context_line":"        # Don\u0027t use lpar_uuids, as we want to include mgmt VM for overall_cnas"},{"line_number":383,"context_line":"        for lpar_uuid in [x.uuid for x in lpar_wraps]:"},{"line_number":384,"context_line":"            lpar_cnas \u003d utils.list_cnas("},{"line_number":385,"context_line":"                self.adapter, self.host_uuid, lpar_uuid\u003dlpar_uuid)"},{"line_number":386,"context_line":"            overall_cnas.extend(lpar_cnas)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_a4208db1","line":383,"range":{"start_line":383,"start_character":12,"end_line":383,"end_character":21},"in_reply_to":"dada55a8_302e9cfa","updated":"2016-07-25 22:11:06.000000000","message":"Done","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        # Don\u0027t use lpar_uuids, as we want to include mgmt VM for overall_cnas"},{"line_number":383,"context_line":"        for lpar_uuid in [x.uuid for x in lpar_wraps]:"},{"line_number":384,"context_line":"            lpar_cnas \u003d utils.list_cnas("},{"line_number":385,"context_line":"                self.adapter, self.host_uuid, lpar_uuid\u003dlpar_uuid)"},{"line_number":386,"context_line":"            overall_cnas.extend(lpar_cnas)"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"            # lpar_cna_map is used to build provision requests.  We won\u0027t have"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_104a78c5","line":385,"range":{"start_line":385,"start_character":56,"end_line":385,"end_character":65},"updated":"2016-07-25 21:40:01.000000000","message":"...and using lpar.uuid here...","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":382,"context_line":"        # Don\u0027t use lpar_uuids, as we want to include mgmt VM for overall_cnas"},{"line_number":383,"context_line":"        for lpar_uuid in [x.uuid for x in lpar_wraps]:"},{"line_number":384,"context_line":"            lpar_cnas \u003d utils.list_cnas("},{"line_number":385,"context_line":"                self.adapter, self.host_uuid, lpar_uuid\u003dlpar_uuid)"},{"line_number":386,"context_line":"            overall_cnas.extend(lpar_cnas)"},{"line_number":387,"context_line":""},{"line_number":388,"context_line":"            # lpar_cna_map is used to build provision requests.  We won\u0027t have"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_04307900","line":385,"range":{"start_line":385,"start_character":56,"end_line":385,"end_character":65},"in_reply_to":"dada55a8_104a78c5","updated":"2016-07-25 22:11:06.000000000","message":"Done","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":387,"context_line":""},{"line_number":388,"context_line":"            # lpar_cna_map is used to build provision requests.  We won\u0027t have"},{"line_number":389,"context_line":"            # a provision request for the mgmt VM."},{"line_number":390,"context_line":"            if lpar_uuid !\u003d self.mgmt_uuid:"},{"line_number":391,"context_line":"                lpar_cna_map[lpar_uuid] \u003d lpar_cnas"},{"line_number":392,"context_line":"                request_cnas.extend(lpar_cnas)"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_d0262015","line":390,"range":{"start_line":390,"start_character":15,"end_line":390,"end_character":43},"updated":"2016-07-25 21:40:01.000000000","message":"...and using lpar.is_mgmt_partition here...","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":387,"context_line":""},{"line_number":388,"context_line":"            # lpar_cna_map is used to build provision requests.  We won\u0027t have"},{"line_number":389,"context_line":"            # a provision request for the mgmt VM."},{"line_number":390,"context_line":"            if lpar_uuid !\u003d self.mgmt_uuid:"},{"line_number":391,"context_line":"                lpar_cna_map[lpar_uuid] \u003d lpar_cnas"},{"line_number":392,"context_line":"                request_cnas.extend(lpar_cnas)"},{"line_number":393,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_e42a858f","line":390,"range":{"start_line":390,"start_character":15,"end_line":390,"end_character":43},"in_reply_to":"dada55a8_d0262015","updated":"2016-07-25 22:11:06.000000000","message":"Done","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":405,"context_line":"                if dev:"},{"line_number":406,"context_line":"                    prov_reqs.append(ProvisionRequest(dev, lpar_uuid))"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        return prov_reqs, lpar_uuids, overall_cnas"},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"    def _find_dev(self, cna, devs):"},{"line_number":411,"context_line":"        cna_mac \u003d utils.norm_mac(cna.mac)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_50eeb08b","line":408,"range":{"start_line":408,"start_character":26,"end_line":408,"end_character":36},"updated":"2016-07-25 21:40:01.000000000","message":"...and using list(lpar_cna_map.keys()) here.","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":405,"context_line":"                if dev:"},{"line_number":406,"context_line":"                    prov_reqs.append(ProvisionRequest(dev, lpar_uuid))"},{"line_number":407,"context_line":""},{"line_number":408,"context_line":"        return prov_reqs, lpar_uuids, overall_cnas"},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"    def _find_dev(self, cna, devs):"},{"line_number":411,"context_line":"        cna_mac \u003d utils.norm_mac(cna.mac)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_6415f547","line":408,"range":{"start_line":408,"start_character":26,"end_line":408,"end_character":36},"in_reply_to":"dada55a8_50eeb08b","updated":"2016-07-25 22:11:06.000000000","message":"Done","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ad23baef3fe56bed38e96d9a6e6362282cd1f282","unresolved":false,"context_lines":[{"line_number":366,"context_line":"        these devices are pulled, something will need to reset their states"},{"line_number":367,"context_line":"        back to \u0027up\u0027.  That is the requirement of the implementing class."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        :return: The list of ProvisionRequest objects for the entire system."},{"line_number":370,"context_line":"        \"\"\""},{"line_number":371,"context_line":"        prov_reqs \u003d []"},{"line_number":372,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"dada55a8_9b8dbf7e","line":369,"updated":"2016-07-26 14:24:58.000000000","message":"But there\u0027s three returns.  The second one is a list of UUIDs of LPARs-that-are-not-the-management-LPAR.  My whole beef with these changes has been that that bit has never been explained.  Nowhere is it made clear *why* it\u0027s all and only the non-mgmt LPARs that we care about here.","commit_id":"90d4a08ac3409a64f3b2edaa9c8fc95a43221294"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"a5d3ff6f27fbfe51748baca04df86171a9d5d4e1","unresolved":false,"context_lines":[{"line_number":366,"context_line":"        these devices are pulled, something will need to reset their states"},{"line_number":367,"context_line":"        back to \u0027up\u0027.  That is the requirement of the implementing class."},{"line_number":368,"context_line":""},{"line_number":369,"context_line":"        :return: The list of ProvisionRequest objects for the entire system."},{"line_number":370,"context_line":"        \"\"\""},{"line_number":371,"context_line":"        prov_reqs \u003d []"},{"line_number":372,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"dada55a8_8a48c3b4","line":369,"in_reply_to":"dada55a8_9b8dbf7e","updated":"2016-07-26 15:58:42.000000000","message":"I took another stab at this.   Hopefully clarifies more.  Its really tied to the heal_and_optimize.\n\nTake a peak and let me know what you think.","commit_id":"90d4a08ac3409a64f3b2edaa9c8fc95a43221294"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"fe5a770aa90c5a9ad83543d816d0d1adb91b0815","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        :return: List of LPAR UUIDs on the system.  Will not include the VIOS"},{"line_number":371,"context_line":"                 uuids (as they are not LPARs) or the MGMT VM (if it is an"},{"line_number":372,"context_line":"                 LPAR).  This list is meant to represent the VMs that client"},{"line_number":373,"context_line":"                 workload is running on."},{"line_number":374,"context_line":"        :return: The list of all CNAs on the system.  This includes the LPARs"},{"line_number":375,"context_line":"                 CNAs (either Trunk adapters or pure Client Network Adapters)."},{"line_number":376,"context_line":"                 It includes the VIOS CNAs (but not Trunk Adapters), because"}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_778d777b","line":373,"range":{"start_line":373,"start_character":17,"end_line":373,"end_character":28},"updated":"2016-07-26 16:49:36.000000000","message":"workloads are","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2be125b396dded105de95a5114807c4f7d18859e","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        :return: List of LPAR UUIDs on the system.  Will not include the VIOS"},{"line_number":371,"context_line":"                 uuids (as they are not LPARs) or the MGMT VM (if it is an"},{"line_number":372,"context_line":"                 LPAR).  This list is meant to represent the VMs that client"},{"line_number":373,"context_line":"                 workload is running on."},{"line_number":374,"context_line":"        :return: The list of all CNAs on the system.  This includes the LPARs"},{"line_number":375,"context_line":"                 CNAs (either Trunk adapters or pure Client Network Adapters)."},{"line_number":376,"context_line":"                 It includes the VIOS CNAs (but not Trunk Adapters), because"}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_f70b27d3","line":373,"range":{"start_line":373,"start_character":17,"end_line":373,"end_character":28},"in_reply_to":"dada55a8_778d777b","updated":"2016-07-26 16:50:49.000000000","message":"Done","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"fe5a770aa90c5a9ad83543d816d0d1adb91b0815","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                 uuids (as they are not LPARs) or the MGMT VM (if it is an"},{"line_number":372,"context_line":"                 LPAR).  This list is meant to represent the VMs that client"},{"line_number":373,"context_line":"                 workload is running on."},{"line_number":374,"context_line":"        :return: The list of all CNAs on the system.  This includes the LPARs"},{"line_number":375,"context_line":"                 CNAs (either Trunk adapters or pure Client Network Adapters)."},{"line_number":376,"context_line":"                 It includes the VIOS CNAs (but not Trunk Adapters), because"},{"line_number":377,"context_line":"                 those are the bridges out to the external network."}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_b7e9af1c","line":374,"range":{"start_line":374,"start_character":72,"end_line":374,"end_character":77},"updated":"2016-07-26 16:49:36.000000000","message":"LPARs\u0027","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2be125b396dded105de95a5114807c4f7d18859e","unresolved":false,"context_lines":[{"line_number":371,"context_line":"                 uuids (as they are not LPARs) or the MGMT VM (if it is an"},{"line_number":372,"context_line":"                 LPAR).  This list is meant to represent the VMs that client"},{"line_number":373,"context_line":"                 workload is running on."},{"line_number":374,"context_line":"        :return: The list of all CNAs on the system.  This includes the LPARs"},{"line_number":375,"context_line":"                 CNAs (either Trunk adapters or pure Client Network Adapters)."},{"line_number":376,"context_line":"                 It includes the VIOS CNAs (but not Trunk Adapters), because"},{"line_number":377,"context_line":"                 those are the bridges out to the external network."}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_d710a302","line":374,"range":{"start_line":374,"start_character":72,"end_line":374,"end_character":77},"in_reply_to":"dada55a8_b7e9af1c","updated":"2016-07-26 16:50:49.000000000","message":"Done","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"fe5a770aa90c5a9ad83543d816d0d1adb91b0815","unresolved":false,"context_lines":[{"line_number":376,"context_line":"                 It includes the VIOS CNAs (but not Trunk Adapters), because"},{"line_number":377,"context_line":"                 those are the bridges out to the external network."},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"                 The Trunk Adapters onfthe VIOS are not included because the"},{"line_number":380,"context_line":"                 heal_and_optimize should be cleaning VLAN off of those."},{"line_number":381,"context_line":"                 The overall CNA list is supposed to indicate what is *needed*"},{"line_number":382,"context_line":"                 by the system."}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_77e4573b","line":379,"updated":"2016-07-26 16:49:36.000000000","message":"on/of the","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2be125b396dded105de95a5114807c4f7d18859e","unresolved":false,"context_lines":[{"line_number":376,"context_line":"                 It includes the VIOS CNAs (but not Trunk Adapters), because"},{"line_number":377,"context_line":"                 those are the bridges out to the external network."},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"                 The Trunk Adapters onfthe VIOS are not included because the"},{"line_number":380,"context_line":"                 heal_and_optimize should be cleaning VLAN off of those."},{"line_number":381,"context_line":"                 The overall CNA list is supposed to indicate what is *needed*"},{"line_number":382,"context_line":"                 by the system."}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_7700d7ab","line":379,"in_reply_to":"dada55a8_77e4573b","updated":"2016-07-26 16:50:49.000000000","message":"Done","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"fe5a770aa90c5a9ad83543d816d0d1adb91b0815","unresolved":false,"context_lines":[{"line_number":377,"context_line":"                 those are the bridges out to the external network."},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"                 The Trunk Adapters onfthe VIOS are not included because the"},{"line_number":380,"context_line":"                 heal_and_optimize should be cleaning VLAN off of those."},{"line_number":381,"context_line":"                 The overall CNA list is supposed to indicate what is *needed*"},{"line_number":382,"context_line":"                 by the system."},{"line_number":383,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_57e15329","line":380,"range":{"start_line":380,"start_character":54,"end_line":380,"end_character":58},"updated":"2016-07-26 16:49:36.000000000","message":"VLANs","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2be125b396dded105de95a5114807c4f7d18859e","unresolved":false,"context_lines":[{"line_number":377,"context_line":"                 those are the bridges out to the external network."},{"line_number":378,"context_line":""},{"line_number":379,"context_line":"                 The Trunk Adapters onfthe VIOS are not included because the"},{"line_number":380,"context_line":"                 heal_and_optimize should be cleaning VLAN off of those."},{"line_number":381,"context_line":"                 The overall CNA list is supposed to indicate what is *needed*"},{"line_number":382,"context_line":"                 by the system."},{"line_number":383,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_b72c0f4b","line":380,"range":{"start_line":380,"start_character":54,"end_line":380,"end_character":58},"in_reply_to":"dada55a8_57e15329","updated":"2016-07-26 16:50:49.000000000","message":"Done","commit_id":"eda773817a2bdf1fa0cdfc9e201681c1ca1fd3f5"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"b6949c255e8d5f0b4416b39f5daff9abcbdc1a79","unresolved":false,"context_lines":[{"line_number":370,"context_line":"        :return: List of LPAR UUIDs on the system.  Will not include the VIOS"},{"line_number":371,"context_line":"                 uuids (as they are not LPARs) or the MGMT VM (if it is an"},{"line_number":372,"context_line":"                 LPAR).  This list is meant to represent the VMs that client"},{"line_number":373,"context_line":"                 workload are running on."},{"line_number":374,"context_line":"        :return: The list of all CNAs on the system.  This includes the LPARs\u0027"},{"line_number":375,"context_line":"                 CNAs (either Trunk adapters or pure Client Network Adapters)."},{"line_number":376,"context_line":"                 It includes the VIOS CNAs (but not Trunk Adapters), because"}],"source_content_type":"text/x-python","patch_set":11,"id":"dada55a8_a6de9a6a","line":373,"range":{"start_line":373,"start_character":17,"end_line":373,"end_character":30},"updated":"2016-07-26 19:02:01.000000000","message":"close enough \u003csigh\u003e","commit_id":"4df3e50301deffd504f08a49f1bf680f0c5a47a7"}],"networking_powervm/plugins/ibm/agent/powervm/utils.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"37d11fd87719a3afc7e7fb255a9c12c20ab45a7a","unresolved":false,"context_lines":[{"line_number":243,"context_line":"             include_mgmt_vm."},{"line_number":244,"context_line":"    \"\"\""},{"line_number":245,"context_line":"    lpar_uuids \u003d []"},{"line_number":246,"context_line":"    vm_entries \u003d _list_vm_entries(adapter, host_uuid)"},{"line_number":247,"context_line":"    for vm_entry in vm_entries:"},{"line_number":248,"context_line":"        if not include_mgmt_vm:"},{"line_number":249,"context_line":"            # do not include novalink partition"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_39058f13","line":246,"range":{"start_line":246,"start_character":17,"end_line":246,"end_character":53},"updated":"2016-07-12 18:17:56.000000000","message":"I\u0027d say pass this down into the _list_vm_entries\n\nNo reason _list_vm_entries itself couldn\u0027t do this.  Then you could just add it to the search criteria as well.","commit_id":"e90aba6f04534a51bde5125be46c017ce8001ef3"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"37d11fd87719a3afc7e7fb255a9c12c20ab45a7a","unresolved":false,"context_lines":[{"line_number":245,"context_line":"    lpar_uuids \u003d []"},{"line_number":246,"context_line":"    vm_entries \u003d _list_vm_entries(adapter, host_uuid)"},{"line_number":247,"context_line":"    for vm_entry in vm_entries:"},{"line_number":248,"context_line":"        if not include_mgmt_vm:"},{"line_number":249,"context_line":"            # do not include novalink partition"},{"line_number":250,"context_line":"            if not vm_entry.is_mgmt_partition:"},{"line_number":251,"context_line":"                lpar_uuids.append(vm_entry.uuid)"},{"line_number":252,"context_line":"        else:"},{"line_number":253,"context_line":"            lpar_uuids.append(vm_entry.uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1aa78d24_9c0ab11e","line":250,"range":{"start_line":248,"start_character":0,"end_line":250,"end_character":46},"updated":"2016-07-12 18:17:56.000000000","message":"This seems a little complex for what its doing.","commit_id":"e90aba6f04534a51bde5125be46c017ce8001ef3"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2a8ad1dca0edd0d23f266401047573b95b607fff","unresolved":false,"context_lines":[{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def list_lpar_uuids(adapter, host_uuid, include_mgmt_vm\u003dFalse):"},{"line_number":234,"context_line":"    \"\"\""},{"line_number":235,"context_line":"    Returns a list of all or only non-Novalink VM UUIDs based on"},{"line_number":236,"context_line":"    include_mgmt_vm."},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    :param adapter: The pypowervm adapter."},{"line_number":239,"context_line":"    :param host_uuid: The UUID for the host system."}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_45e719b0","line":236,"range":{"start_line":235,"start_character":0,"end_line":236,"end_character":20},"updated":"2016-07-19 18:29:21.000000000","message":"We\u0027re doing it again.  This is really confusing.  What\u0027s the actual purpose of this method?  Where and how is it used?\n\nSince it\u0027s a one-liner, I\u0027m thinking we may want to kill it and just inline it where we need it.  There\u0027s only two spots, right?","commit_id":"86f0817bf6b4609b656b004ef195072312e0c430"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"2067f666fb22a317bbc73c47d265f47230ac9c91","unresolved":false,"context_lines":[{"line_number":232,"context_line":""},{"line_number":233,"context_line":"def list_lpar_uuids(adapter, host_uuid, include_mgmt_vm\u003dFalse):"},{"line_number":234,"context_line":"    \"\"\""},{"line_number":235,"context_line":"    Returns a list of all or only non-Novalink VM UUIDs based on"},{"line_number":236,"context_line":"    include_mgmt_vm."},{"line_number":237,"context_line":""},{"line_number":238,"context_line":"    :param adapter: The pypowervm adapter."},{"line_number":239,"context_line":"    :param host_uuid: The UUID for the host system."}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_c0a4244c","line":236,"range":{"start_line":235,"start_character":0,"end_line":236,"end_character":20},"in_reply_to":"dada55a8_45e719b0","updated":"2016-07-21 15:59:30.000000000","message":"Its basically to make sure that the mgmt VM is NOT in it.  The get_partitions is odd.  It ensures that the mgmt VM IS in it.  Otherwise it \u0027may\u0027 be in it.\n\nWe explicitly just need to make sure its not there.","commit_id":"86f0817bf6b4609b656b004ef195072312e0c430"},{"author":{"_account_id":10547,"name":"Esha Seth","email":"eshaseth@in.ibm.com","username":"EshaSeth"},"change_message_id":"9a9a64b5cef80e1f9477c6c7fd8b0bf0940fc0a8","unresolved":false,"context_lines":[{"line_number":243,"context_line":"    :return: List of all or only non-Novalink VM UUIDs based on"},{"line_number":244,"context_line":"             include_mgmt_vm."},{"line_number":245,"context_line":"    \"\"\""},{"line_number":246,"context_line":"    lpar_wraps \u003d pvm_par.get_partitions(adapter, lpars\u003dTrue, vioses\u003dFalse)"},{"line_number":247,"context_line":"    if include_mgmt_vm:"},{"line_number":248,"context_line":"        return [x.uuid for x in lpar_wraps]"},{"line_number":249,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_260c0f94","line":246,"range":{"start_line":246,"start_character":4,"end_line":246,"end_character":30},"updated":"2016-07-18 06:39:40.000000000","message":"We should pass mgmt\u003dTrue here so that it has lpars and mgmt_lpars for sure and if include_mgmt_vm is false then it will remove the list of mgmt_lpars from lpars","commit_id":"86f0817bf6b4609b656b004ef195072312e0c430"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"1bac3c8639912a92935209480cfe2e458ba2be22","unresolved":false,"context_lines":[{"line_number":243,"context_line":"    :return: List of all or only non-Novalink VM UUIDs based on"},{"line_number":244,"context_line":"             include_mgmt_vm."},{"line_number":245,"context_line":"    \"\"\""},{"line_number":246,"context_line":"    lpar_wraps \u003d pvm_par.get_partitions(adapter, lpars\u003dTrue, vioses\u003dFalse)"},{"line_number":247,"context_line":"    if include_mgmt_vm:"},{"line_number":248,"context_line":"        return [x.uuid for x in lpar_wraps]"},{"line_number":249,"context_line":"    else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"dada55a8_c248248a","line":246,"range":{"start_line":246,"start_character":4,"end_line":246,"end_character":30},"in_reply_to":"dada55a8_260c0f94","updated":"2016-07-19 16:27:39.000000000","message":"No, actually I don\u0027t think so.\n\nIf you do that then if the MGMT VM is a VIOS it could be included.  Where as this is really just a LPAR return.","commit_id":"86f0817bf6b4609b656b004ef195072312e0c430"}],"networking_powervm/tests/unit/plugins/ibm/powervm/test_sea_agent.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            pvm_fx.AdapterFx(traits\u003dpvm_fx.LocalPVMTraits)).adpt"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        # Mock the mgmt uuid"},{"line_number":71,"context_line":"        self.mock_get_mgmt \u003d mock.patch(\u0027pypowervm.tasks.partition.\u0027"},{"line_number":72,"context_line":"                                        \u0027get_mgmt_partition\u0027)"},{"line_number":73,"context_line":"        self.mock_get_mgmt.start()"},{"line_number":74,"context_line":"        self.mock_get_mgmt.return_value \u003d mock.MagicMock(uuid\u003d\u0027mgmt_uuid\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_e446054e","line":71,"range":{"start_line":71,"start_character":8,"end_line":71,"end_character":13},"updated":"2016-07-25 21:40:01.000000000","message":"This doesn\u0027t need to be an instance variable.  Can just be local.","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":68,"context_line":"            pvm_fx.AdapterFx(traits\u003dpvm_fx.LocalPVMTraits)).adpt"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        # Mock the mgmt uuid"},{"line_number":71,"context_line":"        self.mock_get_mgmt \u003d mock.patch(\u0027pypowervm.tasks.partition.\u0027"},{"line_number":72,"context_line":"                                        \u0027get_mgmt_partition\u0027)"},{"line_number":73,"context_line":"        self.mock_get_mgmt.start()"},{"line_number":74,"context_line":"        self.mock_get_mgmt.return_value \u003d mock.MagicMock(uuid\u003d\u0027mgmt_uuid\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_475ef3e9","line":71,"range":{"start_line":71,"start_character":8,"end_line":71,"end_character":13},"in_reply_to":"dada55a8_e446054e","updated":"2016-07-25 22:11:06.000000000","message":"Done","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        self.mock_get_mgmt \u003d mock.patch(\u0027pypowervm.tasks.partition.\u0027"},{"line_number":72,"context_line":"                                        \u0027get_mgmt_partition\u0027)"},{"line_number":73,"context_line":"        self.mock_get_mgmt.start()"},{"line_number":74,"context_line":"        self.mock_get_mgmt.return_value \u003d mock.MagicMock(uuid\u003d\u0027mgmt_uuid\u0027)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        with mock.patch(\u0027networking_powervm.plugins.ibm.agent.powervm.utils.\u0027"},{"line_number":77,"context_line":"                        \u0027get_host_uuid\u0027),\\"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_c4af81e1","line":74,"range":{"start_line":74,"start_character":8,"end_line":74,"end_character":74},"updated":"2016-07-25 21:40:01.000000000","message":"Does this work?  The mock itself is the return value from start().","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":71,"context_line":"        self.mock_get_mgmt \u003d mock.patch(\u0027pypowervm.tasks.partition.\u0027"},{"line_number":72,"context_line":"                                        \u0027get_mgmt_partition\u0027)"},{"line_number":73,"context_line":"        self.mock_get_mgmt.start()"},{"line_number":74,"context_line":"        self.mock_get_mgmt.return_value \u003d mock.MagicMock(uuid\u003d\u0027mgmt_uuid\u0027)"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"        with mock.patch(\u0027networking_powervm.plugins.ibm.agent.powervm.utils.\u0027"},{"line_number":77,"context_line":"                        \u0027get_host_uuid\u0027),\\"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_0756bbd1","line":74,"range":{"start_line":74,"start_character":8,"end_line":74,"end_character":74},"in_reply_to":"dada55a8_c4af81e1","updated":"2016-07-25 22:11:06.000000000","message":"Yeah, it passed...but weird.  You\u0027re right...it doesn\u0027t seem like it should have.","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"9fe723d9d0bba5c1b01d20ff285df98f6d78fc7b","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            self.agent \u003d sea_agent.SharedEthernetNeutronAgent()"},{"line_number":82,"context_line":"            self.agent.adapter \u003d self.adpt"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    def tearDown(self):"},{"line_number":85,"context_line":"        super(SEAAgentTest, self).tearDown()"},{"line_number":86,"context_line":"        self.mock_get_mgmt.stop()"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @mock.patch(\u0027networking_powervm.plugins.ibm.agent.powervm.utils.\u0027"},{"line_number":89,"context_line":"                \u0027parse_sea_mappings\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_043519d9","line":86,"range":{"start_line":84,"start_character":0,"end_line":86,"end_character":33},"updated":"2016-07-25 21:40:01.000000000","message":"Can you do this from setUp as self.addCleanup(mock_get_mgmt.stop) ?","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e0f3858ccefdfd1730d8549fe9987c985bd2dd52","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            self.agent \u003d sea_agent.SharedEthernetNeutronAgent()"},{"line_number":82,"context_line":"            self.agent.adapter \u003d self.adpt"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"    def tearDown(self):"},{"line_number":85,"context_line":"        super(SEAAgentTest, self).tearDown()"},{"line_number":86,"context_line":"        self.mock_get_mgmt.stop()"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"    @mock.patch(\u0027networking_powervm.plugins.ibm.agent.powervm.utils.\u0027"},{"line_number":89,"context_line":"                \u0027parse_sea_mappings\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"dada55a8_27613fa9","line":86,"range":{"start_line":84,"start_character":0,"end_line":86,"end_character":33},"in_reply_to":"dada55a8_043519d9","updated":"2016-07-25 22:11:06.000000000","message":"Done","commit_id":"16c489d193c090c7584ddd6ceab102d287f25133"}]}
