)]}'
{"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":"91bd841949fd9fc852d914647e0f8f2a1b4a668a","unresolved":false,"context_lines":[{"line_number":498,"context_line":"            \u0027devname\u0027, \u0027udid\u0027)"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"        # Run the method"},{"line_number":501,"context_line":"        self.vol_drv.pre_live_migration_on_destination({})"},{"line_number":502,"context_line":""},{"line_number":503,"context_line":"        # Test exception path"},{"line_number":504,"context_line":"        mock_discover.return_value \u003d ("}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_67617105","line":501,"updated":"2018-05-10 14:54:08.000000000","message":"need some assertion(s) testing that the call did what it should have. E.g. that mig_data now includes \u0027udid\u0027 for the correct volume_key.","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"f5cd7d3cedbad07545c782daad9d261cd7ddafdf","unresolved":false,"context_lines":[{"line_number":498,"context_line":"            \u0027devname\u0027, \u0027udid\u0027)"},{"line_number":499,"context_line":""},{"line_number":500,"context_line":"        # Run the method"},{"line_number":501,"context_line":"        self.vol_drv.pre_live_migration_on_destination({})"},{"line_number":502,"context_line":""},{"line_number":503,"context_line":"        # Test exception path"},{"line_number":504,"context_line":"        mock_discover.return_value \u003d ("}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_1fb558cd","line":501,"in_reply_to":"5f7c97a3_67617105","updated":"2018-05-11 07:33:35.000000000","message":"Done","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"91bd841949fd9fc852d914647e0f8f2a1b4a668a","unresolved":false,"context_lines":[{"line_number":510,"context_line":""},{"line_number":511,"context_line":"    @mock.patch(\u0027pypowervm.tasks.hdisk.remove_hdisk\u0027)"},{"line_number":512,"context_line":"    @mock.patch(\u0027pypowervm.wrappers.virtual_io_server.VIOS.hdisk_from_uuid\u0027)"},{"line_number":513,"context_line":"    def test_cleanup_volume(self, mock_hdisk_from_uuid, mock_remove_hdisk):"},{"line_number":514,"context_line":"        mock_hdisk_from_uuid.return_value \u003d \u0027device_name\u0027"},{"line_number":515,"context_line":""},{"line_number":516,"context_line":"        # Bad path.  udid not found"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_474315b0","line":513,"updated":"2018-05-10 14:54:08.000000000","message":"need to test cleanup_volume_at_destination, not _cleanup_volume.","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"91bd841949fd9fc852d914647e0f8f2a1b4a668a","unresolved":false,"context_lines":[{"line_number":527,"context_line":"            mock.call(self.adpt, mock.ANY, \u0027device_name\u0027, self.feed[1].uuid)]"},{"line_number":528,"context_line":"        mock_remove_hdisk.assert_has_calls(multi_calls, any_order\u003dTrue)"},{"line_number":529,"context_line":""},{"line_number":530,"context_line":"    def test_post_live_migr_source(self):"},{"line_number":531,"context_line":""},{"line_number":532,"context_line":"        # Bad path.  volume id not found"},{"line_number":533,"context_line":"        bad_data \u003d {\u0027iscsi-BAD\u0027: \u0027udid1\u0027}"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_271ff9b7","line":530,"updated":"2018-05-10 14:54:08.000000000","message":"reorder this above the cleanup test to match the ordering of the methods these are testing.","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"919173829c5174486afd5b12971b19e3c30539ce","unresolved":false,"context_lines":[{"line_number":542,"context_line":""},{"line_number":543,"context_line":"    @mock.patch(\u0027pypowervm.tasks.hdisk.remove_hdisk\u0027)"},{"line_number":544,"context_line":"    @mock.patch(\u0027pypowervm.wrappers.virtual_io_server.VIOS.hdisk_from_uuid\u0027)"},{"line_number":545,"context_line":"    def test_cleanup_volume_at_dest(self, mock_hdisk_from_uuid,"},{"line_number":546,"context_line":"                                    mock_remove_hdisk):"},{"line_number":547,"context_line":"        mock_hdisk_from_uuid.return_value \u003d \u0027device_name\u0027"},{"line_number":548,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_9e05dd13","line":545,"updated":"2018-05-11 18:03:00.000000000","message":"make this look like test_post_live_migr_source, and then create a separate test_cleanup_volume method that tests _cleanup_volume.","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"f2089fc68c3f3e4d13b94e4d4e6faac9f2916043","unresolved":false,"context_lines":[{"line_number":542,"context_line":""},{"line_number":543,"context_line":"    @mock.patch(\u0027pypowervm.tasks.hdisk.remove_hdisk\u0027)"},{"line_number":544,"context_line":"    @mock.patch(\u0027pypowervm.wrappers.virtual_io_server.VIOS.hdisk_from_uuid\u0027)"},{"line_number":545,"context_line":"    def test_cleanup_volume_at_dest(self, mock_hdisk_from_uuid,"},{"line_number":546,"context_line":"                                    mock_remove_hdisk):"},{"line_number":547,"context_line":"        mock_hdisk_from_uuid.return_value \u003d \u0027device_name\u0027"},{"line_number":548,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_70eb0d77","line":545,"updated":"2018-05-15 21:38:33.000000000","message":"make this look like test_post_live_migr_source, and then create a separate test_cleanup_volume method that tests _cleanup_volume.","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"d6d00b57bd4af015b01ed469fab7cb5f6bc8cbbf","unresolved":false,"context_lines":[{"line_number":542,"context_line":""},{"line_number":543,"context_line":"    @mock.patch(\u0027pypowervm.tasks.hdisk.remove_hdisk\u0027)"},{"line_number":544,"context_line":"    @mock.patch(\u0027pypowervm.wrappers.virtual_io_server.VIOS.hdisk_from_uuid\u0027)"},{"line_number":545,"context_line":"    def test_cleanup_volume_at_dest(self, mock_hdisk_from_uuid,"},{"line_number":546,"context_line":"                                    mock_remove_hdisk):"},{"line_number":547,"context_line":"        mock_hdisk_from_uuid.return_value \u003d \u0027device_name\u0027"},{"line_number":548,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_570ca73a","line":545,"in_reply_to":"5f7c97a3_70eb0d77","updated":"2018-06-07 08:31:39.000000000","message":"Done","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"f2089fc68c3f3e4d13b94e4d4e6faac9f2916043","unresolved":false,"context_lines":[{"line_number":569,"context_line":"    def test_is_volume_on_vios(self, mock_vios_uuids):"},{"line_number":570,"context_line":"        # The mock return values"},{"line_number":571,"context_line":"        mock_vios_uuids.return_value \u003d [\u0027fake_vios1\u0027, \u0027fake_vios2\u0027]"},{"line_number":572,"context_line":"        vios_ids \u003d [\u00271300C76F-9814-4A4D-B1F0-5B69352A7DEA\u0027,"},{"line_number":573,"context_line":"                    \u00277DBBE705-E4C4-4458-8223-3EBE07015CA9\u0027]"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        with mock.patch.object(self.vol_drv,"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_f3e967e2","line":572,"updated":"2018-05-15 21:38:33.000000000","message":"it is very odd/confusing to interject vios_ids that are not used in between the mock_vios_uuids.return_value line and the invocation of is_volume_on_vios that tests it. Please reorder. I would move vios_ids down to where it\u0027s going to be used.","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"3179f9e7dbb1dd4569ee0d714c190d41b065ceb4","unresolved":false,"context_lines":[{"line_number":569,"context_line":"    def test_is_volume_on_vios(self, mock_vios_uuids):"},{"line_number":570,"context_line":"        # The mock return values"},{"line_number":571,"context_line":"        mock_vios_uuids.return_value \u003d [\u0027fake_vios1\u0027, \u0027fake_vios2\u0027]"},{"line_number":572,"context_line":"        vios_ids \u003d [\u00271300C76F-9814-4A4D-B1F0-5B69352A7DEA\u0027,"},{"line_number":573,"context_line":"                    \u00277DBBE705-E4C4-4458-8223-3EBE07015CA9\u0027]"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        with mock.patch.object(self.vol_drv,"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_bb02cf0a","line":572,"in_reply_to":"5f7c97a3_f3e967e2","updated":"2018-05-21 20:38:13.000000000","message":"Done","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"d6d00b57bd4af015b01ed469fab7cb5f6bc8cbbf","unresolved":false,"context_lines":[{"line_number":569,"context_line":"    def test_is_volume_on_vios(self, mock_vios_uuids):"},{"line_number":570,"context_line":"        # The mock return values"},{"line_number":571,"context_line":"        mock_vios_uuids.return_value \u003d [\u0027fake_vios1\u0027, \u0027fake_vios2\u0027]"},{"line_number":572,"context_line":"        vios_ids \u003d [\u00271300C76F-9814-4A4D-B1F0-5B69352A7DEA\u0027,"},{"line_number":573,"context_line":"                    \u00277DBBE705-E4C4-4458-8223-3EBE07015CA9\u0027]"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        with mock.patch.object(self.vol_drv,"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_f7105352","line":572,"in_reply_to":"5f7c97a3_f3e967e2","updated":"2018-06-07 08:31:39.000000000","message":"Done","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"f2089fc68c3f3e4d13b94e4d4e6faac9f2916043","unresolved":false,"context_lines":[{"line_number":572,"context_line":"        vios_ids \u003d [\u00271300C76F-9814-4A4D-B1F0-5B69352A7DEA\u0027,"},{"line_number":573,"context_line":"                    \u00277DBBE705-E4C4-4458-8223-3EBE07015CA9\u0027]"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        with mock.patch.object(self.vol_drv,"},{"line_number":576,"context_line":"                               \u0027_discover_volume_on_vios\u0027) as mock_discover:"},{"line_number":577,"context_line":"            found, udid \u003d self.vol_drv.is_volume_on_vios(self.feed[0])"},{"line_number":578,"context_line":"            mock_discover.assert_not_called()"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_70478d78","line":575,"updated":"2018-05-15 21:38:33.000000000","message":"do this with a decorator on the method, like our other mocks, unless there\u0027s a good reason that I\u0027m missing...","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"3179f9e7dbb1dd4569ee0d714c190d41b065ceb4","unresolved":false,"context_lines":[{"line_number":572,"context_line":"        vios_ids \u003d [\u00271300C76F-9814-4A4D-B1F0-5B69352A7DEA\u0027,"},{"line_number":573,"context_line":"                    \u00277DBBE705-E4C4-4458-8223-3EBE07015CA9\u0027]"},{"line_number":574,"context_line":""},{"line_number":575,"context_line":"        with mock.patch.object(self.vol_drv,"},{"line_number":576,"context_line":"                               \u0027_discover_volume_on_vios\u0027) as mock_discover:"},{"line_number":577,"context_line":"            found, udid \u003d self.vol_drv.is_volume_on_vios(self.feed[0])"},{"line_number":578,"context_line":"            mock_discover.assert_not_called()"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_3b179f54","line":575,"in_reply_to":"5f7c97a3_70478d78","updated":"2018-05-21 20:38:13.000000000","message":"agree I\u0027m not very clear on why the different mock technique.","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"f2089fc68c3f3e4d13b94e4d4e6faac9f2916043","unresolved":false,"context_lines":[{"line_number":580,"context_line":"            self.assertIsNone(udid)"},{"line_number":581,"context_line":""},{"line_number":582,"context_line":"            mock_discover.reset_mock()"},{"line_number":583,"context_line":"            mock_discover.return_value \u003d \u0027device1\u0027, \u0027udid1\u0027"},{"line_number":584,"context_line":"            mock_vios_uuids.return_value \u003d vios_ids"},{"line_number":585,"context_line":""},{"line_number":586,"context_line":"            found, udid \u003d self.vol_drv.is_volume_on_vios(self.feed[0])"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_938cb336","line":583,"updated":"2018-05-15 21:38:33.000000000","message":"would also be good to test the cases where a) we have device_name but not udid and b) we have udid but not device_name.\n\nAssuming both of those are actually valid cases, because the code returns `(device_name and udid) is not None`. If they\u0027re not, then it\u0027s the code that should be updated rather than the test.","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"0db3c511e792f46647cae9e4be76bead0bd0f33d","unresolved":false,"context_lines":[{"line_number":531,"context_line":"        # good path."},{"line_number":532,"context_line":"        good_data \u003d {\u0027iscsi-f042c68a-c5a5-476a-ba34-2f6d43f4226c\u0027: \u0027udid1\u0027}"},{"line_number":533,"context_line":""},{"line_number":534,"context_line":"        with mock.patch.object(self.vol_drv, \u0027_cleanup_volume\u0027) as mock_cln:"},{"line_number":535,"context_line":"            self.vol_drv.post_live_migration_at_source(bad_data)"},{"line_number":536,"context_line":"            mock_cln.assert_called_once_with(None)"},{"line_number":537,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_e9486f5d","line":534,"updated":"2018-05-17 12:58:16.000000000","message":"we don\u0027t actually need to use mock.patch.object here, so a mock.patch decorator would have been a better choice. I won\u0027t hold this up on that, but please remember it for next time.","commit_id":"7c2f3ec2f02c375ebc4856be28b77ca7b5f265e5"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"0db3c511e792f46647cae9e4be76bead0bd0f33d","unresolved":false,"context_lines":[{"line_number":546,"context_line":"        # good path."},{"line_number":547,"context_line":"        good_data \u003d {\u0027iscsi-f042c68a-c5a5-476a-ba34-2f6d43f4226c\u0027: \u0027udid1\u0027}"},{"line_number":548,"context_line":""},{"line_number":549,"context_line":"        with mock.patch.object(self.vol_drv, \u0027_cleanup_volume\u0027) as mock_cln:"},{"line_number":550,"context_line":"            self.vol_drv.cleanup_volume_at_destination(bad_data)"},{"line_number":551,"context_line":"            mock_cln.assert_called_once_with(None)"},{"line_number":552,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_a974b79d","line":549,"updated":"2018-05-17 12:58:16.000000000","message":"ditto","commit_id":"7c2f3ec2f02c375ebc4856be28b77ca7b5f265e5"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"0db3c511e792f46647cae9e4be76bead0bd0f33d","unresolved":false,"context_lines":[{"line_number":560,"context_line":"        # The mock return values"},{"line_number":561,"context_line":"        mock_vios_uuids.return_value \u003d [\u0027fake_vios1\u0027, \u0027fake_vios2\u0027]"},{"line_number":562,"context_line":""},{"line_number":563,"context_line":"        with mock.patch.object(self.vol_drv,"},{"line_number":564,"context_line":"                               \u0027_discover_volume_on_vios\u0027) as mock_discover:"},{"line_number":565,"context_line":"            found, udid \u003d self.vol_drv.is_volume_on_vios(self.feed[0])"},{"line_number":566,"context_line":"            mock_discover.assert_not_called()"}],"source_content_type":"text/x-python","patch_set":8,"id":"5f7c97a3_8973fbb1","line":563,"updated":"2018-05-17 12:58:16.000000000","message":"ditto","commit_id":"7c2f3ec2f02c375ebc4856be28b77ca7b5f265e5"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"74cfcf99d01890685ff4d356e6bda7f66ffd7171","unresolved":false,"context_lines":[{"line_number":508,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":509,"context_line":"        volume_key \u003d \u0027iscsi-\u0027 + self.serial"},{"line_number":510,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"},{"line_number":511,"context_line":""},{"line_number":512,"context_line":"        # Test exception path"},{"line_number":513,"context_line":"        mock_discover.return_value \u003d ("},{"line_number":514,"context_line":"            \u0027devname\u0027, None)"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_4a333e14","line":511,"updated":"2018-06-07 15:41:52.000000000","message":"Add UT to cover the case where first the volume is found on first VIOS but not on second.","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"6f0ec22493fb1602c4e6477c6b5d4ceccc28abbf","unresolved":false,"context_lines":[{"line_number":508,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":509,"context_line":"        volume_key \u003d \u0027iscsi-\u0027 + self.serial"},{"line_number":510,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"},{"line_number":511,"context_line":""},{"line_number":512,"context_line":"        # Test exception path"},{"line_number":513,"context_line":"        mock_discover.return_value \u003d ("},{"line_number":514,"context_line":"            \u0027devname\u0027, None)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_b9758ece","line":511,"updated":"2018-06-07 19:16:57.000000000","message":"as noted in the last patch set, need to add UT to cover the case where the volume is found on the first VIOS but not on the second (i.e., test the case that caused you to have g_udid).","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ce60d3eb9cac65a096501eaa93b171f282da352e","unresolved":false,"context_lines":[{"line_number":508,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":509,"context_line":"        volume_key \u003d \u0027iscsi-\u0027 + self.serial"},{"line_number":510,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"},{"line_number":511,"context_line":""},{"line_number":512,"context_line":"        # Test exception path"},{"line_number":513,"context_line":"        mock_discover.return_value \u003d ("},{"line_number":514,"context_line":"            \u0027devname\u0027, None)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_0803f711","line":511,"updated":"2018-06-08 14:47:45.000000000","message":"I still want UT covering the case where the volume is found on the first VIOS but not on the second. The code should be fine in that case, but I want UT to make sure it stays that way if someone makes future edits.","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"fae7166c1ed078d973eb578c960e5f1e219838b9","unresolved":false,"context_lines":[{"line_number":508,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":509,"context_line":"        volume_key \u003d \u0027iscsi-\u0027 + self.serial"},{"line_number":510,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"},{"line_number":511,"context_line":""},{"line_number":512,"context_line":"        # Test exception path"},{"line_number":513,"context_line":"        mock_discover.return_value \u003d ("},{"line_number":514,"context_line":"            \u0027devname\u0027, None)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_46f54556","line":511,"in_reply_to":"5f7c97a3_0803f711","updated":"2018-06-11 08:38:53.000000000","message":"I was looking at it, how to mock the same method to return different output for vios is.","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"810735ea1ca371df94de34205e28faf7aaf57114","unresolved":false,"context_lines":[{"line_number":519,"context_line":""},{"line_number":520,"context_line":"        # Test when volume discover on a single vios"},{"line_number":521,"context_line":"        mock_discover.reset_mock()"},{"line_number":522,"context_line":"        mock_discover.side_effect \u003d [(\u0027devname\u0027, \u0027udid\u0027), (\u0027devname\u0027, None)]"},{"line_number":523,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":524,"context_line":"        volume_key \u003d \u0027vscsi-\u0027 + self.serial"},{"line_number":525,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_de42753b","line":522,"updated":"2018-06-11 14:27:07.000000000","message":"assert that mock_discover is called twice, so that we know both of these side_effects happened.","commit_id":"a510d4080408d72dca7e69ab88c593073c1cf3a4"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"cf7f0c778a3cac51a0b0eabc315115d283e6caa1","unresolved":false,"context_lines":[{"line_number":519,"context_line":""},{"line_number":520,"context_line":"        # Test when volume discover on a single vios"},{"line_number":521,"context_line":"        mock_discover.reset_mock()"},{"line_number":522,"context_line":"        mock_discover.side_effect \u003d [(\u0027devname\u0027, \u0027udid\u0027), (\u0027devname\u0027, None)]"},{"line_number":523,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":524,"context_line":"        volume_key \u003d \u0027vscsi-\u0027 + self.serial"},{"line_number":525,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_beebf9da","line":522,"in_reply_to":"5f7c97a3_de42753b","updated":"2018-06-11 14:33:21.000000000","message":"sure","commit_id":"a510d4080408d72dca7e69ab88c593073c1cf3a4"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"810735ea1ca371df94de34205e28faf7aaf57114","unresolved":false,"context_lines":[{"line_number":521,"context_line":"        mock_discover.reset_mock()"},{"line_number":522,"context_line":"        mock_discover.side_effect \u003d [(\u0027devname\u0027, \u0027udid\u0027), (\u0027devname\u0027, None)]"},{"line_number":523,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":524,"context_line":"        volume_key \u003d \u0027vscsi-\u0027 + self.serial"},{"line_number":525,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":"        # Test with bad vios_uuid"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_5e098528","line":524,"updated":"2018-06-11 14:27:07.000000000","message":"nit: no change from L509, so this isn\u0027t really needed","commit_id":"a510d4080408d72dca7e69ab88c593073c1cf3a4"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"cf7f0c778a3cac51a0b0eabc315115d283e6caa1","unresolved":false,"context_lines":[{"line_number":521,"context_line":"        mock_discover.reset_mock()"},{"line_number":522,"context_line":"        mock_discover.side_effect \u003d [(\u0027devname\u0027, \u0027udid\u0027), (\u0027devname\u0027, None)]"},{"line_number":523,"context_line":"        self.vol_drv.pre_live_migration_on_destination(migrate_data)"},{"line_number":524,"context_line":"        volume_key \u003d \u0027vscsi-\u0027 + self.serial"},{"line_number":525,"context_line":"        self.assertEqual(migrate_data, {volume_key: \u0027udid\u0027})"},{"line_number":526,"context_line":""},{"line_number":527,"context_line":"        # Test with bad vios_uuid"}],"source_content_type":"text/x-python","patch_set":15,"id":"5f7c97a3_9ec07d52","line":524,"in_reply_to":"5f7c97a3_5e098528","updated":"2018-06-11 14:33:21.000000000","message":"this is needed to check the volume_key is not getting changed and not taking the udid\u003dNone","commit_id":"a510d4080408d72dca7e69ab88c593073c1cf3a4"}],"nova_powervm/virt/powervm/volume/iscsi.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"91bd841949fd9fc852d914647e0f8f2a1b4a668a","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid hdisks."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_c7e965b7","line":147,"range":{"start_line":147,"start_character":49,"end_line":147,"end_character":61},"updated":"2018-05-10 14:54:08.000000000","message":"we\u0027re not looking for hdisk, we\u0027re looking for udid","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"f5cd7d3cedbad07545c782daad9d261cd7ddafdf","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid hdisks."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_9fa728a8","line":147,"range":{"start_line":147,"start_character":49,"end_line":147,"end_character":61},"in_reply_to":"5f7c97a3_c7e965b7","updated":"2018-05-11 07:33:35.000000000","message":"Done","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"91bd841949fd9fc852d914647e0f8f2a1b4a668a","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid hdisks."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        # if valid udid is returned save in mig_data"},{"line_number":152,"context_line":"        volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_27d8591c","line":149,"updated":"2018-05-10 14:54:08.000000000","message":"if udid is not None, break out of the loop","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"f5cd7d3cedbad07545c782daad9d261cd7ddafdf","unresolved":false,"context_lines":[{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid hdisks."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":""},{"line_number":151,"context_line":"        # if valid udid is returned save in mig_data"},{"line_number":152,"context_line":"        volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_5fbf50af","line":149,"in_reply_to":"5f7c97a3_27d8591c","updated":"2018-05-11 07:33:35.000000000","message":"Done","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"91bd841949fd9fc852d914647e0f8f2a1b4a668a","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        if udid is not None:"},{"line_number":154,"context_line":"            mig_data[volume_key] \u003d udid"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        if udid is None or volume_key not in mig_data:"},{"line_number":157,"context_line":"            ex_args \u003d dict(volume_id\u003dself.volume_id,"},{"line_number":158,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":159,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_a7fd496f","line":156,"range":{"start_line":156,"start_character":24,"end_line":156,"end_character":53},"updated":"2018-05-10 14:54:08.000000000","message":"you just added volume_key to mig_data if udid is not None (line 154), so this will never evaluate True unless udid is None, making it unnecessary to check this.\n\nCan simplify this down to:\n\nif udid is None:\n    \u003cyour raise logic\u003e\nelse:\n    mig_data[volume_key] \u003d udid","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"f5cd7d3cedbad07545c782daad9d261cd7ddafdf","unresolved":false,"context_lines":[{"line_number":153,"context_line":"        if udid is not None:"},{"line_number":154,"context_line":"            mig_data[volume_key] \u003d udid"},{"line_number":155,"context_line":""},{"line_number":156,"context_line":"        if udid is None or volume_key not in mig_data:"},{"line_number":157,"context_line":"            ex_args \u003d dict(volume_id\u003dself.volume_id,"},{"line_number":158,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":159,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_1f9c785b","line":156,"range":{"start_line":156,"start_character":24,"end_line":156,"end_character":53},"in_reply_to":"5f7c97a3_a7fd496f","updated":"2018-05-11 07:33:35.000000000","message":"we need to iterate over all the vioses, until udid is found\nto cover both single and dual vios cases.","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"91bd841949fd9fc852d914647e0f8f2a1b4a668a","unresolved":false,"context_lines":[{"line_number":192,"context_line":"                 otherwise."},{"line_number":193,"context_line":"        :return: The udid of the device."},{"line_number":194,"context_line":"        \"\"\""},{"line_number":195,"context_line":"        if vios_w.uuid not in self.vios_uuids:"},{"line_number":196,"context_line":"            return False, None"},{"line_number":197,"context_line":"        device_name, udid \u003d self._discover_volume_on_vios(vios_w)"},{"line_number":198,"context_line":"        return (device_name and udid) is not None, udid"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_87f84d7b","line":195,"updated":"2018-05-10 14:54:08.000000000","message":"Need to cover this in UT. Looks like the method is currently entirely untested in UT. Please address that.","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"f5cd7d3cedbad07545c782daad9d261cd7ddafdf","unresolved":false,"context_lines":[{"line_number":192,"context_line":"                 otherwise."},{"line_number":193,"context_line":"        :return: The udid of the device."},{"line_number":194,"context_line":"        \"\"\""},{"line_number":195,"context_line":"        if vios_w.uuid not in self.vios_uuids:"},{"line_number":196,"context_line":"            return False, None"},{"line_number":197,"context_line":"        device_name, udid \u003d self._discover_volume_on_vios(vios_w)"},{"line_number":198,"context_line":"        return (device_name and udid) is not None, udid"}],"source_content_type":"text/x-python","patch_set":4,"id":"5f7c97a3_7f756c31","line":195,"in_reply_to":"5f7c97a3_87f84d7b","updated":"2018-05-11 07:33:35.000000000","message":"done","commit_id":"495502089ef1e12c02a3edda156023465186e4eb"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"a598fff8bcbd93cd618a4e1b3d4791e0854baf23","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid udid."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":"            if udid is not None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_72b91aca","line":147,"updated":"2018-05-11 15:37:43.000000000","message":"This comment confused me. I think you really want to say:\n\nIterate through the host\u0027s vios list to determine which vios has discovered the volume to get the udid of the volume.","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"919173829c5174486afd5b12971b19e3c30539ce","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid udid."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":"            if udid is not None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_e3ed5ab7","line":147,"in_reply_to":"5f7c97a3_72b91aca","updated":"2018-05-11 18:03:00.000000000","message":"\"Find the volume\u0027s udid\" should be enough","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"af094d29ef1e1d1546dace60ca82a55999c49a8f","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid udid."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":"            if udid is not None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_6f0b3f29","line":147,"in_reply_to":"5f7c97a3_72b91aca","updated":"2018-05-15 12:41:19.000000000","message":"Done","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"af094d29ef1e1d1546dace60ca82a55999c49a8f","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find valid udid."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":"            if udid is not None:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_0f064b21","line":147,"in_reply_to":"5f7c97a3_e3ed5ab7","updated":"2018-05-15 12:41:19.000000000","message":"Done","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"919173829c5174486afd5b12971b19e3c30539ce","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":"            if udid is not None:"},{"line_number":151,"context_line":"                break"},{"line_number":152,"context_line":"        if udid:"},{"line_number":153,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":154,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_2fb5797e","line":151,"updated":"2018-05-11 18:03:00.000000000","message":"nit: inserting a blank line after the break would be nice","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"af094d29ef1e1d1546dace60ca82a55999c49a8f","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":150,"context_line":"            if udid is not None:"},{"line_number":151,"context_line":"                break"},{"line_number":152,"context_line":"        if udid:"},{"line_number":153,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":154,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_ca012107","line":151,"in_reply_to":"5f7c97a3_2fb5797e","updated":"2018-05-15 12:41:19.000000000","message":"Done","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"a598fff8bcbd93cd618a4e1b3d4791e0854baf23","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid is not None:"},{"line_number":151,"context_line":"                break"},{"line_number":152,"context_line":"        if udid:"},{"line_number":153,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":154,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"},{"line_number":155,"context_line":"            mig_data[volume_key] \u003d udid"},{"line_number":156,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_12546652","line":153,"updated":"2018-05-11 15:37:43.000000000","message":"I don\u0027t think valid is the correct term here\n\nIf the volume was discovered on a vios then return the volume\u0027s udid in mig_data.","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"919173829c5174486afd5b12971b19e3c30539ce","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid is not None:"},{"line_number":151,"context_line":"                break"},{"line_number":152,"context_line":"        if udid:"},{"line_number":153,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":154,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"},{"line_number":155,"context_line":"            mig_data[volume_key] \u003d udid"},{"line_number":156,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_e3d47aeb","line":153,"in_reply_to":"5f7c97a3_12546652","updated":"2018-05-11 18:03:00.000000000","message":"\"Save the volume\u0027s udid in mig_data\"","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"af094d29ef1e1d1546dace60ca82a55999c49a8f","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid is not None:"},{"line_number":151,"context_line":"                break"},{"line_number":152,"context_line":"        if udid:"},{"line_number":153,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":154,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"},{"line_number":155,"context_line":"            mig_data[volume_key] \u003d udid"},{"line_number":156,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_4a15113f","line":153,"in_reply_to":"5f7c97a3_12546652","updated":"2018-05-15 12:41:19.000000000","message":"Done","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"af094d29ef1e1d1546dace60ca82a55999c49a8f","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid is not None:"},{"line_number":151,"context_line":"                break"},{"line_number":152,"context_line":"        if udid:"},{"line_number":153,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":154,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"},{"line_number":155,"context_line":"            mig_data[volume_key] \u003d udid"},{"line_number":156,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_6a100d4f","line":153,"in_reply_to":"5f7c97a3_e3d47aeb","updated":"2018-05-15 12:41:19.000000000","message":"Done","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"a598fff8bcbd93cd618a4e1b3d4791e0854baf23","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        :param migrate_data: volume migration data"},{"line_number":168,"context_line":"        \"\"\""},{"line_number":169,"context_line":"        # Get the udid of the volume to remove the hdisk for.  We can\u0027t"},{"line_number":170,"context_line":"        # use the connection information because LPM \u0027refreshes\u0027 it, which"},{"line_number":171,"context_line":"        # wipes out our data, so we use the data from the destination host"},{"line_number":172,"context_line":"        # to avoid having to discover the hdisk to get the udid."}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_92c4f6f6","line":169,"updated":"2018-05-11 15:37:43.000000000","message":"I think what you should say here is\n\nThe volume udid is the same on all VIOSs therefor we can use the udid to cleanup the volume on the source.","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"919173829c5174486afd5b12971b19e3c30539ce","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        :param migrate_data: volume migration data"},{"line_number":168,"context_line":"        \"\"\""},{"line_number":169,"context_line":"        # Get the udid of the volume to remove the hdisk for.  We can\u0027t"},{"line_number":170,"context_line":"        # use the connection information because LPM \u0027refreshes\u0027 it, which"},{"line_number":171,"context_line":"        # wipes out our data, so we use the data from the destination host"},{"line_number":172,"context_line":"        # to avoid having to discover the hdisk to get the udid."}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_032976e4","line":169,"in_reply_to":"5f7c97a3_92c4f6f6","updated":"2018-05-11 18:03:00.000000000","message":"\"Get the udid of the volume from migrate_data.\"","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"af094d29ef1e1d1546dace60ca82a55999c49a8f","unresolved":false,"context_lines":[{"line_number":166,"context_line":""},{"line_number":167,"context_line":"        :param migrate_data: volume migration data"},{"line_number":168,"context_line":"        \"\"\""},{"line_number":169,"context_line":"        # Get the udid of the volume to remove the hdisk for.  We can\u0027t"},{"line_number":170,"context_line":"        # use the connection information because LPM \u0027refreshes\u0027 it, which"},{"line_number":171,"context_line":"        # wipes out our data, so we use the data from the destination host"},{"line_number":172,"context_line":"        # to avoid having to discover the hdisk to get the udid."}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_6a39edd4","line":169,"in_reply_to":"5f7c97a3_92c4f6f6","updated":"2018-05-15 12:41:19.000000000","message":"Done","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"a598fff8bcbd93cd618a4e1b3d4791e0854baf23","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        the destination host after the migration has failed."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        :param migrate_data: migration data"},{"line_number":183,"context_line":"        \"\"\""},{"line_number":184,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":185,"context_line":"        self._cleanup_volume(udid)"},{"line_number":186,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_7d4ecb6f","line":183,"updated":"2018-05-11 15:37:43.000000000","message":"Similar comment here.","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"af094d29ef1e1d1546dace60ca82a55999c49a8f","unresolved":false,"context_lines":[{"line_number":180,"context_line":"        the destination host after the migration has failed."},{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        :param migrate_data: migration data"},{"line_number":183,"context_line":"        \"\"\""},{"line_number":184,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":185,"context_line":"        self._cleanup_volume(udid)"},{"line_number":186,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_2a445546","line":183,"in_reply_to":"5f7c97a3_7d4ecb6f","updated":"2018-05-15 12:41:19.000000000","message":"Done","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"919173829c5174486afd5b12971b19e3c30539ce","unresolved":false,"context_lines":[{"line_number":184,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":185,"context_line":"        self._cleanup_volume(udid)"},{"line_number":186,"context_line":""},{"line_number":187,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":188,"context_line":"        \"\"\"Returns whether or not the volume is on a VIOS."},{"line_number":189,"context_line":""},{"line_number":190,"context_line":"        :param vios_w: The Virtual I/O Server wrapper."}],"source_content_type":"text/x-python","patch_set":5,"id":"5f7c97a3_0357365a","line":187,"updated":"2018-05-11 18:03:00.000000000","message":"This method isn\u0027t private, so we should have a corresponding test_is_volume_on_vios method in the test class.","commit_id":"911f8b519684dd316ca176589a6661c440b7b340"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"f2089fc68c3f3e4d13b94e4d4e6faac9f2916043","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        :param migrate_data: volume migration data"},{"line_number":169,"context_line":"        \"\"\""},{"line_number":170,"context_line":"        # The volume udid is same on all the VIOS\u0027s therefore get the udid"},{"line_number":171,"context_line":"        # of the volume from migrate_data to remove the hdisk on the source."},{"line_number":172,"context_line":"        # We can\u0027t use the connection information because LPM \u0027refreshes\u0027 it,"},{"line_number":173,"context_line":"        # which wipes out our data, so we use the data from the destination"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_10589985","line":170,"updated":"2018-05-15 21:38:33.000000000","message":"I don\u0027t think this is clear at all, nor really accurate. Let\u0027s just say \"Get the udid of the volume from migrate_data\" or even remove the comment altogether. It\u0027s fairly obvious.\n\nAnd I would remove the bit about connection info as well... I suspect that is not really true in a pure OpenStack environment, and it doesn\u0027t seem terribly helpful anyway.","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"d6d00b57bd4af015b01ed469fab7cb5f6bc8cbbf","unresolved":false,"context_lines":[{"line_number":167,"context_line":""},{"line_number":168,"context_line":"        :param migrate_data: volume migration data"},{"line_number":169,"context_line":"        \"\"\""},{"line_number":170,"context_line":"        # The volume udid is same on all the VIOS\u0027s therefore get the udid"},{"line_number":171,"context_line":"        # of the volume from migrate_data to remove the hdisk on the source."},{"line_number":172,"context_line":"        # We can\u0027t use the connection information because LPM \u0027refreshes\u0027 it,"},{"line_number":173,"context_line":"        # which wipes out our data, so we use the data from the destination"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_97023f09","line":170,"in_reply_to":"5f7c97a3_10589985","updated":"2018-06-07 08:31:39.000000000","message":"Done","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"f2089fc68c3f3e4d13b94e4d4e6faac9f2916043","unresolved":false,"context_lines":[{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        :param migrate_data: migration data"},{"line_number":185,"context_line":"        \"\"\""},{"line_number":186,"context_line":"        # As volume udid is same on all the VIOS\u0027s therefore get the"},{"line_number":187,"context_line":"        # volume udid from the migrate_data to perform cleanup."},{"line_number":188,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":189,"context_line":"        self._cleanup_volume(udid)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5f7c97a3_50cff127","line":186,"updated":"2018-05-15 21:38:33.000000000","message":"this comment should match the one in the previous method where we\u0027re doing the same thing.","commit_id":"675d66c06ad1bf194fccbae76b4e0899154e6a0c"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"25120b9337f0004a2ca84003743ba5caf7fd24f4","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid:"},{"line_number":151,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":152,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        if udid:"},{"line_number":155,"context_line":"            # Save the volume\u0027s udid in mig_data"},{"line_number":156,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_87c87674","line":153,"updated":"2018-06-07 12:32:06.000000000","message":"still need the \u0027break\u0027 statement here so we don\u0027t try to find it on every VIOS... one is enough.","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"8a3fceebc90704ffde6cf6ace04bf56a428ec526","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid:"},{"line_number":151,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":152,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        if udid:"},{"line_number":155,"context_line":"            # Save the volume\u0027s udid in mig_data"},{"line_number":156,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_5561a838","line":153,"in_reply_to":"5f7c97a3_073a26e6","updated":"2018-06-07 13:45:54.000000000","message":"If you need this to be doing discovery, then the comment on line 147 is wrong (we\u0027re doing more than just finding the udid here) and it\u0027s confusing to be using is_volume_on_vios when that\u0027s not really what you\u0027re asking... If you want to do discovery, then call _discover_volume_on_vios here so that is clear, or at least have a very nice comment explaining why you\u0027re not doing that even though it\u0027s what you really want, so the code is understandable.\n\nAnd you\u0027ll definitely need to handle the case that the last vios you check couldn\u0027t discover the volume, which would wipe out the udid value the way you have things coded now (and you can\u0027t allow that).","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"e0d3b6caecc415c3111de22759b02b89b25c2954","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid:"},{"line_number":151,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":152,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        if udid:"},{"line_number":155,"context_line":"            # Save the volume\u0027s udid in mig_data"},{"line_number":156,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_23270db9","line":153,"in_reply_to":"5f7c97a3_4a301e9f","updated":"2018-06-07 17:29:08.000000000","message":"check the updated patch which uses the g_udid to store the udid. We can\u0027t break here, since during our testing in the case of dual vios, if we break, disk does not get discovered on the second vios and migration fails.","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"aa1fba1c83cc991bf2802352a4ae74e50b737e0e","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid:"},{"line_number":151,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":152,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        if udid:"},{"line_number":155,"context_line":"            # Save the volume\u0027s udid in mig_data"},{"line_number":156,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_4a301e9f","line":153,"in_reply_to":"5f7c97a3_5561a838","updated":"2018-06-07 15:43:17.000000000","message":"yep if the last vios called doesn\u0027t have the hdisk discovered you going to lose the udid\n\nDo you really need query all of the VIOSs? maybe a break here? or move lines 155,156 here and break or return?","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"a6fc225fc30ae31dceb8e145139a52c6f8c27d9a","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            if udid:"},{"line_number":151,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":152,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":153,"context_line":""},{"line_number":154,"context_line":"        if udid:"},{"line_number":155,"context_line":"            # Save the volume\u0027s udid in mig_data"},{"line_number":156,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_073a26e6","line":153,"in_reply_to":"5f7c97a3_87c87674","updated":"2018-06-07 12:56:44.000000000","message":"No this call is to discover the volume on all the vioses, so we need that volume should be discovered on all the vioses,\nFor eg if the source volume is mapped on 2 VIOSES, at destination the volume should be discovered on both the VIOSES as well.\n\none of the thing which can be done is it should keep the udid assigned if it gets discovered. which will handle the single vios scenario.","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"25120b9337f0004a2ca84003743ba5caf7fd24f4","unresolved":false,"context_lines":[{"line_number":418,"context_line":"                            self.adapter, iqn, vios_w.uuid, lun\u003dlun,"},{"line_number":419,"context_line":"                            iface_name\u003dself.iface_name, portal\u003dportal,"},{"line_number":420,"context_line":"                            multipath\u003dself._is_multipath())"},{"line_number":421,"context_line":"                        # Cleanup the volume hdisk"},{"line_number":422,"context_line":"                        self._cleanup_volume(udid)"},{"line_number":423,"context_line":"                    except (pvm_exc.ISCSIRemoveFailed,"},{"line_number":424,"context_line":"                            pvm_exc.JobRequestFailed) as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_c7d98ef4","line":421,"updated":"2018-06-07 12:32:06.000000000","message":"Instead of calling _cleanup_volume, use _add_remove_hdisk so you can do it in stg_ftsk. See vscsi code for an example, if needed.\n\nAnd should we do this before or after remove_iscsi? I would think before...","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"8a3fceebc90704ffde6cf6ace04bf56a428ec526","unresolved":false,"context_lines":[{"line_number":418,"context_line":"                            self.adapter, iqn, vios_w.uuid, lun\u003dlun,"},{"line_number":419,"context_line":"                            iface_name\u003dself.iface_name, portal\u003dportal,"},{"line_number":420,"context_line":"                            multipath\u003dself._is_multipath())"},{"line_number":421,"context_line":"                        # Cleanup the volume hdisk"},{"line_number":422,"context_line":"                        self._cleanup_volume(udid)"},{"line_number":423,"context_line":"                    except (pvm_exc.ISCSIRemoveFailed,"},{"line_number":424,"context_line":"                            pvm_exc.JobRequestFailed) as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_b5a59c49","line":421,"in_reply_to":"5f7c97a3_4a4ca375","updated":"2018-06-07 13:45:54.000000000","message":"You agree, Gerald? remove_iscsi should be before remove_hdisk?","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"e0d3b6caecc415c3111de22759b02b89b25c2954","unresolved":false,"context_lines":[{"line_number":418,"context_line":"                            self.adapter, iqn, vios_w.uuid, lun\u003dlun,"},{"line_number":419,"context_line":"                            iface_name\u003dself.iface_name, portal\u003dportal,"},{"line_number":420,"context_line":"                            multipath\u003dself._is_multipath())"},{"line_number":421,"context_line":"                        # Cleanup the volume hdisk"},{"line_number":422,"context_line":"                        self._cleanup_volume(udid)"},{"line_number":423,"context_line":"                    except (pvm_exc.ISCSIRemoveFailed,"},{"line_number":424,"context_line":"                            pvm_exc.JobRequestFailed) as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_c0072f1d","line":421,"in_reply_to":"5f7c97a3_8a287697","updated":"2018-06-07 17:29:08.000000000","message":"we don\u0027t need remove_hdisk, remove_iscsi will remove the hdisk as well.","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"aa1fba1c83cc991bf2802352a4ae74e50b737e0e","unresolved":false,"context_lines":[{"line_number":418,"context_line":"                            self.adapter, iqn, vios_w.uuid, lun\u003dlun,"},{"line_number":419,"context_line":"                            iface_name\u003dself.iface_name, portal\u003dportal,"},{"line_number":420,"context_line":"                            multipath\u003dself._is_multipath())"},{"line_number":421,"context_line":"                        # Cleanup the volume hdisk"},{"line_number":422,"context_line":"                        self._cleanup_volume(udid)"},{"line_number":423,"context_line":"                    except (pvm_exc.ISCSIRemoveFailed,"},{"line_number":424,"context_line":"                            pvm_exc.JobRequestFailed) as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_8a287697","line":421,"in_reply_to":"5f7c97a3_b5a59c49","updated":"2018-06-07 15:43:17.000000000","message":"Chhavi Why would the disk be in use if you log out after the hdisk is removed?\n\ndo we have an iscsi remove_hdisk somewhere?","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"a6fc225fc30ae31dceb8e145139a52c6f8c27d9a","unresolved":false,"context_lines":[{"line_number":418,"context_line":"                            self.adapter, iqn, vios_w.uuid, lun\u003dlun,"},{"line_number":419,"context_line":"                            iface_name\u003dself.iface_name, portal\u003dportal,"},{"line_number":420,"context_line":"                            multipath\u003dself._is_multipath())"},{"line_number":421,"context_line":"                        # Cleanup the volume hdisk"},{"line_number":422,"context_line":"                        self._cleanup_volume(udid)"},{"line_number":423,"context_line":"                    except (pvm_exc.ISCSIRemoveFailed,"},{"line_number":424,"context_line":"                            pvm_exc.JobRequestFailed) as e:"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_4a4ca375","line":421,"in_reply_to":"5f7c97a3_c7d98ef4","updated":"2018-06-07 12:56:44.000000000","message":"we can use _add_remove_hdisk() as well, this will come after remove_iscsi after the iscsi session is logout, otherwise disk will be in use","commit_id":"1e9dc03865c8d7d53e18738e24c0ae7137ea1309"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"74cfcf99d01890685ff4d356e6bda7f66ffd7171","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find the volume\u0027s udid."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            # Discover the volume on vios"},{"line_number":150,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":151,"context_line":"            if udid:"},{"line_number":152,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_eacfaa26","line":149,"range":{"start_line":147,"start_character":0,"end_line":149,"end_character":41},"updated":"2018-06-07 15:41:52.000000000","message":"these comments are not clear on what is actually happening. Suggested replacement (of the first comment, and then delete the L149 comment):\n\n  # Iterate through host vios list to do iscsi discovery and\n  # find the volume\u0027s udid.\n  # Note(chhagarw): despite the name, is_volume_on_vios is doing\n  # more than check whether the volume is on a VIOS.","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"e0d3b6caecc415c3111de22759b02b89b25c2954","unresolved":false,"context_lines":[{"line_number":144,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":145,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":146,"context_line":""},{"line_number":147,"context_line":"        # Iterate through host vios list to find the volume\u0027s udid."},{"line_number":148,"context_line":"        for vios_w in vios_wraps:"},{"line_number":149,"context_line":"            # Discover the volume on vios"},{"line_number":150,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":151,"context_line":"            if udid:"},{"line_number":152,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_032a112b","line":149,"range":{"start_line":147,"start_character":0,"end_line":149,"end_character":41},"in_reply_to":"5f7c97a3_eacfaa26","updated":"2018-06-07 17:29:08.000000000","message":"Done","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"74cfcf99d01890685ff4d356e6bda7f66ffd7171","unresolved":false,"context_lines":[{"line_number":424,"context_line":"                            pvm_exc.JobRequestFailed) as e:"},{"line_number":425,"context_line":"                        LOG.warning(e)"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"                    # Add a step to also remove the hdisk"},{"line_number":428,"context_line":"                    self._add_remove_hdisk(vios_w, device_name)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                self.stg_ftsk.add_post_execute(task.FunctorTask("}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_ea448a76","line":427,"updated":"2018-06-07 15:41:52.000000000","message":"UT should be updated to cover this","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"e0d3b6caecc415c3111de22759b02b89b25c2954","unresolved":false,"context_lines":[{"line_number":424,"context_line":"                            pvm_exc.JobRequestFailed) as e:"},{"line_number":425,"context_line":"                        LOG.warning(e)"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"                    # Add a step to also remove the hdisk"},{"line_number":428,"context_line":"                    self._add_remove_hdisk(vios_w, device_name)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                self.stg_ftsk.add_post_execute(task.FunctorTask("}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_631ae517","line":427,"in_reply_to":"5f7c97a3_ea448a76","updated":"2018-06-07 17:29:08.000000000","message":"don\u0027t need anymore, since remove_iscsi cleans up the hdisk as well.","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"74cfcf99d01890685ff4d356e6bda7f66ffd7171","unresolved":false,"context_lines":[{"line_number":425,"context_line":"                        LOG.warning(e)"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"                    # Add a step to also remove the hdisk"},{"line_number":428,"context_line":"                    self._add_remove_hdisk(vios_w, device_name)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                self.stg_ftsk.add_post_execute(task.FunctorTask("},{"line_number":431,"context_line":"                    remove, name\u003d\u0027remove_%s_from_vios_%s\u0027 % (device_name,"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_4a2d7efb","line":428,"updated":"2018-06-07 15:41:52.000000000","message":"this is going to run self.stg_ftsk.add_post_execute so I think it needs to happen outside the remove()","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"e0d3b6caecc415c3111de22759b02b89b25c2954","unresolved":false,"context_lines":[{"line_number":425,"context_line":"                        LOG.warning(e)"},{"line_number":426,"context_line":""},{"line_number":427,"context_line":"                    # Add a step to also remove the hdisk"},{"line_number":428,"context_line":"                    self._add_remove_hdisk(vios_w, device_name)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                self.stg_ftsk.add_post_execute(task.FunctorTask("},{"line_number":431,"context_line":"                    remove, name\u003d\u0027remove_%s_from_vios_%s\u0027 % (device_name,"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_a3e55d0c","line":428,"in_reply_to":"5f7c97a3_4a2d7efb","updated":"2018-06-07 17:29:08.000000000","message":"will be removed, so NA","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"74cfcf99d01890685ff4d356e6bda7f66ffd7171","unresolved":false,"context_lines":[{"line_number":428,"context_line":"                    self._add_remove_hdisk(vios_w, device_name)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                self.stg_ftsk.add_post_execute(task.FunctorTask("},{"line_number":431,"context_line":"                    remove, name\u003d\u0027remove_%s_from_vios_%s\u0027 % (device_name,"},{"line_number":432,"context_line":"                                                             vios_w.uuid)))"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"            # Found a valid element to remove"},{"line_number":435,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_2a7842f6","line":432,"range":{"start_line":431,"start_character":28,"end_line":432,"end_character":73},"updated":"2018-06-07 15:41:52.000000000","message":"assuming that _add_remove_hdisk moves out of this task (previous comment) we should rename this to\n\n  rm_iscsi_%s_%s\u0027 % (vios_w.name, device_name)\n\nfor clarity and consistency with _add_remove_hdisk\u0027s task name.","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"e0d3b6caecc415c3111de22759b02b89b25c2954","unresolved":false,"context_lines":[{"line_number":428,"context_line":"                    self._add_remove_hdisk(vios_w, device_name)"},{"line_number":429,"context_line":""},{"line_number":430,"context_line":"                self.stg_ftsk.add_post_execute(task.FunctorTask("},{"line_number":431,"context_line":"                    remove, name\u003d\u0027remove_%s_from_vios_%s\u0027 % (device_name,"},{"line_number":432,"context_line":"                                                             vios_w.uuid)))"},{"line_number":433,"context_line":""},{"line_number":434,"context_line":"            # Found a valid element to remove"},{"line_number":435,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":11,"id":"5f7c97a3_c3e099fb","line":432,"range":{"start_line":431,"start_character":28,"end_line":432,"end_character":73},"in_reply_to":"5f7c97a3_2a7842f6","updated":"2018-06-07 17:29:08.000000000","message":"NA","commit_id":"886b46bea4ef2cf8e501c8f6f44ff7a440f4eb2d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2bfab20abc774472142745f33fed88b21d4e4c58","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_af3d3c2d","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"updated":"2018-06-07 20:34:25.000000000","message":"nit: This is exactly what for/else was designed to handle.\n\n vios_wraps \u003d ...\n\n for vios_w in vios_wraps:\n     udid \u003d ...\n     if udid:\n         ...\n         break\n else:\n     LOG.debug(...)\n     raise ...\n\n volume_key \u003d ...\n mig_data[volume_key] \u003d udid\n\nYou don\u0027t need g_udid, etc.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"dff2dd21fe7b1173cf578a5313f790a1f90a1a86","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_5520baf7","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_124c9874","updated":"2018-06-07 23:08:38.000000000","message":"picky picky picky ... ;-)\n\nHow about this:\n\nWe need to run is_volume_on_vios on all VIOSs to trigger the VIOS device configuration methods that in turn cause the discovery of LUN associated with the volume udid. The storage provider has mapped the volume to the iqns of the VIOS however this does not guarantee that vios can see the storage provider and discover the a LUN. The discovery process has to be attempted on every vios to determine which vioss on the host can see the storage provide by discovering a LUN. By running is_volume_on_vos and discovering the LUNs, we are determining the VIOSs that will be servicing IO for this volume. \n\nNow my turn to be picky. Why is this method called is_volume_on_vios instead of something like discover_lun_on_vios?\n\nChhavi question. Do we have any information that would allow us to only discover the LUn on the vioss where we might expect to discover the LUN?","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"84517a1816edad9a00a9dacd76bc34074624f5a0","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_b19d990b","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_5520baf7","updated":"2018-06-08 12:58:04.000000000","message":"Thanks everyone for all the comments, \nI think it makes more sense to use discover_volume_on_vios instead of volume_on_vios, that method is internally calling discovery only for the given vios_uuids.\nFor the better readability.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"527aee07b092239c08c2fe6da76add2d88079127","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_e1ad4dea","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_5d021440","updated":"2018-06-11 18:08:27.000000000","message":"so that we can have connectivity (and therefore IO redundancy) through each VIOS","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b66dcafe6e0c86322bdf211654630aa04826c2ad","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_cfcaf79f","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_6f064423","updated":"2018-06-07 21:09:55.000000000","message":"I think a comment like this above the \"for\" might do the trick:\n\nIterate through all of the VIOSs on the host to determine the list of VIOSs that will be used to service IO requests for this volume.\n\nThen before io_volume_on_vios\n\nDiscover hdisk on VIOS.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"9c7258af1305b3c2938b2c38e46864debc3a128d","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_ef449476","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_af3d3c2d","updated":"2018-06-07 20:39:51.000000000","message":"no, and this is why I said it\u0027s confusing... we actually have to call is_volume_on_vios for each VIOS. Even if we find the udid on the very first VIOS, we still have to call the others so that iscsi discovery happens there. I.e., we\u0027re not just trying to find the udid.\n\nI tried to help Chhavi clarify that with the comments, but seems like it\u0027s not quite there yet... Suggestions welcome.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"b40b48d0956e0e209f05e565594d31ccf9477631","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_5d021440","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_b19d990b","updated":"2018-06-11 17:59:37.000000000","message":"I admit I\u0027m still confused.  Gerald\u0027s explanation still reads like, \"we have to run discovery on a VIOS to see if the volume is hosted there\".  But that still doesn\u0027t explain why we have to keep running it on the other VIOSes once we\u0027ve found one that it\u0027s hosted on.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"ae1f8969bd1cfb2992f1e390817250d2e647b47d","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_124c9874","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_cfcaf79f","updated":"2018-06-07 21:37:44.000000000","message":"No, that wouldn\u0027t have been enough for me.  I want something like:\n\n\"We need to run is_volume_on_vios on all VIOSes because, in addition to just finding the volume, it also \u003cdoes what?? and why is that necessary even when it\u0027s not servicing this volume??\u003e.\"","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"af06e3de8e61ba617b9b52f45c1105f2f48e3112","unresolved":false,"context_lines":[{"line_number":148,"context_line":"        # find the volume\u0027s udid."},{"line_number":149,"context_line":"        # Note(chhagarw): despite the name, is_volume_on_vios is doing"},{"line_number":150,"context_line":"        # more than check whether the volume is on a VIOS."},{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_6f064423","line":151,"range":{"start_line":151,"start_character":8,"end_line":151,"end_character":11},"in_reply_to":"5f7c97a3_ef449476","updated":"2018-06-07 20:41:56.000000000","message":"Ah, okay, the comment says it does more than check, but it doesn\u0027t say that whatever it\u0027s doing is important to do on all VIOSes, no matter where the volume is found.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b66dcafe6e0c86322bdf211654630aa04826c2ad","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        for vios_w in vios_wraps:"},{"line_number":152,"context_line":"            udid \u003d self.is_volume_on_vios(vios_w)[1]"},{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":155,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":156,"context_line":"                g_udid \u003d udid"},{"line_number":157,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_2fd4cb46","line":154,"updated":"2018-06-07 21:09:55.000000000","message":"Discovered volume %(udid)s on vios %(name)s. This vios will be used to provide IO services for this volume.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b66dcafe6e0c86322bdf211654630aa04826c2ad","unresolved":false,"context_lines":[{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":155,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":156,"context_line":"                g_udid \u003d udid"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        if g_udid:"},{"line_number":159,"context_line":"            # Save the volume\u0027s udid in mig_data"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_ef125462","line":156,"updated":"2018-06-07 21:09:55.000000000","message":"I think an else that has a debug would be helpful\nMaybe\n\"Volume %(udid)s not discovered on vios %(name)s. This vios will not be used to provide IO services for this volume.\"","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2bfab20abc774472142745f33fed88b21d4e4c58","unresolved":false,"context_lines":[{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":155,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":156,"context_line":"                g_udid \u003d udid"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        if g_udid:"},{"line_number":159,"context_line":"            # Save the volume\u0027s udid in mig_data"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_afca1c4c","line":156,"range":{"start_line":156,"start_character":16,"end_line":156,"end_character":29},"updated":"2018-06-07 20:34:25.000000000","message":"and break?  Or are we guaranteed to find it only on one VIOS?","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"9c7258af1305b3c2938b2c38e46864debc3a128d","unresolved":false,"context_lines":[{"line_number":153,"context_line":"            if udid:"},{"line_number":154,"context_line":"                LOG.debug(\"Found udid %(udid)s on vios %(name)s\","},{"line_number":155,"context_line":"                          dict(udid\u003dudid, name\u003dvios_w.name))"},{"line_number":156,"context_line":"                g_udid \u003d udid"},{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        if g_udid:"},{"line_number":159,"context_line":"            # Save the volume\u0027s udid in mig_data"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_2f304c07","line":156,"range":{"start_line":156,"start_character":16,"end_line":156,"end_character":29},"in_reply_to":"5f7c97a3_afca1c4c","updated":"2018-06-07 20:39:51.000000000","message":"no, see reply on previous comment.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"6f0ec22493fb1602c4e6477c6b5d4ceccc28abbf","unresolved":false,"context_lines":[{"line_number":160,"context_line":"            volume_key \u003d \u0027iscsi-\u0027 + self.volume_id"},{"line_number":161,"context_line":"            mig_data[volume_key] \u003d g_udid"},{"line_number":162,"context_line":"        else:"},{"line_number":163,"context_line":"            LOG.debug(\"Failed to discover the volume udid\")"},{"line_number":164,"context_line":"            ex_args \u003d dict(volume_id\u003dself.volume_id,"},{"line_number":165,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":166,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_f9122662","line":163,"range":{"start_line":163,"start_character":53,"end_line":163,"end_character":57},"updated":"2018-06-07 19:16:57.000000000","message":"I would remove \u0027udid\u0027 here to make this clearer. You\u0027re not just trying to find the udid, you\u0027re do volume discovery. I.e., the reason you have to call is_volume_on_vios for every vios instead of just one.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"2bfab20abc774472142745f33fed88b21d4e4c58","unresolved":false,"context_lines":[{"line_number":165,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":166,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def post_live_migration_at_source(self, migrate_data):"},{"line_number":169,"context_line":"        \"\"\"Performs post live migration for the volume on the source host."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":172,"context_line":"        the source host after the VM is on the destination."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        :param migrate_data: volume migration data"},{"line_number":175,"context_line":"        \"\"\""},{"line_number":176,"context_line":"        # Get the udid of the volume from the migrate_data."},{"line_number":177,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":178,"context_line":"        self._cleanup_volume(udid)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def cleanup_volume_at_destination(self, migrate_data):"},{"line_number":181,"context_line":"        \"\"\"Performs volume cleanup after LPM failure on the dest host."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":184,"context_line":"        the destination host after the migration has failed."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"        :param migrate_data: migration data"},{"line_number":187,"context_line":"        \"\"\""},{"line_number":188,"context_line":"        # Get the udid of the volume from the migrate_data."},{"line_number":189,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":190,"context_line":"        self._cleanup_volume(udid)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":193,"context_line":"        \"\"\"Returns whether or not the volume is on a VIOS."}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_8f4960b8","line":190,"range":{"start_line":168,"start_character":0,"end_line":190,"end_character":34},"updated":"2018-06-07 20:34:25.000000000","message":"This seems like a pattern we could factor out (in a fup).  Both of these methods are the same for the PVVscsiFCVolumeAdapter; and they\u0027re the same as each other.  So I\u0027m thinking we could probably consolidate them into one and/or implement them in the base class.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"84517a1816edad9a00a9dacd76bc34074624f5a0","unresolved":false,"context_lines":[{"line_number":165,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":166,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def post_live_migration_at_source(self, migrate_data):"},{"line_number":169,"context_line":"        \"\"\"Performs post live migration for the volume on the source host."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":172,"context_line":"        the source host after the VM is on the destination."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        :param migrate_data: volume migration data"},{"line_number":175,"context_line":"        \"\"\""},{"line_number":176,"context_line":"        # Get the udid of the volume from the migrate_data."},{"line_number":177,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":178,"context_line":"        self._cleanup_volume(udid)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def cleanup_volume_at_destination(self, migrate_data):"},{"line_number":181,"context_line":"        \"\"\"Performs volume cleanup after LPM failure on the dest host."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":184,"context_line":"        the destination host after the migration has failed."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"        :param migrate_data: migration data"},{"line_number":187,"context_line":"        \"\"\""},{"line_number":188,"context_line":"        # Get the udid of the volume from the migrate_data."},{"line_number":189,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":190,"context_line":"        self._cleanup_volume(udid)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":193,"context_line":"        \"\"\"Returns whether or not the volume is on a VIOS."}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_716b811e","line":190,"range":{"start_line":168,"start_character":0,"end_line":190,"end_character":34},"in_reply_to":"5f7c97a3_0fbb0fe5","updated":"2018-06-08 12:58:04.000000000","message":"yeah, they are kept in sync what we have for vscsi, for iscsi.\nBut you are right we cannot have the same volume id for both iscsi and vscsi. So we can use the base vsCSI class, and don\u0027t need to override the iscsi method here.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b66dcafe6e0c86322bdf211654630aa04826c2ad","unresolved":false,"context_lines":[{"line_number":165,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":166,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"},{"line_number":167,"context_line":""},{"line_number":168,"context_line":"    def post_live_migration_at_source(self, migrate_data):"},{"line_number":169,"context_line":"        \"\"\"Performs post live migration for the volume on the source host."},{"line_number":170,"context_line":""},{"line_number":171,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":172,"context_line":"        the source host after the VM is on the destination."},{"line_number":173,"context_line":""},{"line_number":174,"context_line":"        :param migrate_data: volume migration data"},{"line_number":175,"context_line":"        \"\"\""},{"line_number":176,"context_line":"        # Get the udid of the volume from the migrate_data."},{"line_number":177,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":178,"context_line":"        self._cleanup_volume(udid)"},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"    def cleanup_volume_at_destination(self, migrate_data):"},{"line_number":181,"context_line":"        \"\"\"Performs volume cleanup after LPM failure on the dest host."},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":184,"context_line":"        the destination host after the migration has failed."},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"        :param migrate_data: migration data"},{"line_number":187,"context_line":"        \"\"\""},{"line_number":188,"context_line":"        # Get the udid of the volume from the migrate_data."},{"line_number":189,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":190,"context_line":"        self._cleanup_volume(udid)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":193,"context_line":"        \"\"\"Returns whether or not the volume is on a VIOS."}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_0fbb0fe5","line":190,"range":{"start_line":168,"start_character":0,"end_line":190,"end_character":34},"in_reply_to":"5f7c97a3_8f4960b8","updated":"2018-06-07 21:09:55.000000000","message":"Is there a reason we need \u0027iscsi-\u0027 here? and \u0027vscsi-\u0027 elsewhere?\n\nWhat benefit is this extra bit of data providing? \n\nYou won\u0027t have a volume on iscsi with the same volume id as a volume on vscsi or npiv.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b66dcafe6e0c86322bdf211654630aa04826c2ad","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":190,"context_line":"        self._cleanup_volume(udid)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":193,"context_line":"        \"\"\"Returns whether or not the volume is on a VIOS."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        :param vios_w: The Virtual I/O Server wrapper."}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_4f0107af","line":192,"updated":"2018-06-07 21:09:55.000000000","message":"is there an easy way to make this method common with vscsi?","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"84517a1816edad9a00a9dacd76bc34074624f5a0","unresolved":false,"context_lines":[{"line_number":189,"context_line":"        udid \u003d migrate_data.get(\u0027iscsi-\u0027 + self.volume_id)"},{"line_number":190,"context_line":"        self._cleanup_volume(udid)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":193,"context_line":"        \"\"\"Returns whether or not the volume is on a VIOS."},{"line_number":194,"context_line":""},{"line_number":195,"context_line":"        :param vios_w: The Virtual I/O Server wrapper."}],"source_content_type":"text/x-python","patch_set":12,"id":"5f7c97a3_91709ddc","line":192,"in_reply_to":"5f7c97a3_4f0107af","updated":"2018-06-08 12:58:04.000000000","message":"Currently we do not have a method for iscsi hdisk.good_discovery.\nwe can derive a similar good_discovery method for iSCSI then we can go away with this override and directly consume the vscsi one.","commit_id":"2845489eaaa0c3f09044b9abf24fa0672d029fec"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ce60d3eb9cac65a096501eaa93b171f282da352e","unresolved":false,"context_lines":[{"line_number":147,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":148,"context_line":"                continue"},{"line_number":149,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":150,"context_line":"            # device configuration, that in turn will discover the"},{"line_number":151,"context_line":"            # LUN associated with the volume udid. This needs to be"},{"line_number":152,"context_line":"            # attempted on all VIOS\u0027s to determine the VIOS\u0027s that"},{"line_number":153,"context_line":"            # will be servicing IO for this volume."}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_288b53c0","line":150,"range":{"start_line":150,"start_character":36,"end_line":150,"end_character":40},"updated":"2018-06-08 14:47:45.000000000","message":"nit: s/that/which/","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"fae7166c1ed078d973eb578c960e5f1e219838b9","unresolved":false,"context_lines":[{"line_number":147,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":148,"context_line":"                continue"},{"line_number":149,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":150,"context_line":"            # device configuration, that in turn will discover the"},{"line_number":151,"context_line":"            # LUN associated with the volume udid. This needs to be"},{"line_number":152,"context_line":"            # attempted on all VIOS\u0027s to determine the VIOS\u0027s that"},{"line_number":153,"context_line":"            # will be servicing IO for this volume."}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_26dda913","line":150,"range":{"start_line":150,"start_character":36,"end_line":150,"end_character":40},"in_reply_to":"5f7c97a3_288b53c0","updated":"2018-06-11 08:38:53.000000000","message":"Done","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ce60d3eb9cac65a096501eaa93b171f282da352e","unresolved":false,"context_lines":[{"line_number":148,"context_line":"                continue"},{"line_number":149,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":150,"context_line":"            # device configuration, that in turn will discover the"},{"line_number":151,"context_line":"            # LUN associated with the volume udid. This needs to be"},{"line_number":152,"context_line":"            # attempted on all VIOS\u0027s to determine the VIOS\u0027s that"},{"line_number":153,"context_line":"            # will be servicing IO for this volume."},{"line_number":154,"context_line":"            udid \u003d self._discover_volume_on_vios(vios_w)[1]"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_e8355bf8","line":151,"range":{"start_line":151,"start_character":45,"end_line":151,"end_character":49},"updated":"2018-06-08 14:47:45.000000000","message":"nit: I believe this sentence is more correct if you drop the word \u0027udid\u0027 here. We want the udid as output, whereas this makes it sound like input.","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"fae7166c1ed078d973eb578c960e5f1e219838b9","unresolved":false,"context_lines":[{"line_number":148,"context_line":"                continue"},{"line_number":149,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":150,"context_line":"            # device configuration, that in turn will discover the"},{"line_number":151,"context_line":"            # LUN associated with the volume udid. This needs to be"},{"line_number":152,"context_line":"            # attempted on all VIOS\u0027s to determine the VIOS\u0027s that"},{"line_number":153,"context_line":"            # will be servicing IO for this volume."},{"line_number":154,"context_line":"            udid \u003d self._discover_volume_on_vios(vios_w)[1]"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_06e8adb0","line":151,"range":{"start_line":151,"start_character":45,"end_line":151,"end_character":49},"in_reply_to":"5f7c97a3_e8355bf8","updated":"2018-06-11 08:38:53.000000000","message":"Done","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ce60d3eb9cac65a096501eaa93b171f282da352e","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                volume_key \u003d \u0027vscsi-\u0027 + self.volume_id"},{"line_number":159,"context_line":"                mig_data[volume_key] \u003d udid"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        if volume_key not in mig_data:"},{"line_number":162,"context_line":"            LOG.debug(\"Failed to discover the volume\")"},{"line_number":163,"context_line":"            ex_args \u003d dict(volume_id\u003dself.volume_id,"},{"line_number":164,"context_line":"                           instance_name\u003dself.instance.name)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_e866bb51","line":161,"range":{"start_line":161,"start_character":11,"end_line":161,"end_character":21},"updated":"2018-06-08 14:47:45.000000000","message":"volume_key will be undefined here if discovery didn\u0027t find the volume on any VIOS. You can fix this by moving the volume_key assignment out of (before) the for loop.","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":14806,"name":"Chhavi Agarwal","email":"chhagarw@in.ibm.com","username":"chhagarw"},"change_message_id":"fae7166c1ed078d973eb578c960e5f1e219838b9","unresolved":false,"context_lines":[{"line_number":158,"context_line":"                volume_key \u003d \u0027vscsi-\u0027 + self.volume_id"},{"line_number":159,"context_line":"                mig_data[volume_key] \u003d udid"},{"line_number":160,"context_line":""},{"line_number":161,"context_line":"        if volume_key not in mig_data:"},{"line_number":162,"context_line":"            LOG.debug(\"Failed to discover the volume\")"},{"line_number":163,"context_line":"            ex_args \u003d dict(volume_id\u003dself.volume_id,"},{"line_number":164,"context_line":"                           instance_name\u003dself.instance.name)"}],"source_content_type":"text/x-python","patch_set":13,"id":"5f7c97a3_26060988","line":161,"range":{"start_line":161,"start_character":11,"end_line":161,"end_character":21},"in_reply_to":"5f7c97a3_e866bb51","updated":"2018-06-11 08:38:53.000000000","message":"Done","commit_id":"1bd38329f45ede0db8d4a43d1b46fcf6fb2ce5e0"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"b40b48d0956e0e209f05e565594d31ccf9477631","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        # See the connect_volume for why this is a direct call instead of"},{"line_number":142,"context_line":"        # using the tx_mgr.feed"},{"line_number":143,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":144,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        volume_key \u003d \u0027vscsi-\u0027 + self.volume_id"},{"line_number":147,"context_line":"        for vios_w in vios_wraps:"},{"line_number":148,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":149,"context_line":"                continue"},{"line_number":150,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":151,"context_line":"            # device configuration, which in turn will discover the"},{"line_number":152,"context_line":"            # LUN associated with the volume. This needs to be"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_c12db18f","line":149,"range":{"start_line":143,"start_character":0,"end_line":149,"end_character":24},"updated":"2018-06-11 17:59:37.000000000","message":"Since .get with VIO_STOR is so expensive, it would actually be more efficient to do multiple individual entry GETs rather than retrieving the feed and then filtering by self.vios_uuids.\n\nIn other words:\n\n for vios_uuid in self.vios_uuids:\n     vios_w \u003d pvm_vios.VIOS.get(self.adapter, uuid\u003dvios_uuid, xag\u003d[pvm_const.XAG_VIO_STOR)\n     ...\n\nRealistically, though, self.vios_uuids is going to be all of them in 99% of cases, right?","commit_id":"ba17efd9476ae97adc0dc1d4959340ec286ddc61"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"14bfe9da11f0448277cd020c32496794ca389738","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        # See the connect_volume for why this is a direct call instead of"},{"line_number":142,"context_line":"        # using the tx_mgr.feed"},{"line_number":143,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":144,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        volume_key \u003d \u0027vscsi-\u0027 + self.volume_id"},{"line_number":147,"context_line":"        for vios_w in vios_wraps:"},{"line_number":148,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":149,"context_line":"                continue"},{"line_number":150,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":151,"context_line":"            # device configuration, which in turn will discover the"},{"line_number":152,"context_line":"            # LUN associated with the volume. This needs to be"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_81d7b923","line":149,"range":{"start_line":143,"start_character":0,"end_line":149,"end_character":24},"in_reply_to":"5f7c97a3_61837d57","updated":"2018-06-11 18:11:23.000000000","message":"Thought there was some kind of rolling upgrade protocol, where you leave a third one lying around so you can upgrade it, then take one of the others offline to upgrade it, etc. so you always have two active.  But in the case of an inactive, the GET will be quick, so no harm no foul.\n\nUnless that GET is actually going to wait around an RMC-timeout...","commit_id":"ba17efd9476ae97adc0dc1d4959340ec286ddc61"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"527aee07b092239c08c2fe6da76add2d88079127","unresolved":false,"context_lines":[{"line_number":140,"context_line":""},{"line_number":141,"context_line":"        # See the connect_volume for why this is a direct call instead of"},{"line_number":142,"context_line":"        # using the tx_mgr.feed"},{"line_number":143,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":144,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"        volume_key \u003d \u0027vscsi-\u0027 + self.volume_id"},{"line_number":147,"context_line":"        for vios_w in vios_wraps:"},{"line_number":148,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":149,"context_line":"                continue"},{"line_number":150,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":151,"context_line":"            # device configuration, which in turn will discover the"},{"line_number":152,"context_line":"            # LUN associated with the volume. This needs to be"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_61837d57","line":149,"range":{"start_line":143,"start_character":0,"end_line":149,"end_character":24},"in_reply_to":"5f7c97a3_c12db18f","updated":"2018-06-11 18:08:27.000000000","message":"I think so, since self.vios_uuids only omits VIOS that are inactive, and we wouldn\u0027t expect customers to leave inactive VIOS around, right? Still might be a worthwhile improvement.","commit_id":"ba17efd9476ae97adc0dc1d4959340ec286ddc61"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"527aee07b092239c08c2fe6da76add2d88079127","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":151,"context_line":"            # device configuration, which in turn will discover the"},{"line_number":152,"context_line":"            # LUN associated with the volume. This needs to be"},{"line_number":153,"context_line":"            # attempted on all VIOS\u0027s to determine the VIOS\u0027s that"},{"line_number":154,"context_line":"            # will be servicing IO for this volume."},{"line_number":155,"context_line":"            udid \u003d self._discover_volume_on_vios(vios_w)[1]"},{"line_number":156,"context_line":"            if udid:"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_21eee520","line":153,"range":{"start_line":153,"start_character":41,"end_line":153,"end_character":50},"updated":"2018-06-11 18:08:27.000000000","message":"maybe it would make more sense if we s/determine/prep/ here?","commit_id":"ba17efd9476ae97adc0dc1d4959340ec286ddc61"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"1d66edc8b088e5d755ededf581e14c8aaa6e7c08","unresolved":false,"context_lines":[{"line_number":150,"context_line":"            # Discover the volume on all VIOS\u0027s to trigger the"},{"line_number":151,"context_line":"            # device configuration, which in turn will discover the"},{"line_number":152,"context_line":"            # LUN associated with the volume. This needs to be"},{"line_number":153,"context_line":"            # attempted on all VIOS\u0027s to determine the VIOS\u0027s that"},{"line_number":154,"context_line":"            # will be servicing IO for this volume."},{"line_number":155,"context_line":"            udid \u003d self._discover_volume_on_vios(vios_w)[1]"},{"line_number":156,"context_line":"            if udid:"}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_77fb3e7a","line":153,"range":{"start_line":153,"start_character":41,"end_line":153,"end_character":50},"in_reply_to":"5f7c97a3_21eee520","updated":"2018-06-11 21:10:21.000000000","message":"both actually work","commit_id":"ba17efd9476ae97adc0dc1d4959340ec286ddc61"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"b40b48d0956e0e209f05e565594d31ccf9477631","unresolved":false,"context_lines":[{"line_number":151,"context_line":"            # device configuration, which in turn will discover the"},{"line_number":152,"context_line":"            # LUN associated with the volume. This needs to be"},{"line_number":153,"context_line":"            # attempted on all VIOS\u0027s to determine the VIOS\u0027s that"},{"line_number":154,"context_line":"            # will be servicing IO for this volume."},{"line_number":155,"context_line":"            udid \u003d self._discover_volume_on_vios(vios_w)[1]"},{"line_number":156,"context_line":"            if udid:"},{"line_number":157,"context_line":"                LOG.debug(\"Discovered volume udid %(udid)s on vios %(name)s\","}],"source_content_type":"text/x-python","patch_set":16,"id":"5f7c97a3_e13f8db2","line":154,"updated":"2018-06-11 17:59:37.000000000","message":"Sigh, I still don\u0027t understand this.  But whatever.","commit_id":"ba17efd9476ae97adc0dc1d4959340ec286ddc61"}]}
