)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ab1578738847a4d07d683d7cf0ba9bcfae72a0f6","unresolved":false,"context_lines":[{"line_number":11,"context_line":"events for the same VM."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I984f936624ae4867b89059883948d228da781d85"},{"line_number":14,"context_line":"Closes-Bug: #1578649"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9abb7d3a_7d48d0cc","line":14,"updated":"2016-05-31 15:15:53.000000000","message":"This should say Partial-Bug (although to be fair, perhaps the original defect should be split up).","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"}],"nova_powervm/tests/virt/powervm/test_driver.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"59d8a545d9eae83d1eaff88195c21e300df8f99f","unresolved":false,"context_lines":[{"line_number":1620,"context_line":"    def test_get_host_ip_addr(self):"},{"line_number":1621,"context_line":"        self.assertEqual(self.drv.get_host_ip_addr(), \u0027127.0.0.1\u0027)"},{"line_number":1622,"context_line":""},{"line_number":1623,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.driver.LOG.warning\u0027)"},{"line_number":1624,"context_line":"    @mock.patch(\u0027nova.compute.utils.get_machine_ips\u0027)"},{"line_number":1625,"context_line":"    def test_get_host_ip_addr_failure(self, mock_ips, mock_log):"},{"line_number":1626,"context_line":"        mock_ips.return_value \u003d [\u00271.1.1.1\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_574cb741","line":1623,"updated":"2016-05-26 14:29:12.000000000","message":"Why are these changes needed?","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"ca9efdbfa6470e13594a17ff86f071270c5dfc2a","unresolved":false,"context_lines":[{"line_number":1620,"context_line":"    def test_get_host_ip_addr(self):"},{"line_number":1621,"context_line":"        self.assertEqual(self.drv.get_host_ip_addr(), \u0027127.0.0.1\u0027)"},{"line_number":1622,"context_line":""},{"line_number":1623,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.driver.LOG.warning\u0027)"},{"line_number":1624,"context_line":"    @mock.patch(\u0027nova.compute.utils.get_machine_ips\u0027)"},{"line_number":1625,"context_line":"    def test_get_host_ip_addr_failure(self, mock_ips, mock_log):"},{"line_number":1626,"context_line":"        mock_ips.return_value \u003d [\u00271.1.1.1\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9abb7d3a_785230df","line":1623,"in_reply_to":"bab6814e_574cb741","updated":"2016-05-27 09:17:07.000000000","message":"No clue how these got changed. \nI did a rebase again to update but currently running into some strange import errors.","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"8ed6a7858b18dfbe4bce8789e2cadff8d8d3ff98","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"from nova_powervm.tests.virt import powervm"},{"line_number":47,"context_line":"from nova_powervm.tests.virt.powervm import fixtures as fx"},{"line_number":48,"context_line":"from nova_powervm.virt.powervm import driver"},{"line_number":49,"context_line":"from nova_powervm.virt.powervm import exception as p_exc"},{"line_number":50,"context_line":"from nova_powervm.virt.powervm import live_migration as lpm"},{"line_number":51,"context_line":"from nova_powervm.virt.powervm import vm"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_8b9e6a54","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":44},"updated":"2016-05-29 21:25:10.000000000","message":"Need to check this with efried.  These don\u0027t look right to me...","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"0e3804e9c470a4fc6fcebf83dffcf34b7aa87866","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"from nova_powervm.tests.virt import powervm"},{"line_number":47,"context_line":"from nova_powervm.tests.virt.powervm import fixtures as fx"},{"line_number":48,"context_line":"from nova_powervm.virt.powervm import driver"},{"line_number":49,"context_line":"from nova_powervm.virt.powervm import exception as p_exc"},{"line_number":50,"context_line":"from nova_powervm.virt.powervm import live_migration as lpm"},{"line_number":51,"context_line":"from nova_powervm.virt.powervm import vm"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_22b78987","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":44},"in_reply_to":"9abb7d3a_8b9e6a54","updated":"2016-05-30 12:51:05.000000000","message":"Yeah, UTs should have failed. I\u0027m keeping it as it is for now.","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"8ed6a7858b18dfbe4bce8789e2cadff8d8d3ff98","unresolved":false,"context_lines":[{"line_number":2010,"context_line":"        mock_get_inst.return_value \u003d powervm.TEST_INST1"},{"line_number":2011,"context_line":""},{"line_number":2012,"context_line":"        self.handler.process(event_data)"},{"line_number":2013,"context_line":"        mock_get_inst.assert_called_once_with(mock.ANY, \u0027794654F5-B6E9-\u0027"},{"line_number":2014,"context_line":"                                              \u00274A51-BEC2-A73E41EAA938\u0027)"},{"line_number":2015,"context_line":""},{"line_number":2016,"context_line":"        self.assertTrue(self.mock_driver.emit_event.called)"},{"line_number":2017,"context_line":"        self.assertTrue(self.mock_driver.nvram_mgr.store.called)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_cba07293","line":2014,"range":{"start_line":2013,"start_character":0,"end_line":2014,"end_character":71},"updated":"2016-05-29 21:25:10.000000000","message":"Maybe add a comment why being called once is important?\n\nNote that the previous \u0027event data\u0027 has the same URI invoked many times.\n\nBut I\u0027d think that we should have two events that both DETAIL NVRAM, to make sure it only picks up NVRAM once.","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"0e3804e9c470a4fc6fcebf83dffcf34b7aa87866","unresolved":false,"context_lines":[{"line_number":2010,"context_line":"        mock_get_inst.return_value \u003d powervm.TEST_INST1"},{"line_number":2011,"context_line":""},{"line_number":2012,"context_line":"        self.handler.process(event_data)"},{"line_number":2013,"context_line":"        mock_get_inst.assert_called_once_with(mock.ANY, \u0027794654F5-B6E9-\u0027"},{"line_number":2014,"context_line":"                                              \u00274A51-BEC2-A73E41EAA938\u0027)"},{"line_number":2015,"context_line":""},{"line_number":2016,"context_line":"        self.assertTrue(self.mock_driver.emit_event.called)"},{"line_number":2017,"context_line":"        self.assertTrue(self.mock_driver.nvram_mgr.store.called)"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_62deb16e","line":2014,"range":{"start_line":2013,"start_character":0,"end_line":2014,"end_character":71},"in_reply_to":"9abb7d3a_cba07293","updated":"2016-05-30 12:51:05.000000000","message":"Added the comment. \nRight now we don\u0027t handle the scenario when in case of multiple NVRAM events we update it only once so that test is not included here.","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"cbb05a4a6ac0cfc480cbd8b14298b35369fdbe8e","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"from nova_powervm.tests.virt import powervm"},{"line_number":47,"context_line":"from nova_powervm.tests.virt.powervm import fixtures as fx"},{"line_number":48,"context_line":"from nova_powervm.virt.powervm import driver"},{"line_number":49,"context_line":"from nova_powervm.virt.powervm import exception as p_exc"},{"line_number":50,"context_line":"from nova_powervm.virt.powervm import live_migration as lpm"},{"line_number":51,"context_line":"from nova_powervm.virt.powervm import vm"}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_b7cd3eb9","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":44},"updated":"2016-05-31 13:36:43.000000000","message":"Still not OK with this just changing off hand...\n\nWill wait for efried to peak.","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ab1578738847a4d07d683d7cf0ba9bcfae72a0f6","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"from nova_powervm.tests.virt import powervm"},{"line_number":47,"context_line":"from nova_powervm.tests.virt.powervm import fixtures as fx"},{"line_number":48,"context_line":"from nova_powervm.virt.powervm import driver"},{"line_number":49,"context_line":"from nova_powervm.virt.powervm import exception as p_exc"},{"line_number":50,"context_line":"from nova_powervm.virt.powervm import live_migration as lpm"},{"line_number":51,"context_line":"from nova_powervm.virt.powervm import vm"}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_fd58408c","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":44},"in_reply_to":"9abb7d3a_b7cd3eb9","updated":"2016-05-31 15:15:53.000000000","message":"Agree completely.  It looks like you started with an old version of this file.  If you ran into UT problems leaving this as it was, let me know and we\u0027ll work through them.","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"75327ebcbee2bad0cfecc784ac09f6e0080430f3","unresolved":false,"context_lines":[{"line_number":45,"context_line":""},{"line_number":46,"context_line":"from nova_powervm.tests.virt import powervm"},{"line_number":47,"context_line":"from nova_powervm.tests.virt.powervm import fixtures as fx"},{"line_number":48,"context_line":"from nova_powervm.virt.powervm import driver"},{"line_number":49,"context_line":"from nova_powervm.virt.powervm import exception as p_exc"},{"line_number":50,"context_line":"from nova_powervm.virt.powervm import live_migration as lpm"},{"line_number":51,"context_line":"from nova_powervm.virt.powervm import vm"}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_ec0b54d4","line":48,"range":{"start_line":48,"start_character":0,"end_line":48,"end_character":44},"in_reply_to":"9abb7d3a_fd58408c","updated":"2016-06-01 06:57:28.000000000","message":"Done","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"cbb05a4a6ac0cfc480cbd8b14298b35369fdbe8e","unresolved":false,"context_lines":[{"line_number":2010,"context_line":"        mock_get_inst.return_value \u003d powervm.TEST_INST1"},{"line_number":2011,"context_line":""},{"line_number":2012,"context_line":"        self.handler.process(event_data)"},{"line_number":2013,"context_line":"        # Ensure that for a given instance get_instance is called only"},{"line_number":2014,"context_line":"        # once as we use an instance cache in EventHandler"},{"line_number":2015,"context_line":"        mock_get_inst.assert_called_once_with(mock.ANY, \u0027794654F5-B6E9-\u0027"},{"line_number":2016,"context_line":"                                              \u00274A51-BEC2-A73E41EAA938\u0027)"},{"line_number":2017,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_f7dce674","line":2014,"range":{"start_line":2013,"start_character":8,"end_line":2014,"end_character":58},"updated":"2016-05-31 13:36:43.000000000","message":"But did you actually make sure that multiple events came in?\n\nI only see one NVRAM event.  I think you need a second.","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"75327ebcbee2bad0cfecc784ac09f6e0080430f3","unresolved":false,"context_lines":[{"line_number":2010,"context_line":"        mock_get_inst.return_value \u003d powervm.TEST_INST1"},{"line_number":2011,"context_line":""},{"line_number":2012,"context_line":"        self.handler.process(event_data)"},{"line_number":2013,"context_line":"        # Ensure that for a given instance get_instance is called only"},{"line_number":2014,"context_line":"        # once as we use an instance cache in EventHandler"},{"line_number":2015,"context_line":"        mock_get_inst.assert_called_once_with(mock.ANY, \u0027794654F5-B6E9-\u0027"},{"line_number":2016,"context_line":"                                              \u00274A51-BEC2-A73E41EAA938\u0027)"},{"line_number":2017,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_0ca338b3","line":2014,"range":{"start_line":2013,"start_character":8,"end_line":2014,"end_character":58},"in_reply_to":"9abb7d3a_dd157c49","updated":"2016-06-01 06:57:28.000000000","message":"Yes as for one processing cycle the code will do lookup once for PartitionState and NVRAM events so with the current event test data we can validate that the instance is loaded only once.","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ab1578738847a4d07d683d7cf0ba9bcfae72a0f6","unresolved":false,"context_lines":[{"line_number":2010,"context_line":"        mock_get_inst.return_value \u003d powervm.TEST_INST1"},{"line_number":2011,"context_line":""},{"line_number":2012,"context_line":"        self.handler.process(event_data)"},{"line_number":2013,"context_line":"        # Ensure that for a given instance get_instance is called only"},{"line_number":2014,"context_line":"        # once as we use an instance cache in EventHandler"},{"line_number":2015,"context_line":"        mock_get_inst.assert_called_once_with(mock.ANY, \u0027794654F5-B6E9-\u0027"},{"line_number":2016,"context_line":"                                              \u00274A51-BEC2-A73E41EAA938\u0027)"},{"line_number":2017,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_dd157c49","line":2014,"range":{"start_line":2013,"start_character":8,"end_line":2014,"end_character":58},"in_reply_to":"9abb7d3a_f7dce674","updated":"2016-05-31 15:15:53.000000000","message":"The code handles PartitionState events *and* NVRAM events.  The test data has one of each; and the last two assertions prove that they\u0027re both hit.  So I think this is okay.  Unless there is some other reason you think we need a second NVRAM event.","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":273,"context_line":"    def test_spawn_ops("},{"line_number":274,"context_line":"        self, mock_vdi, mock_pwron, mock_get_flv, mock_cfg_drv, mock_plug_vifs,"},{"line_number":275,"context_line":"        mock_plug_mgmt_vif, mock_boot_from_vol, mock_crt_disk_img,"},{"line_number":276,"context_line":"            mock_conn_vol, mock_crt_cfg_drv):"},{"line_number":277,"context_line":"        \"\"\"Validates the \u0027typical\u0027 spawn flow of the spawn of an instance."},{"line_number":278,"context_line":""},{"line_number":279,"context_line":"        Uses a basic disk image, attaching networks and powering on."}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_14c96d59","line":276,"range":{"start_line":276,"start_character":8,"end_line":276,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"extra space","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":317,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_on\u0027)"},{"line_number":318,"context_line":"    def test_spawn_with_cfg("},{"line_number":319,"context_line":"        self, mock_pwron, mock_get_flv, mock_cfg_drv, mock_val_vopt,"},{"line_number":320,"context_line":"            mock_cfg_vopt, mock_plug_vifs, mock_plug_mgmt_vif):"},{"line_number":321,"context_line":"        \"\"\"Validates the PowerVM spawn w/ config drive operations.\"\"\""},{"line_number":322,"context_line":"        # Set up the mocks to the tasks."},{"line_number":323,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_54bf75a9","line":320,"range":{"start_line":320,"start_character":8,"end_line":320,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"0f17c4c19d7c81c8550020889e91696c3d5e2438","unresolved":false,"context_lines":[{"line_number":317,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_on\u0027)"},{"line_number":318,"context_line":"    def test_spawn_with_cfg("},{"line_number":319,"context_line":"        self, mock_pwron, mock_get_flv, mock_cfg_drv, mock_val_vopt,"},{"line_number":320,"context_line":"            mock_cfg_vopt, mock_plug_vifs, mock_plug_mgmt_vif):"},{"line_number":321,"context_line":"        \"\"\"Validates the PowerVM spawn w/ config drive operations.\"\"\""},{"line_number":322,"context_line":"        # Set up the mocks to the tasks."},{"line_number":323,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_6a1a9218","line":320,"range":{"start_line":320,"start_character":8,"end_line":320,"end_character":12},"in_reply_to":"9abb7d3a_54bf75a9","updated":"2016-06-01 12:59:23.000000000","message":"All of these were flagged by pep8 with following - \ntest_driver.py:320:9: E125 continuation line does not distinguish itself from next logical line.\nI had to add the tab to get past that.","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"f69a13bb3cd1df627f39d65cf642f579b6609ac8","unresolved":false,"context_lines":[{"line_number":317,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_on\u0027)"},{"line_number":318,"context_line":"    def test_spawn_with_cfg("},{"line_number":319,"context_line":"        self, mock_pwron, mock_get_flv, mock_cfg_drv, mock_val_vopt,"},{"line_number":320,"context_line":"            mock_cfg_vopt, mock_plug_vifs, mock_plug_mgmt_vif):"},{"line_number":321,"context_line":"        \"\"\"Validates the PowerVM spawn w/ config drive operations.\"\"\""},{"line_number":322,"context_line":"        # Set up the mocks to the tasks."},{"line_number":323,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_b25cec4b","line":320,"range":{"start_line":320,"start_character":8,"end_line":320,"end_character":12},"in_reply_to":"9abb7d3a_6a1a9218","updated":"2016-06-01 14:07:50.000000000","message":"Odd that they weren\u0027t thus flagged in the previous commit.\n\nAlso surprising you\u0027re not getting a complaint about the indent not matching the previous line.  That may be just sonar, not pep8.\n\nAnyway, I would prefer to see these \"fixed\" by aligning on the paren, e.g.:\n\n    def test_spawn_with_cfg(self, mock_pwron, mock_get_flv, mock_cfg_drv,\n                            mock_val_vopt, mock_cfg_vopt, mock_plug_vifs,\n                            mock_plug_mgmt_vif):","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"c435291a32fc890207347f5fbeb3ab6ea879142c","unresolved":false,"context_lines":[{"line_number":317,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_on\u0027)"},{"line_number":318,"context_line":"    def test_spawn_with_cfg("},{"line_number":319,"context_line":"        self, mock_pwron, mock_get_flv, mock_cfg_drv, mock_val_vopt,"},{"line_number":320,"context_line":"            mock_cfg_vopt, mock_plug_vifs, mock_plug_mgmt_vif):"},{"line_number":321,"context_line":"        \"\"\"Validates the PowerVM spawn w/ config drive operations.\"\"\""},{"line_number":322,"context_line":"        # Set up the mocks to the tasks."},{"line_number":323,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_5a5a7c84","line":320,"range":{"start_line":320,"start_character":8,"end_line":320,"end_character":12},"in_reply_to":"9abb7d3a_b25cec4b","updated":"2016-06-03 10:15:00.000000000","message":"Done","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":353,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_on\u0027)"},{"line_number":354,"context_line":"    def test_spawn_with_bdms("},{"line_number":355,"context_line":"        self, mock_pwron, mock_get_flv, mock_cfg_drv, mock_plug_vifs,"},{"line_number":356,"context_line":"            mock_plug_mgmt_vif, mock_boot_from_vol, mock_crt_img, mock_save):"},{"line_number":357,"context_line":"        \"\"\"Validates the PowerVM spawn."},{"line_number":358,"context_line":""},{"line_number":359,"context_line":"        Specific Test: spawn of an image that has a disk image and block device"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_94e39dd8","line":356,"range":{"start_line":356,"start_character":8,"end_line":356,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":408,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_on\u0027)"},{"line_number":409,"context_line":"    def test_spawn_with_image_meta_root_bdm("},{"line_number":410,"context_line":"        self, mock_pwron, mock_get_flv, mock_cfg_drv, mock_plug_vifs,"},{"line_number":411,"context_line":"            mock_plug_mgmt_vif, mock_boot_from_vol, mock_crt_img, mock_save):"},{"line_number":412,"context_line":""},{"line_number":413,"context_line":"        \"\"\"Validates the PowerVM spawn."},{"line_number":414,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_34d591e7","line":411,"range":{"start_line":411,"start_character":8,"end_line":411,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":467,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_on\u0027)"},{"line_number":468,"context_line":"    def test_spawn_with_root_bdm("},{"line_number":469,"context_line":"        self, mock_pwron, mock_get_flv, mock_cfg_drv, mock_plug_vifs,"},{"line_number":470,"context_line":"            mock_plug_mgmt_vif, mock_boot_from_vol, mock_crt_img, mock_save):"},{"line_number":471,"context_line":"        \"\"\"Validates the PowerVM spawn."},{"line_number":472,"context_line":""},{"line_number":473,"context_line":"        Specific test: when no image is given and only block device mappings"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_14d04df5","line":470,"range":{"start_line":470,"start_character":8,"end_line":470,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":527,"context_line":"        self, mock_tf_run, mock_flow, mock_build_slot_mgr, mock_vol_drv_iter,"},{"line_number":528,"context_line":"        mock_pwron, mock_get_flv, mock_cfg_drv, mock_plug_vifs,"},{"line_number":529,"context_line":"        mock_plug_mgmt_vif, mock_boot_from_vol, mock_find_disk, mock_conn_disk,"},{"line_number":530,"context_line":"            mock_conn_vol, mock_crt_cfg_drv):"},{"line_number":531,"context_line":"        \"\"\"Validates the \u0027recreate\u0027 spawn flow."},{"line_number":532,"context_line":""},{"line_number":533,"context_line":"        Uses a basic disk image, attaching networks and powering on."}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_74db991b","line":530,"range":{"start_line":530,"start_character":8,"end_line":530,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":591,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_off\u0027)"},{"line_number":592,"context_line":"    def test_spawn_ops_rollback("},{"line_number":593,"context_line":"        self, mock_pwroff, mock_pwron, mock_get_flv, mock_cfg_drv, mock_dlt,"},{"line_number":594,"context_line":"            mock_plug_vifs, mock_plug_mgmt_vifs, mock_save):"},{"line_number":595,"context_line":"        \"\"\"Validates the PowerVM driver operations.  Will do a rollback.\"\"\""},{"line_number":596,"context_line":"        # Set up the mocks to the tasks."},{"line_number":597,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_b407c180","line":594,"range":{"start_line":594,"start_character":8,"end_line":594,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":637,"context_line":"        self, mock_pwron, mock_boot_conn_type,"},{"line_number":638,"context_line":"        mock_update_lod_src, mock_get_flv, mock_cfg_drv,"},{"line_number":639,"context_line":"        mock_plug_vifs, mock_plug_mgmt_vif, mock_boot_from_vol,"},{"line_number":640,"context_line":"            mock_crt_img, mock_save):"},{"line_number":641,"context_line":"        \"\"\"Validates the PowerVM spawn to create an IBMi server.\"\"\""},{"line_number":642,"context_line":"        # Set up the mocks to the tasks."},{"line_number":643,"context_line":"        mock_get_flv.return_value \u003d self.inst_ibmi.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_f4fdc96e","line":640,"range":{"start_line":640,"start_character":8,"end_line":640,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":696,"context_line":"        self, mock_pwron, mock_boot_conn_type, mock_update_lod_src,"},{"line_number":697,"context_line":"        mock_get_flv, mock_cfg_drv, mock_plug_vifs,"},{"line_number":698,"context_line":"        mock_plug_mgmt_vif, mock_boot_from_vol, mock_crt_disk_img,"},{"line_number":699,"context_line":"            mock_conn_vol, mock_crt_cfg_drv):"},{"line_number":700,"context_line":"        \"\"\"Validates the \u0027typical\u0027 spawn flow for IBMi"},{"line_number":701,"context_line":""},{"line_number":702,"context_line":"        Perform an UT using an image with local disk, attaching networks"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_34fc716f","line":699,"range":{"start_line":699,"start_character":8,"end_line":699,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":736,"context_line":"    @mock.patch(\u0027nova.objects.flavor.Flavor.get_by_id\u0027)"},{"line_number":737,"context_line":"    def test_spawn_ops_rollback_disk("},{"line_number":738,"context_line":"        self, mock_get_flv, mock_cfg_drv, mock_dlt, mock_plug_vifs,"},{"line_number":739,"context_line":"            mock_plug_mgmt_vifs, mock_crt_disk, mock_delete_disks):"},{"line_number":740,"context_line":"        \"\"\"Validates the rollback if failure occurs on disk create.\"\"\""},{"line_number":741,"context_line":"        # Set up the mocks to the tasks."},{"line_number":742,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_143e8d27","line":739,"range":{"start_line":739,"start_character":8,"end_line":739,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":769,"context_line":"    @mock.patch(\u0027pypowervm.tasks.power.power_off\u0027)"},{"line_number":770,"context_line":"    def test_spawn_ops_rollback_on_vol_connect("},{"line_number":771,"context_line":"        self, mock_pwroff, mock_pwron, mock_get_flv, mock_cfg_drv, mock_dlt,"},{"line_number":772,"context_line":"            mock_plug_vifs, mock_plug_mgmt_vifs, mock_save):"},{"line_number":773,"context_line":"        \"\"\"Validates the rollbacks on a volume connect failure.\"\"\""},{"line_number":774,"context_line":"        # Set up the mocks to the tasks."},{"line_number":775,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_342ab1db","line":772,"range":{"start_line":772,"start_character":8,"end_line":772,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":902,"context_line":"    def test_destroy_internal("},{"line_number":903,"context_line":"        self, mock_bld_slot_mgr, mock_get_flv, mock_pvmuuid,"},{"line_number":904,"context_line":"        mock_val_vopt, mock_dlt_vopt, mock_pwroff, mock_dlt,"},{"line_number":905,"context_line":"            mock_boot_from_vol, mock_unplug_vifs):"},{"line_number":906,"context_line":"        \"\"\"Validates the basic PowerVM destroy.\"\"\""},{"line_number":907,"context_line":"        # NVRAM Manager"},{"line_number":908,"context_line":"        self.drv.nvram_mgr \u003d mock.Mock()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_1425ed07","line":905,"range":{"start_line":905,"start_character":8,"end_line":905,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":1056,"context_line":"    def test_destroy_internal_no_nvram_cleanup("},{"line_number":1057,"context_line":"        self, mock_bld_slot_mgr, mock_get_flv, mock_pvmuuid,"},{"line_number":1058,"context_line":"        mock_val_vopt, mock_dlt_vopt, mock_pwroff, mock_dlt,"},{"line_number":1059,"context_line":"            mock_boot_from_vol, mock_unplug_vifs):"},{"line_number":1060,"context_line":"        \"\"\"Validates the basic PowerVM destroy, without NVRAM cleanup."},{"line_number":1061,"context_line":""},{"line_number":1062,"context_line":"        Used to validate the behavior when destroying evacuated instances."}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_7420b9f7","line":1059,"range":{"start_line":1059,"start_character":8,"end_line":1059,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":1212,"context_line":"    @mock.patch(\u0027nova.objects.flavor.Flavor.get_by_id\u0027)"},{"line_number":1213,"context_line":"    def test_destroy_rollback("},{"line_number":1214,"context_line":"        self, mock_get_flv, mock_val_vopt, mock_dlt_vopt,"},{"line_number":1215,"context_line":"            mock_pwroff, mock_dlt, mock_unplug_vifs):"},{"line_number":1216,"context_line":"        \"\"\"Validates the basic PowerVM destroy rollback mechanism works.\"\"\""},{"line_number":1217,"context_line":"        # Set up the mocks to the tasks."},{"line_number":1218,"context_line":"        mock_get_flv.return_value \u003d self.inst.get_flavor()"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_b47ce1ec","line":1215,"range":{"start_line":1215,"start_character":8,"end_line":1215,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"337724752c0986c0c12fa5cfdf560a114be012ab","unresolved":false,"context_lines":[{"line_number":1494,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.slot.build_slot_mgr\u0027)"},{"line_number":1495,"context_line":"    def test_plug_vifs("},{"line_number":1496,"context_line":"        self, mock_bld_slot_mgr, mock_wrap, mock_vm_get, mock_plug_vif,"},{"line_number":1497,"context_line":"            mock_get_rmc_vswitch, mock_plug_rmc_vif):"},{"line_number":1498,"context_line":"        # Mock up the CNA response"},{"line_number":1499,"context_line":"        cnas \u003d [mock.MagicMock(), mock.MagicMock()]"},{"line_number":1500,"context_line":"        cnas[0].mac \u003d \u0027AABBCCDDEEFF\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"9abb7d3a_34711110","line":1497,"range":{"start_line":1497,"start_character":8,"end_line":1497,"end_character":12},"updated":"2016-06-01 12:39:05.000000000","message":"ditto","commit_id":"c88695eb140d2e053d665c354533e9246f7d2b3f"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"3edbd4c80408e74ee113cfac14eca5f4a3150f20","unresolved":false,"context_lines":[{"line_number":1497,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_cnas\u0027)"},{"line_number":1498,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_instance_wrapper\u0027)"},{"line_number":1499,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.slot.build_slot_mgr\u0027)"},{"line_number":1500,"context_line":"    def test_plug_vifs(self, mock_bld_slot_mgr, mock_wrap, mock_vm_get,"},{"line_number":1501,"context_line":"                       mock_plug_vif, mock_get_rmc_vswitch, mock_plug_rmc_vif):"},{"line_number":1502,"context_line":"        # Mock up the CNA response"},{"line_number":1503,"context_line":"        cnas \u003d [mock.MagicMock(), mock.MagicMock()]"},{"line_number":1504,"context_line":"        cnas[0].mac \u003d \u0027AABBCCDDEEFF\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"9abb7d3a_2df93fc9","line":1501,"range":{"start_line":1500,"start_character":23,"end_line":1501,"end_character":79},"updated":"2016-06-03 12:13:52.000000000","message":"I don\u0027t understand why any of these had to change.  Their signature doesn\u0027t need to change.\n\nWhy not go back to patch set 0 and use the original format.  These are orthogonal to the change you\u0027re proposing.\n\nIf you had a different change set where you wanted to clean these up, I\u0027d understand.  But that should be done in a different change set.","commit_id":"2b46c97359c0c0b096f960a11e41d1efc36e5d7e"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"f83be03d9130c18395da3f85cf263489e8dd4fd1","unresolved":false,"context_lines":[{"line_number":1497,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_cnas\u0027)"},{"line_number":1498,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_instance_wrapper\u0027)"},{"line_number":1499,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.slot.build_slot_mgr\u0027)"},{"line_number":1500,"context_line":"    def test_plug_vifs(self, mock_bld_slot_mgr, mock_wrap, mock_vm_get,"},{"line_number":1501,"context_line":"                       mock_plug_vif, mock_get_rmc_vswitch, mock_plug_rmc_vif):"},{"line_number":1502,"context_line":"        # Mock up the CNA response"},{"line_number":1503,"context_line":"        cnas \u003d [mock.MagicMock(), mock.MagicMock()]"},{"line_number":1504,"context_line":"        cnas[0].mac \u003d \u0027AABBCCDDEEFF\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"9abb7d3a_8d2dcbff","line":1501,"range":{"start_line":1500,"start_character":23,"end_line":1501,"end_character":79},"in_reply_to":"9abb7d3a_2df93fc9","updated":"2016-06-03 12:19:11.000000000","message":"It was basically to address Eric\u0027s comment in previous review.","commit_id":"2b46c97359c0c0b096f960a11e41d1efc36e5d7e"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"f0e75da9fc7f68f881ea734644b402c99ac3feec","unresolved":false,"context_lines":[{"line_number":1497,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_cnas\u0027)"},{"line_number":1498,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_instance_wrapper\u0027)"},{"line_number":1499,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.slot.build_slot_mgr\u0027)"},{"line_number":1500,"context_line":"    def test_plug_vifs(self, mock_bld_slot_mgr, mock_wrap, mock_vm_get,"},{"line_number":1501,"context_line":"                       mock_plug_vif, mock_get_rmc_vswitch, mock_plug_rmc_vif):"},{"line_number":1502,"context_line":"        # Mock up the CNA response"},{"line_number":1503,"context_line":"        cnas \u003d [mock.MagicMock(), mock.MagicMock()]"},{"line_number":1504,"context_line":"        cnas[0].mac \u003d \u0027AABBCCDDEEFF\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"9abb7d3a_edd0d7cb","line":1501,"range":{"start_line":1500,"start_character":23,"end_line":1501,"end_character":79},"in_reply_to":"9abb7d3a_8d2dcbff","updated":"2016-06-03 12:22:20.000000000","message":"Drew, I agree, these should have been left alone; but apparently he was getting pep8 errors complaining of the continuation lines not being indented against the first line of the method.","commit_id":"2b46c97359c0c0b096f960a11e41d1efc36e5d7e"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"32923c45cfc62af0e25ed59e7838e19d86bc426e","unresolved":false,"context_lines":[{"line_number":1497,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_cnas\u0027)"},{"line_number":1498,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_instance_wrapper\u0027)"},{"line_number":1499,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.slot.build_slot_mgr\u0027)"},{"line_number":1500,"context_line":"    def test_plug_vifs(self, mock_bld_slot_mgr, mock_wrap, mock_vm_get,"},{"line_number":1501,"context_line":"                       mock_plug_vif, mock_get_rmc_vswitch, mock_plug_rmc_vif):"},{"line_number":1502,"context_line":"        # Mock up the CNA response"},{"line_number":1503,"context_line":"        cnas \u003d [mock.MagicMock(), mock.MagicMock()]"},{"line_number":1504,"context_line":"        cnas[0].mac \u003d \u0027AABBCCDDEEFF\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"9abb7d3a_0d071b1e","line":1501,"range":{"start_line":1500,"start_character":23,"end_line":1501,"end_character":79},"in_reply_to":"9abb7d3a_edd0d7cb","updated":"2016-06-03 12:26:57.000000000","message":"Hmm...alright.  I don\u0027t really care for that (as I\u0027m not seeing it and it seems more of an environment thing than anything else).\n\nBut I also don\u0027t like how they originally were...so I\u0027ll remove my objections for the time being.","commit_id":"2b46c97359c0c0b096f960a11e41d1efc36e5d7e"}],"nova_powervm/virt/powervm/driver.py":[{"author":{"_account_id":18378,"name":"Jeremy Arnold","email":"arnoldje@us.ibm.com","username":"arnoldje"},"change_message_id":"8bbfb5bebf45a43b1d8dcd81222cd30fa001303a","unresolved":false,"context_lines":[{"line_number":1871,"context_line":"        :param etype: PowerVM event type"},{"line_number":1872,"context_line":"        :param details: PowerVM event details"},{"line_number":1873,"context_line":"        :param eid: PowerVM event id"},{"line_number":1874,"context_line":"        :param inst The VM instance for the event"},{"line_number":1875,"context_line":"        \"\"\""},{"line_number":1876,"context_line":""},{"line_number":1877,"context_line":"        # See if this uri ends with a PowerVM UUID."}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_f6e9741b","line":1874,"updated":"2016-05-26 13:05:22.000000000","message":"I would suggest documentation here that if inst is None it will be looked up.  Also should document the return value.","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"351281c85965d12ff54871290e7619039279e765","unresolved":false,"context_lines":[{"line_number":1871,"context_line":"        :param etype: PowerVM event type"},{"line_number":1872,"context_line":"        :param details: PowerVM event details"},{"line_number":1873,"context_line":"        :param eid: PowerVM event id"},{"line_number":1874,"context_line":"        :param inst The VM instance for the event"},{"line_number":1875,"context_line":"        \"\"\""},{"line_number":1876,"context_line":""},{"line_number":1877,"context_line":"        # See if this uri ends with a PowerVM UUID."}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_37c2d385","line":1874,"in_reply_to":"bab6814e_f6e9741b","updated":"2016-05-26 14:29:07.000000000","message":"Done","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"59d8a545d9eae83d1eaff88195c21e300df8f99f","unresolved":false,"context_lines":[{"line_number":1871,"context_line":"        :param etype: PowerVM event type"},{"line_number":1872,"context_line":"        :param details: PowerVM event details"},{"line_number":1873,"context_line":"        :param eid: PowerVM event id"},{"line_number":1874,"context_line":"        :param inst The VM instance for the event"},{"line_number":1875,"context_line":"        \"\"\""},{"line_number":1876,"context_line":""},{"line_number":1877,"context_line":"        # See if this uri ends with a PowerVM UUID."}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_5cdfbed5","line":1874,"in_reply_to":"bab6814e_f6e9741b","updated":"2016-05-26 14:29:12.000000000","message":"Yeah.  This is not correctly documented.\n\n:param inst: (Optional, Default: None) The pypowervm wrapper object that represents the VM instance.","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":18378,"name":"Jeremy Arnold","email":"arnoldje@us.ibm.com","username":"arnoldje"},"change_message_id":"8bbfb5bebf45a43b1d8dcd81222cd30fa001303a","unresolved":false,"context_lines":[{"line_number":1884,"context_line":"        if (uri.endswith(\u0027LogicalPartition/\u0027 + pvm_uuid) and"},{"line_number":1885,"context_line":"                (self.inst_actions_handled \u0026 set(details))):"},{"line_number":1886,"context_line":"            if inst:"},{"line_number":1887,"context_line":"                LOG.debug(\"Reusing existing inst\")"},{"line_number":1888,"context_line":"            else:"},{"line_number":1889,"context_line":"                inst \u003d vm.get_instance(ctx.get_admin_context(),"},{"line_number":1890,"context_line":"                                       pvm_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_8b29e59d","line":1887,"updated":"2016-05-26 13:05:22.000000000","message":"If this debug message is needed, it should probably include the pvm_uuid.","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"351281c85965d12ff54871290e7619039279e765","unresolved":false,"context_lines":[{"line_number":1884,"context_line":"        if (uri.endswith(\u0027LogicalPartition/\u0027 + pvm_uuid) and"},{"line_number":1885,"context_line":"                (self.inst_actions_handled \u0026 set(details))):"},{"line_number":1886,"context_line":"            if inst:"},{"line_number":1887,"context_line":"                LOG.debug(\"Reusing existing inst\")"},{"line_number":1888,"context_line":"            else:"},{"line_number":1889,"context_line":"                inst \u003d vm.get_instance(ctx.get_admin_context(),"},{"line_number":1890,"context_line":"                                       pvm_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_97bbbf0e","line":1887,"in_reply_to":"bab6814e_8b29e59d","updated":"2016-05-26 14:29:07.000000000","message":"Done","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"59d8a545d9eae83d1eaff88195c21e300df8f99f","unresolved":false,"context_lines":[{"line_number":1884,"context_line":"        if (uri.endswith(\u0027LogicalPartition/\u0027 + pvm_uuid) and"},{"line_number":1885,"context_line":"                (self.inst_actions_handled \u0026 set(details))):"},{"line_number":1886,"context_line":"            if inst:"},{"line_number":1887,"context_line":"                LOG.debug(\"Reusing existing inst\")"},{"line_number":1888,"context_line":"            else:"},{"line_number":1889,"context_line":"                inst \u003d vm.get_instance(ctx.get_admin_context(),"},{"line_number":1890,"context_line":"                                       pvm_uuid)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_dc456e6f","line":1887,"in_reply_to":"bab6814e_8b29e59d","updated":"2016-05-26 14:29:12.000000000","message":"Fully agree.  The current debug in here doesn\u0027t have enough data to really identify what we\u0027re doing.  This looks like it could pummel the debug logs without identifying even what its working against.","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"59d8a545d9eae83d1eaff88195c21e300df8f99f","unresolved":false,"context_lines":[{"line_number":1984,"context_line":"                    LOG.debug(\u0027PowerVM Event-Action: %s URI: %s Details %s\u0027 %"},{"line_number":1985,"context_line":"                              (etype, uri, details))"},{"line_number":1986,"context_line":"                    inst \u003d inst_cache.get(uri, None)"},{"line_number":1987,"context_line":"                    inst \u003d self._handle_event(uri, etype, details, eid, inst)"},{"line_number":1988,"context_line":"                    if inst:"},{"line_number":1989,"context_line":"                        inst_cache[uri] \u003d inst"},{"line_number":1990,"context_line":"            except Exception as e:"}],"source_content_type":"text/x-python","patch_set":1,"id":"bab6814e_f7cb2ba2","line":1987,"range":{"start_line":1987,"start_character":72,"end_line":1987,"end_character":76},"updated":"2016-05-26 14:29:12.000000000","message":"Use named paramters.\n\ninst\u003dinst.\n\nI\u0027d change it to look like the following.\n\ninst_cache[uri] \u003d self._handle_event(\n    uri, etype, details, eid,\n    inst\u003dinst_cache.get(uri, None))\n\nYou don\u0027t even need the \u0027if inst\u0027...because who cares if you put None into the dictionary.  You expect a None anyway.","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"ca9efdbfa6470e13594a17ff86f071270c5dfc2a","unresolved":false,"context_lines":[{"line_number":1984,"context_line":"                    LOG.debug(\u0027PowerVM Event-Action: %s URI: %s Details %s\u0027 %"},{"line_number":1985,"context_line":"                              (etype, uri, details))"},{"line_number":1986,"context_line":"                    inst \u003d inst_cache.get(uri, None)"},{"line_number":1987,"context_line":"                    inst \u003d self._handle_event(uri, etype, details, eid, inst)"},{"line_number":1988,"context_line":"                    if inst:"},{"line_number":1989,"context_line":"                        inst_cache[uri] \u003d inst"},{"line_number":1990,"context_line":"            except Exception as e:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9abb7d3a_58f92cc8","line":1987,"range":{"start_line":1987,"start_character":72,"end_line":1987,"end_character":76},"in_reply_to":"bab6814e_f7cb2ba2","updated":"2016-05-27 09:17:07.000000000","message":"Done, running into some import errors while running tox. Next changeset will have it.","commit_id":"31ec9a098401ac7d22d80fb5220dfc2f06e8f769"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"8ed6a7858b18dfbe4bce8789e2cadff8d8d3ff98","unresolved":false,"context_lines":[{"line_number":1874,"context_line":"        :param inst: (Optional, Default: None) The pypowervm wrapper object"},{"line_number":1875,"context_line":"                    that represents the VM instance."},{"line_number":1876,"context_line":"                    If None we try to look it up based on UUID."},{"line_number":1877,"context_line":"        :return: returns the instance object"},{"line_number":1878,"context_line":"        \"\"\""},{"line_number":1879,"context_line":""},{"line_number":1880,"context_line":"        # See if this uri ends with a PowerVM UUID."}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_6bdd0614","line":1877,"updated":"2016-05-29 21:25:10.000000000","message":"Or None?  When would None be returned?","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"0e3804e9c470a4fc6fcebf83dffcf34b7aa87866","unresolved":false,"context_lines":[{"line_number":1874,"context_line":"        :param inst: (Optional, Default: None) The pypowervm wrapper object"},{"line_number":1875,"context_line":"                    that represents the VM instance."},{"line_number":1876,"context_line":"                    If None we try to look it up based on UUID."},{"line_number":1877,"context_line":"        :return: returns the instance object"},{"line_number":1878,"context_line":"        \"\"\""},{"line_number":1879,"context_line":""},{"line_number":1880,"context_line":"        # See if this uri ends with a PowerVM UUID."}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_62fa31bf","line":1877,"in_reply_to":"9abb7d3a_6bdd0614","updated":"2016-05-30 12:51:05.000000000","message":"Done","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"8ed6a7858b18dfbe4bce8789e2cadff8d8d3ff98","unresolved":false,"context_lines":[{"line_number":1887,"context_line":"        if (uri.endswith(\u0027LogicalPartition/\u0027 + pvm_uuid) and"},{"line_number":1888,"context_line":"                (self.inst_actions_handled \u0026 set(details))):"},{"line_number":1889,"context_line":"            if not inst:"},{"line_number":1890,"context_line":"                LOG.debug(\u0027Getting inst for id %s\u0027 % pvm_uuid)"},{"line_number":1891,"context_line":"                inst \u003d vm.get_instance(ctx.get_admin_context(),"},{"line_number":1892,"context_line":"                                       pvm_uuid)"},{"line_number":1893,"context_line":"            if inst:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_0bc27a33","line":1890,"range":{"start_line":1890,"start_character":27,"end_line":1890,"end_character":46},"updated":"2016-05-29 21:25:10.000000000","message":"Lets put more context in here.  Anything could get an inst for an id.\n\nHow about \"PowerVM Nova Event Handler: Getting inst for id %s\"?","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"0e3804e9c470a4fc6fcebf83dffcf34b7aa87866","unresolved":false,"context_lines":[{"line_number":1887,"context_line":"        if (uri.endswith(\u0027LogicalPartition/\u0027 + pvm_uuid) and"},{"line_number":1888,"context_line":"                (self.inst_actions_handled \u0026 set(details))):"},{"line_number":1889,"context_line":"            if not inst:"},{"line_number":1890,"context_line":"                LOG.debug(\u0027Getting inst for id %s\u0027 % pvm_uuid)"},{"line_number":1891,"context_line":"                inst \u003d vm.get_instance(ctx.get_admin_context(),"},{"line_number":1892,"context_line":"                                       pvm_uuid)"},{"line_number":1893,"context_line":"            if inst:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_02e1a5fe","line":1890,"range":{"start_line":1890,"start_character":27,"end_line":1890,"end_character":46},"in_reply_to":"9abb7d3a_0bc27a33","updated":"2016-05-30 12:51:05.000000000","message":"Done","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"8ed6a7858b18dfbe4bce8789e2cadff8d8d3ff98","unresolved":false,"context_lines":[{"line_number":1985,"context_line":"                if etype not in [\u0027NEW_CLIENT\u0027]:"},{"line_number":1986,"context_line":"                    LOG.debug(\u0027PowerVM Event-Action: %s URI: %s Details %s\u0027 %"},{"line_number":1987,"context_line":"                              (etype, uri, details))"},{"line_number":1988,"context_line":"                    inst \u003d inst_cache.get(uri, None)"},{"line_number":1989,"context_line":"                    inst \u003d self._handle_event(uri, etype, details, eid, inst)"},{"line_number":1990,"context_line":"                    if inst:"},{"line_number":1991,"context_line":"                        inst_cache[uri] \u003d inst"},{"line_number":1992,"context_line":"            except Exception as e:"},{"line_number":1993,"context_line":"                LOG.exception(e)"},{"line_number":1994,"context_line":"                LOG.warning(_LW(\u0027Unable to parse event URI: %s from PowerVM.\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_ebd1f6fc","line":1991,"range":{"start_line":1988,"start_character":2,"end_line":1991,"end_character":46},"updated":"2016-05-29 21:25:10.000000000","message":"See comments on patch set 1.\n\nYou still pass in something without a named parameter (inst)","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"0e3804e9c470a4fc6fcebf83dffcf34b7aa87866","unresolved":false,"context_lines":[{"line_number":1985,"context_line":"                if etype not in [\u0027NEW_CLIENT\u0027]:"},{"line_number":1986,"context_line":"                    LOG.debug(\u0027PowerVM Event-Action: %s URI: %s Details %s\u0027 %"},{"line_number":1987,"context_line":"                              (etype, uri, details))"},{"line_number":1988,"context_line":"                    inst \u003d inst_cache.get(uri, None)"},{"line_number":1989,"context_line":"                    inst \u003d self._handle_event(uri, etype, details, eid, inst)"},{"line_number":1990,"context_line":"                    if inst:"},{"line_number":1991,"context_line":"                        inst_cache[uri] \u003d inst"},{"line_number":1992,"context_line":"            except Exception as e:"},{"line_number":1993,"context_line":"                LOG.exception(e)"},{"line_number":1994,"context_line":"                LOG.warning(_LW(\u0027Unable to parse event URI: %s from PowerVM.\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"9abb7d3a_42fe0d39","line":1991,"range":{"start_line":1988,"start_character":2,"end_line":1991,"end_character":46},"in_reply_to":"9abb7d3a_ebd1f6fc","updated":"2016-05-30 12:51:05.000000000","message":"Done.\nThe change got overwritten when I switched workspace, added it back.","commit_id":"a237ee9944a3edf5f0116a0a49c98ce36582a2a5"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ab1578738847a4d07d683d7cf0ba9bcfae72a0f6","unresolved":false,"context_lines":[{"line_number":1874,"context_line":"        :param inst: (Optional, Default: None) The pypowervm wrapper object"},{"line_number":1875,"context_line":"                    that represents the VM instance."},{"line_number":1876,"context_line":"                    If None we try to look it up based on UUID."},{"line_number":1877,"context_line":"        :return: returns the instance object or None (when its not an"},{"line_number":1878,"context_line":"                 instance event or action is not partition state change"},{"line_number":1879,"context_line":"                 or NVRAM change)"},{"line_number":1880,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_7de61045","line":1877,"range":{"start_line":1877,"start_character":59,"end_line":1877,"end_character":62},"updated":"2016-05-31 15:15:53.000000000","message":"it\u0027s","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"75327ebcbee2bad0cfecc784ac09f6e0080430f3","unresolved":false,"context_lines":[{"line_number":1874,"context_line":"        :param inst: (Optional, Default: None) The pypowervm wrapper object"},{"line_number":1875,"context_line":"                    that represents the VM instance."},{"line_number":1876,"context_line":"                    If None we try to look it up based on UUID."},{"line_number":1877,"context_line":"        :return: returns the instance object or None (when its not an"},{"line_number":1878,"context_line":"                 instance event or action is not partition state change"},{"line_number":1879,"context_line":"                 or NVRAM change)"},{"line_number":1880,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_4c80a0f7","line":1877,"range":{"start_line":1877,"start_character":59,"end_line":1877,"end_character":62},"in_reply_to":"9abb7d3a_7de61045","updated":"2016-06-01 06:57:28.000000000","message":"Done","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"cbb05a4a6ac0cfc480cbd8b14298b35369fdbe8e","unresolved":false,"context_lines":[{"line_number":1889,"context_line":"        if (uri.endswith(\u0027LogicalPartition/\u0027 + pvm_uuid) and"},{"line_number":1890,"context_line":"                (self.inst_actions_handled \u0026 set(details))):"},{"line_number":1891,"context_line":"            if not inst:"},{"line_number":1892,"context_line":"                LOG.debug(\u0027PowerVM Nova Event Handler: Getting inst\u0027"},{"line_number":1893,"context_line":"                          \u0027 for id %s\u0027 % pvm_uuid)"},{"line_number":1894,"context_line":"                inst \u003d vm.get_instance(ctx.get_admin_context(),"},{"line_number":1895,"context_line":"                                       pvm_uuid)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_57b8522a","line":1892,"updated":"2016-05-31 13:36:43.000000000","message":"We always do spaces at the top.  We never allow the next line to start with a space.","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"},{"author":{"_account_id":10207,"name":"Manas Mandlekar","email":"manas.mandlekar@in.ibm.com","username":"manasmandlekar"},"change_message_id":"75327ebcbee2bad0cfecc784ac09f6e0080430f3","unresolved":false,"context_lines":[{"line_number":1889,"context_line":"        if (uri.endswith(\u0027LogicalPartition/\u0027 + pvm_uuid) and"},{"line_number":1890,"context_line":"                (self.inst_actions_handled \u0026 set(details))):"},{"line_number":1891,"context_line":"            if not inst:"},{"line_number":1892,"context_line":"                LOG.debug(\u0027PowerVM Nova Event Handler: Getting inst\u0027"},{"line_number":1893,"context_line":"                          \u0027 for id %s\u0027 % pvm_uuid)"},{"line_number":1894,"context_line":"                inst \u003d vm.get_instance(ctx.get_admin_context(),"},{"line_number":1895,"context_line":"                                       pvm_uuid)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9abb7d3a_2c855c06","line":1892,"in_reply_to":"9abb7d3a_57b8522a","updated":"2016-06-01 06:57:28.000000000","message":"Done","commit_id":"283392f09d91dc808a3e65c6566fc8534ffb636c"}]}
