)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"4f930470aff37a962158156cd17670ba3c16ff03","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Abhinav Shrivastava \u003cabshriva@in.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-08-20 03:53:24 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"iscsi:source vios cleanup after migration"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I3c085a872abbaf6e6e91b2496314a06ce8e7ba58"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f79a3b5_3609b7dc","line":7,"updated":"2018-08-20 11:31:16.000000000","message":"Commit message should follow the below guidelines\n\nThe seven rules of a great Git commit message\n\n    Separate subject from body with a blank line.\n    Limit the subject line to 50 characters.\n    Capitalize the subject line.\n    Do not end the subject line with a period.\n    Use the imperative mood in the subject line.\n    Wrap the body at 72 characters.\n    Use the body to explain what and why vs. how.\n\nRefer the below link for details\nhttps://chris.beams.io/posts/git-commit/","commit_id":"e664ef226740b4e7d5d5df6363329990ea355553"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"4b07dbc4daff2317fccf8228fc964dc1b9f4850b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Abhinav Shrivastava \u003cabshriva@in.ibm.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-08-20 09:39:25 -0400"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"ISCSI:SOURCE VIOS CLEANUP AFTER MIGRATION"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Whenever a VM migrated from one host to another"},{"line_number":10,"context_line":"the source VIOS had hdisk remaining after LPM."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3f79a3b5_054a40ab","line":7,"updated":"2018-08-20 15:13:06.000000000","message":"nit: when we say \"Capitalize the subject line\" we just mean the first word. And in this case \"iSCSI\" is probably better than \"ISCSI\" because that\u0027s an acronym. So I\u0027d have said something like:\n\n  \"iSCSI: Clean up source VIOS on migration\"","commit_id":"51716acf45fb173e967ea35a9bad5532c9e64b52"}],"nova_powervm/tests/virt/powervm/volume/test_iscsi.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"4b07dbc4daff2317fccf8228fc964dc1b9f4850b","unresolved":false,"context_lines":[{"line_number":596,"context_line":"        good_data \u003d {\u0027vscsi-\u0027 + self.serial: \u0027udid1\u0027}"},{"line_number":597,"context_line":""},{"line_number":598,"context_line":"        with mock.patch.object(self.vol_drv, \u0027_cleanup_volume\u0027) as mock_cln:"},{"line_number":599,"context_line":"            self.vol_drv.post_live_migration_at_source(bad_data)"},{"line_number":600,"context_line":"            mock_cln.assert_called_once_with(None)"},{"line_number":601,"context_line":""},{"line_number":602,"context_line":"            mock_cln.reset_mock()"},{"line_number":603,"context_line":"            self.vol_drv.post_live_migration_at_source(good_data)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_25241cc6","line":600,"range":{"start_line":599,"start_character":0,"end_line":600,"end_character":50},"updated":"2018-08-20 15:13:06.000000000","message":"let\u0027s pull these 2 lines out of the with block, since the real _cleanup_volume method should handle this case. That way if something changes in the _cleanup_volume implementation that would break our expectation here, we\u0027ll catch that.","commit_id":"51716acf45fb173e967ea35a9bad5532c9e64b52"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"9cf8430af11c778accbd9e9669f119a8d8d5fa69","unresolved":false,"context_lines":[{"line_number":590,"context_line":""},{"line_number":591,"context_line":"    def test_post_live_migr_source(self):"},{"line_number":592,"context_line":"        good_data \u003d {\u0027vscsi-\u0027 + self.serial: \u0027udid1\u0027}"},{"line_number":593,"context_line":"        with mock.patch.object(self.vol_drv, \u0027_cleanup_volume\u0027) as mock_cln:"},{"line_number":594,"context_line":"            mock_cln.reset_mock()"},{"line_number":595,"context_line":"            self.vol_drv.post_live_migration_at_source(good_data)"},{"line_number":596,"context_line":"            mock_cln.assert_called_once_with(\u0027udid1\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_f1f2629a","line":593,"updated":"2018-08-20 17:28:18.000000000","message":"what I meant with my previous comment was just to move those bad_data test lines out of the with block (i.e., before the \"with ...\" statement), not to remove them entirely.","commit_id":"0d8df8cddb6d6b48fc3a5c0bfbd460aada0dd92b"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"9e3730e1c604bc17cd61133eac6cc8e77c29edf4","unresolved":false,"context_lines":[{"line_number":592,"context_line":"        # Bad path.  volume id not found"},{"line_number":593,"context_line":"        bad_data \u003d {\u0027vscsi-BAD\u0027: \u0027udid1\u0027}"},{"line_number":594,"context_line":"        self.vol_drv.post_live_migration_at_source(bad_data)"},{"line_number":595,"context_line":"        # good path."},{"line_number":596,"context_line":"        good_data \u003d {\u0027vscsi-\u0027 + self.serial: \u0027udid1\u0027}"},{"line_number":597,"context_line":"        self.vol_drv.post_live_migration_at_source(good_data)"},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.driver.PowerVMVolumeAdapter.\u0027"},{"line_number":600,"context_line":"                \u0027vios_uuids\u0027, new_callable\u003dmock.PropertyMock)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_19170448","line":597,"range":{"start_line":595,"start_character":0,"end_line":597,"end_character":61},"updated":"2018-08-20 18:38:58.000000000","message":"I didn\u0027t mean to get rid of the with clause entirely... I just said to move the bad path test out of it. The good path should stay in it. E.g.:\n\n        # Bad path, volume id not found\n        bad_data \u003d {\u0027vscsi-BAD\u0027: \u0027udid1\u0027}\n        self.vol_drv.post_live_migration_at_source(bad_data)\n        mock_cln.assert_called_once_with(None)\n\n        mock_cln.reset_mock()\n\n        # good path\n        good_data \u003d {\u0027vscsi-\u0027 + self.serial: \u0027udid1\u0027}\n        with mock.patch.object(self.vol_drv, \u0027_cleanup_volume\u0027) as mock_cln:\n\n            self.vol_drv.post_live_migration_at_source(good_data)\n            mock_cln.assert_called_once_with(\u0027udid1\u0027)","commit_id":"c08f32e86a3133a563797c0627d63fae16492458"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"d1abd19621a4edd9c93b321dfcd11f04d2159b91","unresolved":false,"context_lines":[{"line_number":592,"context_line":"        # Bad path.  volume id not found"},{"line_number":593,"context_line":"        bad_data \u003d {\u0027vscsi-BAD\u0027: \u0027udid1\u0027}"},{"line_number":594,"context_line":"        self.vol_drv.post_live_migration_at_source(bad_data)"},{"line_number":595,"context_line":"        # good path."},{"line_number":596,"context_line":"        good_data \u003d {\u0027vscsi-\u0027 + self.serial: \u0027udid1\u0027}"},{"line_number":597,"context_line":"        self.vol_drv.post_live_migration_at_source(good_data)"},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.driver.PowerVMVolumeAdapter.\u0027"},{"line_number":600,"context_line":"                \u0027vios_uuids\u0027, new_callable\u003dmock.PropertyMock)"}],"source_content_type":"text/x-python","patch_set":4,"id":"3f79a3b5_99b8f4e5","line":597,"range":{"start_line":595,"start_character":0,"end_line":597,"end_character":61},"in_reply_to":"3f79a3b5_19170448","updated":"2018-08-20 18:44:01.000000000","message":"actually, that won\u0027t work because mock_cln doesn\u0027t exist for that first reference. And I don\u0027t really want to replace that first assert with one that looks for the log message that _cleanup_volume will give in that case, so... probably the best thing to do here is go back to how this method looked in patch set 2. Sorry for the confusion.","commit_id":"c08f32e86a3133a563797c0627d63fae16492458"}]}
