)]}'
{"nova_powervm/conf/powervm.py":[{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_8f1e70b8","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2018-02-08 17:52:08.000000000","message":"2018","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_330cfeea","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"in_reply_to":"3fa0c359_8f1e70b8","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":136,"context_line":"               help\u003d\u0027Volume Adapter API to connect FC volumes using NPIV\u0027"},{"line_number":137,"context_line":"                    \u0027connection mechanism.\u0027),"},{"line_number":138,"context_line":"    cfg.StrOpt(\u0027fc_vscsi_adapter_api\u0027,"},{"line_number":139,"context_line":"               default\u003d\u0027nova_powervm.virt.powervm.volume.fcpvvscsi.\u0027"},{"line_number":140,"context_line":"               \u0027FCPVVscsiVolumeAdapter\u0027,"},{"line_number":141,"context_line":"               help\u003d\u0027Volume Adapter API to connect FC volumes through Virtual \u0027"},{"line_number":142,"context_line":"                    \u0027I/O Server using PowerVM vSCSI connection mechanism.\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_18eaaf74","line":139,"updated":"2018-02-08 21:34:46.000000000","message":"hmmm... I don\u0027t know about changing conf defaults. Except in this case I don\u0027t think we should really have a conf setting for this in the first place, so the answer may be to deprecate this conf option and start ignoring it if/when set (and the similar npiv one above it).\n\n@efried thoughts?","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":136,"context_line":"               help\u003d\u0027Volume Adapter API to connect FC volumes using NPIV\u0027"},{"line_number":137,"context_line":"                    \u0027connection mechanism.\u0027),"},{"line_number":138,"context_line":"    cfg.StrOpt(\u0027fc_vscsi_adapter_api\u0027,"},{"line_number":139,"context_line":"               default\u003d\u0027nova_powervm.virt.powervm.volume.fcpvvscsi.\u0027"},{"line_number":140,"context_line":"               \u0027FCPVVscsiVolumeAdapter\u0027,"},{"line_number":141,"context_line":"               help\u003d\u0027Volume Adapter API to connect FC volumes through Virtual \u0027"},{"line_number":142,"context_line":"                    \u0027I/O Server using PowerVM vSCSI connection mechanism.\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_d3a6faab","line":139,"in_reply_to":"3fa0c359_18eaaf74","updated":"2018-02-09 21:26:45.000000000","message":"Deprecated, and ignored","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4e79bc59f75259c1908b341bb208657cd79e3d69","unresolved":false,"context_lines":[{"line_number":136,"context_line":"               help\u003d\u0027Volume Adapter API to connect FC volumes using NPIV\u0027"},{"line_number":137,"context_line":"                    \u0027connection mechanism.\u0027),"},{"line_number":138,"context_line":"    cfg.StrOpt(\u0027fc_vscsi_adapter_api\u0027,"},{"line_number":139,"context_line":"               default\u003d\u0027nova_powervm.virt.powervm.volume.fcpvvscsi.\u0027"},{"line_number":140,"context_line":"               \u0027FCPVVscsiVolumeAdapter\u0027,"},{"line_number":141,"context_line":"               help\u003d\u0027Volume Adapter API to connect FC volumes through Virtual \u0027"},{"line_number":142,"context_line":"                    \u0027I/O Server using PowerVM vSCSI connection mechanism.\u0027),"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_731b6680","line":139,"in_reply_to":"3fa0c359_18eaaf74","updated":"2018-02-09 21:08:16.000000000","message":"Unless there\u0027s some realistic alternative to the default - which I gather there really isn\u0027t - then yeah, whack it.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"}],"nova_powervm/tests/virt/powervm/test_driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4e79bc59f75259c1908b341bb208657cd79e3d69","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        self.assertTrue("},{"line_number":175,"context_line":"            self.drv.session.get_event_listener.return_value.shutdown.called)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.fcpvvscsi.wwpns\u0027)"},{"line_number":178,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.get_iscsi_initiator\u0027)"},{"line_number":179,"context_line":"    def test_get_volume_connector(self, mock_initiator, mock_wwpns):"},{"line_number":180,"context_line":"        \"\"\"Tests that a volume connector can be built.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_130c623f","line":177,"updated":"2018-02-09 21:08:16.000000000","message":"Add\n\n new\u003dmock.Mock()\n\nand remove the mock_wwpns param if you\u0027re not going to use it.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"99fecc6b6aa4cf3f5b67fbb2cc00d07296578065","unresolved":false,"context_lines":[{"line_number":174,"context_line":"        self.assertTrue("},{"line_number":175,"context_line":"            self.drv.session.get_event_listener.return_value.shutdown.called)"},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.fcpvvscsi.wwpns\u0027)"},{"line_number":178,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.get_iscsi_initiator\u0027)"},{"line_number":179,"context_line":"    def test_get_volume_connector(self, mock_initiator, mock_wwpns):"},{"line_number":180,"context_line":"        \"\"\"Tests that a volume connector can be built.\"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_992e5390","line":177,"in_reply_to":"3fa0c359_130c623f","updated":"2018-02-09 21:38:55.000000000","message":"Didn\u0027t know this was an option.\nDone.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"}],"nova_powervm/tests/virt/powervm/volume/test_driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_fb0b6228","line":1,"range":{"start_line":1,"start_character":21,"end_line":1,"end_character":22},"updated":"2018-03-18 00:20:12.000000000","message":"8","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_84117007","line":1,"range":{"start_line":1,"start_character":21,"end_line":1,"end_character":22},"in_reply_to":"df7087c5_fb0b6228","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/tests/virt/powervm/volume/test_fcpvvscsi.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4e79bc59f75259c1908b341bb208657cd79e3d69","unresolved":false,"context_lines":[{"line_number":228,"context_line":"    @mock.patch(\u0027pypowervm.tasks.scsi_mapper.build_vscsi_mapping\u0027)"},{"line_number":229,"context_line":"    @mock.patch(\u0027pypowervm.tasks.hdisk.discover_hdisk\u0027)"},{"line_number":230,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.fcpvvscsi\u0027"},{"line_number":231,"context_line":"                \u0027.FCPVVscsiVolumeAdapter._validate_vios_on_connection\u0027)"},{"line_number":232,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_vm_id\u0027)"},{"line_number":233,"context_line":"    def test_connect_volume_no_update("},{"line_number":234,"context_line":"        self, mock_get_vm_id, mock_validate_vioses, mock_disc_hdisk,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_16ce9081","line":231,"range":{"start_line":231,"start_character":17,"end_line":231,"end_character":18},"updated":"2018-02-09 21:08:16.000000000","message":"nit: Don\u0027t we usually put the dot on the previous line?  (Throughout)","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"99fecc6b6aa4cf3f5b67fbb2cc00d07296578065","unresolved":false,"context_lines":[{"line_number":228,"context_line":"    @mock.patch(\u0027pypowervm.tasks.scsi_mapper.build_vscsi_mapping\u0027)"},{"line_number":229,"context_line":"    @mock.patch(\u0027pypowervm.tasks.hdisk.discover_hdisk\u0027)"},{"line_number":230,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.volume.fcpvvscsi\u0027"},{"line_number":231,"context_line":"                \u0027.FCPVVscsiVolumeAdapter._validate_vios_on_connection\u0027)"},{"line_number":232,"context_line":"    @mock.patch(\u0027nova_powervm.virt.powervm.vm.get_vm_id\u0027)"},{"line_number":233,"context_line":"    def test_connect_volume_no_update("},{"line_number":234,"context_line":"        self, mock_get_vm_id, mock_validate_vioses, mock_disc_hdisk,"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_f60e8439","line":231,"range":{"start_line":231,"start_character":17,"end_line":231,"end_character":18},"in_reply_to":"3fa0c359_16ce9081","updated":"2018-02-09 21:38:55.000000000","message":"Found/fixed it in a few other spots (in virt/powervm/test_driver.py)","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"}],"nova_powervm/tests/virt/powervm/volume/test_fileio.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_bb05ea16","line":1,"updated":"2018-03-18 00:20:12.000000000","message":", 2018","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_e4014cb1","line":1,"in_reply_to":"df7087c5_bb05ea16","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/tests/virt/powervm/volume/test_gpfs.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_db021e0c","line":1,"updated":"2018-03-18 00:20:12.000000000","message":", 2018","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_04fd60b0","line":1,"in_reply_to":"df7087c5_db021e0c","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/tests/virt/powervm/volume/test_local.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_96fd5d0a","line":1,"updated":"2018-03-18 00:20:12.000000000","message":", 2018","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_a42d9447","line":1,"in_reply_to":"df7087c5_96fd5d0a","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/tests/virt/powervm/volume/test_npiv.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        # Set up the mocks for the internal volume driver"},{"line_number":61,"context_line":"        name \u003d \u0027nova_powervm.virt.powervm.volume.npiv.\u0027"},{"line_number":62,"context_line":"        self.mock_port_count_p \u003d mock.patch(name + \u0027_ports_per_fabric\u0027)"},{"line_number":63,"context_line":"        self.mock_port_count \u003d self.mock_port_count_p.start()"},{"line_number":64,"context_line":"        self.mock_port_count.return_value \u003d 1"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        self.mock_fabric_names_p \u003d mock.patch(name + \u0027_fabric_names\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_b602e108","line":63,"range":{"start_line":63,"start_character":54,"end_line":63,"end_character":59},"updated":"2018-03-18 00:20:12.000000000","message":"Uck, are we not stopping any of these?  We should be.\n\n self.addCleanup(self.mock_port_count_p.stop)","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        # Set up the mocks for the internal volume driver"},{"line_number":61,"context_line":"        name \u003d \u0027nova_powervm.virt.powervm.volume.npiv.\u0027"},{"line_number":62,"context_line":"        self.mock_port_count_p \u003d mock.patch(name + \u0027_ports_per_fabric\u0027)"},{"line_number":63,"context_line":"        self.mock_port_count \u003d self.mock_port_count_p.start()"},{"line_number":64,"context_line":"        self.mock_port_count.return_value \u003d 1"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"        self.mock_fabric_names_p \u003d mock.patch(name + \u0027_fabric_names\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_1d7d73b1","line":63,"range":{"start_line":63,"start_character":54,"end_line":63,"end_character":59},"in_reply_to":"df7087c5_b602e108","updated":"2018-03-27 17:21:17.000000000","message":"We are in the tearDown method.\nIs there a reason to use self.addCleanup vs tearDown?","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/virt/powervm/slot.py":[{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_8f73d015","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2018-02-08 17:52:08.000000000","message":"2018","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_b3f00e93","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"in_reply_to":"3fa0c359_8f73d015","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5864180200702e2202cd6bf7a7addbf0f6812d15","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        pv_vscsi_vol_to_vio \u003d {}"},{"line_number":125,"context_line":"        fabric_names \u003d []"},{"line_number":126,"context_line":"        for bdm, vol_drv in vol_drv_iter:"},{"line_number":127,"context_line":"            if vol_drv.vol_type() \u003d\u003d \u0027npiv\u0027:"},{"line_number":128,"context_line":"                if len(fabric_names) \u003d\u003d 0:"},{"line_number":129,"context_line":"                    fabric_names \u003d vol_drv._fabric_names()"},{"line_number":130,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_b0b12592","line":127,"updated":"2018-03-21 22:50:21.000000000","message":"using an isinstance check for NPIVVolumeAdapter (or VscsiVolumeAdapter to reduce the diff from the original) would allow us to get rid of the vol_type method, which isn\u0027t used anywhere else.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":124,"context_line":"        pv_vscsi_vol_to_vio \u003d {}"},{"line_number":125,"context_line":"        fabric_names \u003d []"},{"line_number":126,"context_line":"        for bdm, vol_drv in vol_drv_iter:"},{"line_number":127,"context_line":"            if vol_drv.vol_type() \u003d\u003d \u0027npiv\u0027:"},{"line_number":128,"context_line":"                if len(fabric_names) \u003d\u003d 0:"},{"line_number":129,"context_line":"                    fabric_names \u003d vol_drv._fabric_names()"},{"line_number":130,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_9853d116","line":127,"in_reply_to":"df7087c5_b0b12592","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5864180200702e2202cd6bf7a7addbf0f6812d15","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        for bdm, vol_drv in vol_drv_iter:"},{"line_number":127,"context_line":"            if vol_drv.vol_type() \u003d\u003d \u0027npiv\u0027:"},{"line_number":128,"context_line":"                if len(fabric_names) \u003d\u003d 0:"},{"line_number":129,"context_line":"                    fabric_names \u003d vol_drv._fabric_names()"},{"line_number":130,"context_line":"            else:"},{"line_number":131,"context_line":"                self._pv_vscsi_vol_to_vio(vol_drv, pv_vscsi_vol_to_vio)"},{"line_number":132,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_eb56cc06","line":129,"range":{"start_line":129,"start_character":43,"end_line":129,"end_character":56},"updated":"2018-03-21 22:50:21.000000000","message":"make this public (remove _) since we\u0027re calling from outside the class.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":126,"context_line":"        for bdm, vol_drv in vol_drv_iter:"},{"line_number":127,"context_line":"            if vol_drv.vol_type() \u003d\u003d \u0027npiv\u0027:"},{"line_number":128,"context_line":"                if len(fabric_names) \u003d\u003d 0:"},{"line_number":129,"context_line":"                    fabric_names \u003d vol_drv._fabric_names()"},{"line_number":130,"context_line":"            else:"},{"line_number":131,"context_line":"                self._pv_vscsi_vol_to_vio(vol_drv, pv_vscsi_vol_to_vio)"},{"line_number":132,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_1847c14e","line":129,"range":{"start_line":129,"start_character":43,"end_line":129,"end_character":56},"in_reply_to":"df7087c5_eb56cc06","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/virt/powervm/volume/__init__.py":[{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_c774346b","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2018-02-08 17:52:08.000000000","message":"2018","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_d3ed9ab7","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"in_reply_to":"3fa0c359_c774346b","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4e79bc59f75259c1908b341bb208657cd79e3d69","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"def get_wwpns_for_volume_connector(adapter, host_uuid, instance):"},{"line_number":84,"context_line":"    # WWPNs are derived from the FC connector.  Pass in a fake connection info"},{"line_number":85,"context_line":"    # to trick it into thinking it FC"},{"line_number":86,"context_line":"    drv_type \u003d CONF.powervm.fc_attach_strategy.lower()"},{"line_number":87,"context_line":"    if drv_type \u003d\u003d \u0027vscsi\u0027:"},{"line_number":88,"context_line":"        wwpns \u003d fcpvvscsi.wwpns(adapter)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_76903444","line":85,"range":{"start_line":85,"start_character":32,"end_line":85,"end_character":34},"updated":"2018-02-09 21:08:16.000000000","message":"it\u0027s","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"99fecc6b6aa4cf3f5b67fbb2cc00d07296578065","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"def get_wwpns_for_volume_connector(adapter, host_uuid, instance):"},{"line_number":84,"context_line":"    # WWPNs are derived from the FC connector.  Pass in a fake connection info"},{"line_number":85,"context_line":"    # to trick it into thinking it FC"},{"line_number":86,"context_line":"    drv_type \u003d CONF.powervm.fc_attach_strategy.lower()"},{"line_number":87,"context_line":"    if drv_type \u003d\u003d \u0027vscsi\u0027:"},{"line_number":88,"context_line":"        wwpns \u003d fcpvvscsi.wwpns(adapter)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_56165857","line":85,"range":{"start_line":85,"start_character":32,"end_line":85,"end_character":34},"in_reply_to":"3fa0c359_76903444","updated":"2018-02-09 21:38:55.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"0ae20e64b8a6c405a988a62b4783db68bd3e8181","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        wwpns \u003d fcpvvscsi.wwpns(adapter)"},{"line_number":90,"context_line":"    elif drv_type \u003d\u003d \u0027npiv\u0027:"},{"line_number":91,"context_line":"        wwpns \u003d npiv.wwpns(adapter, host_uuid, instance)"},{"line_number":92,"context_line":"    else:"},{"line_number":93,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":94,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"},{"line_number":95,"context_line":"    return wwpns"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_37c79f48","line":94,"range":{"start_line":92,"start_character":0,"end_line":94,"end_character":60},"updated":"2018-02-14 22:41:50.000000000","message":"This isn\u0027t really an InvalidVolume case. It\u0027s a case of having the nova compute host configured with an invalid conf value. Just add \"wwpns \u003d []\" before the if statement starts and then remove these 3 lines.","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f70a5f7ced3e9c5e66cf084608a4a54dfdf279cf","unresolved":false,"context_lines":[{"line_number":89,"context_line":"        wwpns \u003d fcpvvscsi.wwpns(adapter)"},{"line_number":90,"context_line":"    elif drv_type \u003d\u003d \u0027npiv\u0027:"},{"line_number":91,"context_line":"        wwpns \u003d npiv.wwpns(adapter, host_uuid, instance)"},{"line_number":92,"context_line":"    else:"},{"line_number":93,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":94,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"},{"line_number":95,"context_line":"    return wwpns"},{"line_number":96,"context_line":""},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_4934fdde","line":94,"range":{"start_line":92,"start_character":0,"end_line":94,"end_character":60},"in_reply_to":"3fa0c359_37c79f48","updated":"2018-02-15 17:29:52.000000000","message":"Done","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"def get_wwpns_for_volume_connector(adapter, host_uuid, instance):"},{"line_number":85,"context_line":"    # WWPNs are derived from the FC connector.  Pass in a fake connection info"},{"line_number":86,"context_line":"    # to trick it into thinking it\u0027s FC"},{"line_number":87,"context_line":"    drv_type \u003d CONF.powervm.fc_attach_strategy.lower()"},{"line_number":88,"context_line":"    wwpns \u003d []"},{"line_number":89,"context_line":"    if drv_type \u003d\u003d \u0027vscsi\u0027:"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_360ed132","line":86,"range":{"start_line":85,"start_character":0,"end_line":86,"end_character":39},"updated":"2018-03-18 00:20:12.000000000","message":"It doesn\u0027t look like this comment is relevant anymore.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"def get_wwpns_for_volume_connector(adapter, host_uuid, instance):"},{"line_number":85,"context_line":"    # WWPNs are derived from the FC connector.  Pass in a fake connection info"},{"line_number":86,"context_line":"    # to trick it into thinking it\u0027s FC"},{"line_number":87,"context_line":"    drv_type \u003d CONF.powervm.fc_attach_strategy.lower()"},{"line_number":88,"context_line":"    wwpns \u003d []"},{"line_number":89,"context_line":"    if drv_type \u003d\u003d \u0027vscsi\u0027:"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_986c31d1","line":86,"range":{"start_line":85,"start_character":0,"end_line":86,"end_character":39},"in_reply_to":"df7087c5_360ed132","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"61263c84c1522f08f460c5659b50e713ed02af6a","unresolved":false,"context_lines":[{"line_number":97,"context_line":"_ISCSI_LOOKUP_COMPLETE \u003d False"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"@lockutils.synchronized(\"PowerVM_iSCSI_Initiator_Lookup\")"},{"line_number":101,"context_line":"def get_iscsi_initiator(adapter):"},{"line_number":102,"context_line":"    \"\"\"Gets the iSCSI initiator."},{"line_number":103,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_ebe9d019","line":100,"updated":"2018-03-22 18:12:50.000000000","message":"should only synchronize what we need to synchronize, not this whole method. E.g. if this method is just going to return a cached value, that doesn\u0027t need to be synchronized.\n\nAlso note that when we add support for traditional vios or multiple NovaLinks (both future) we will need to synchronize separately per vios. Might want to go ahead and do that here, but not required (yet).","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":97,"context_line":"_ISCSI_LOOKUP_COMPLETE \u003d False"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"@lockutils.synchronized(\"PowerVM_iSCSI_Initiator_Lookup\")"},{"line_number":101,"context_line":"def get_iscsi_initiator(adapter):"},{"line_number":102,"context_line":"    \"\"\"Gets the iSCSI initiator."},{"line_number":103,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_7795a33f","line":100,"in_reply_to":"df7087c5_ebe9d019","updated":"2018-03-27 17:21:17.000000000","message":"Wouldn\u0027t locking any later defeat the purpose of it?\nWe\u0027d have to lock the whole if statement to not have multiple calls to discover_iscsi_initiator (which I don\u0027t think needs to really be locked anyways, besides wasting time).","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"61263c84c1522f08f460c5659b50e713ed02af6a","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"@lockutils.synchronized(\"PowerVM_iSCSI_Initiator_Lookup\")"},{"line_number":101,"context_line":"def get_iscsi_initiator(adapter):"},{"line_number":102,"context_line":"    \"\"\"Gets the iSCSI initiator."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    This is looked up once at process start up.  Stored in memory thereafter."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_cb7f2c64","line":101,"updated":"2018-03-22 18:12:50.000000000","message":"should move to iscsi.py","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":98,"context_line":""},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"@lockutils.synchronized(\"PowerVM_iSCSI_Initiator_Lookup\")"},{"line_number":101,"context_line":"def get_iscsi_initiator(adapter):"},{"line_number":102,"context_line":"    \"\"\"Gets the iSCSI initiator."},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"    This is looked up once at process start up.  Stored in memory thereafter."}],"source_content_type":"text/x-python","patch_set":6,"id":"bf659307_c14f4632","line":101,"in_reply_to":"df7087c5_cb7f2c64","updated":"2018-03-27 17:21:17.000000000","message":"This was moved out of iscsi.py previously.\nhttps://review.openstack.org/#/c/424290","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/virt/powervm/volume/driver.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_5232cb5f","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2018-01-31 22:24:31.000000000","message":"2018","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015, 2017 IBM Corp."},{"line_number":2,"context_line":"#"},{"line_number":3,"context_line":"# All Rights Reserved."},{"line_number":4,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_85d24a27","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"in_reply_to":"5f93b717_5232cb5f","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":273,"context_line":"class FibreChannelVolumeAdapter(object):"},{"line_number":274,"context_line":"    \"\"\"Defines a Fibre Channel specific volume adapter."},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    Fibre Channel has a few additional attributes for the volume adapter."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_f418ac1e","line":273,"updated":"2018-01-31 22:24:31.000000000","message":"The virt driver\u0027s get_volume_connector method actually adds wwpns to the connector info regardless of driver type (though whether it uses the NPIV or vSCSI implementation will depend on CONF.powervm.fc_attach_strategy). Are those only needed for NPIV and FC-vSCSI connections and just ignored for the rest, or does this mean that we can connect any combination of volume types *except* NPIV and something else?","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":270,"context_line":""},{"line_number":271,"context_line":""},{"line_number":272,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":273,"context_line":"class FibreChannelVolumeAdapter(object):"},{"line_number":274,"context_line":"    \"\"\"Defines a Fibre Channel specific volume adapter."},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"    Fibre Channel has a few additional attributes for the volume adapter."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_07e5cc37","line":273,"in_reply_to":"5f93b717_f418ac1e","updated":"2018-02-05 21:06:19.000000000","message":"These are ignored for non fc volumes.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":278,"context_line":"    sub classes can support them."},{"line_number":279,"context_line":"    \"\"\""},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"    def wwpns(self):"},{"line_number":282,"context_line":"        \"\"\"Builds the WWPNs of the adapters that will connect the ports."},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"        :return: The list of WWPNs that need to be included in the zone set."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_6ba276fe","line":281,"updated":"2018-01-31 22:24:31.000000000","message":"We appear to now have an implementation of wwpns() for all drivers, since everything besides npiv inherits from VscsiVolumeAdapter. But the way the method is called, it seems that it doesn\u0027t really have anything to do with driver type (see previous comment) and should be pulled off the driver classes entirely as a separate thing. At least for vSCSI (the npiv implementation is more involved, and may benefit from being on an instance of NPIVVolumeAdapter to share self variables... I didn\u0027t dig that deeply into it). We could get rid of this class if we make that change.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":278,"context_line":"    sub classes can support them."},{"line_number":279,"context_line":"    \"\"\""},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"    def wwpns(self):"},{"line_number":282,"context_line":"        \"\"\"Builds the WWPNs of the adapters that will connect the ports."},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"        :return: The list of WWPNs that need to be included in the zone set."}],"source_content_type":"text/x-python","patch_set":2,"id":"3fa0c359_7a989c69","line":281,"in_reply_to":"5f93b717_5215cfe3","updated":"2018-02-05 21:06:19.000000000","message":"Pulled this out of the driver classes.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5557a7c56b06399b82164e6566d6a8d4cfaddcf7","unresolved":false,"context_lines":[{"line_number":278,"context_line":"    sub classes can support them."},{"line_number":279,"context_line":"    \"\"\""},{"line_number":280,"context_line":""},{"line_number":281,"context_line":"    def wwpns(self):"},{"line_number":282,"context_line":"        \"\"\"Builds the WWPNs of the adapters that will connect the ports."},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"        :return: The list of WWPNs that need to be included in the zone set."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_5215cfe3","line":281,"in_reply_to":"5f93b717_6ba276fe","updated":"2018-02-01 18:01:15.000000000","message":"My bad here. I thought I saw wwpns() defined on VscsiVolumeAdapter, but it\u0027s actually on PVVscsiFCVolumeAdapter. So there is *not* a wwpns() for all drivers.\n\nThat said, it still doesn\u0027t seem like this belongs on the driver classes. It\u0027s only ever called by something that creates a fake driver instance just to call this.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":286,"context_line":"        raise NotImplementedError()"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"class VscsiVolumeAdapter(PowerVMVolumeAdapter):"},{"line_number":290,"context_line":"    \"\"\"VscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_4b969a95","line":289,"updated":"2018-01-31 22:24:31.000000000","message":"let\u0027s put this in vscsi.py, and rename the current vscsi.py to fcpvvscsi.py","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":286,"context_line":"        raise NotImplementedError()"},{"line_number":287,"context_line":""},{"line_number":288,"context_line":""},{"line_number":289,"context_line":"class VscsiVolumeAdapter(PowerVMVolumeAdapter):"},{"line_number":290,"context_line":"    \"\"\"VscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":291,"context_line":""},{"line_number":292,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_e5b9ce78","line":289,"in_reply_to":"5f93b717_4b969a95","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":293,"context_line":"    vSCSI to host the volume to the VM."},{"line_number":294,"context_line":"    \"\"\""},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":297,"context_line":"        \"\"\"Returns whether or not the volume is on VIOS."},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"        This method is used in the NovaSlotManager to build slot map."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_1efa12bc","line":296,"updated":"2018-01-31 22:24:31.000000000","message":"slot.py calls vol_drv.is_volume_on_vios. It just so happens that it is filtering first so that it never calls it for the npiv driver, but if that was ever changed/broken we would get a messy error for the NPIV driver having not defined this instead of NotImplementedError. Let\u0027s move this back onto the parent class so it is defined for all driver types.\n\nIt would probably also be better to change this code from slot.py:\n\n            if vol_drv.vol_type() in _SLOT_VOLUME_TYPES:\n                self._pv_vscsi_vol_to_vio(vol_drv, pv_vscsi_vol_to_vio)\n            elif len(fabric_names) \u003d\u003d 0 and vol_drv.vol_type() \u003d\u003d \u0027npiv\u0027:\n                fabric_names \u003d vol_drv._fabric_names()\n\nto:\n\n            if vol_drv.vol_type() \u003d\u003d \u0027npiv\u0027:\n                if len(fabric_names) \u003d\u003d 0:\n                    fabric_names \u003d vol_drv._fabric_names()\n            else:\n                self._pv_vscsi_vol_to_vio(vol_drv, pv_vscsi_vol_to_vio)\n\nand get rid of _SLOT_VOLUME_TYPES, so we don\u0027t have to worry about keeping that up-to-date as we add new storage drivers.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":293,"context_line":"    vSCSI to host the volume to the VM."},{"line_number":294,"context_line":"    \"\"\""},{"line_number":295,"context_line":""},{"line_number":296,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":297,"context_line":"        \"\"\"Returns whether or not the volume is on VIOS."},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"        This method is used in the NovaSlotManager to build slot map."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_82554afc","line":296,"in_reply_to":"5f93b717_1efa12bc","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":312,"context_line":"        # SCSI mapping is for the connections between VIOS and client VM"},{"line_number":313,"context_line":"        return [pvm_const.XAG.VIO_SMAP]"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"    def _extend_volume(self, udid):"},{"line_number":316,"context_line":"        \"\"\"Rescan virtual disk so client VM can see extended size\"\"\""},{"line_number":317,"context_line":"        resized \u003d False"},{"line_number":318,"context_line":"        error \u003d False"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_2b96ae4d","line":315,"updated":"2018-01-31 22:24:31.000000000","message":"Let\u0027s give this a better name corresponding to what it does (_rescan_volume?) rather than in what situation it is currently used, and then pull it out of the class as a utility method. It is only used by a subset of the drivers inheriting from this class, and there is no need for a different implementation of this method for different drivers, so it doesn\u0027t really need to be an instance or even a class method. The few things it pulls from self could be passed in as args instead.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":312,"context_line":"        # SCSI mapping is for the connections between VIOS and client VM"},{"line_number":313,"context_line":"        return [pvm_const.XAG.VIO_SMAP]"},{"line_number":314,"context_line":""},{"line_number":315,"context_line":"    def _extend_volume(self, udid):"},{"line_number":316,"context_line":"        \"\"\"Rescan virtual disk so client VM can see extended size\"\"\""},{"line_number":317,"context_line":"        resized \u003d False"},{"line_number":318,"context_line":"        error \u003d False"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_cd0703ca","line":315,"in_reply_to":"5f93b717_2b96ae4d","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        return [x.backing_storage for x in mappings]"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    def _get_add_func(self, slot_mgr, device, target_name\u003dNone,"},{"line_number":378,"context_line":"                      lpar_slot_num\u003dNone, lu_address\u003dNone):"},{"line_number":379,"context_line":"        \"\"\"Create a function to append the mapping to the VIOS."},{"line_number":380,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_edbf76a7","line":377,"range":{"start_line":377,"start_character":46,"end_line":377,"end_character":57},"updated":"2018-01-31 22:24:31.000000000","message":"nit: looks like this is the kwarg that is passed the least often, so maybe make it last.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":374,"context_line":""},{"line_number":375,"context_line":"        return [x.backing_storage for x in mappings]"},{"line_number":376,"context_line":""},{"line_number":377,"context_line":"    def _get_add_func(self, slot_mgr, device, target_name\u003dNone,"},{"line_number":378,"context_line":"                      lpar_slot_num\u003dNone, lu_address\u003dNone):"},{"line_number":379,"context_line":"        \"\"\"Create a function to append the mapping to the VIOS."},{"line_number":380,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_85580a88","line":377,"range":{"start_line":377,"start_character":46,"end_line":377,"end_character":57},"in_reply_to":"5f93b717_edbf76a7","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                      lpar_slot_num\u003dNone, lu_address\u003dNone):"},{"line_number":379,"context_line":"        \"\"\"Create a function to append the mapping to the VIOS."},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"        A function is generated to be used in the a feedtask later."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":384,"context_line":"                         slots used when a volume is attached to the VM"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_722a672c","line":381,"range":{"start_line":381,"start_character":46,"end_line":381,"end_character":51},"updated":"2018-01-31 22:24:31.000000000","message":"a*","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":378,"context_line":"                      lpar_slot_num\u003dNone, lu_address\u003dNone):"},{"line_number":379,"context_line":"        \"\"\"Create a function to append the mapping to the VIOS."},{"line_number":380,"context_line":""},{"line_number":381,"context_line":"        A function is generated to be used in the a feedtask later."},{"line_number":382,"context_line":""},{"line_number":383,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":384,"context_line":"                         slots used when a volume is attached to the VM"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_c55a9281","line":381,"range":{"start_line":381,"start_character":46,"end_line":381,"end_character":51},"in_reply_to":"5f93b717_722a672c","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":390,"context_line":"                              number."},{"line_number":391,"context_line":"        :param lu_address: (Optional.  Default: None) Logical Unit Address to"},{"line_number":392,"context_line":"                           set on the TargetDevice.  If None, the LUA will be"},{"line_number":393,"context_line":"                           assigned by the server.  Should be specified for all"},{"line_number":394,"context_line":"                           of the VSCSIMappings for a particular bus, or none"},{"line_number":395,"context_line":"                           of them."},{"line_number":396,"context_line":"        :return: A function to append the mapping to the VIOS."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_72026771","line":393,"range":{"start_line":393,"start_character":76,"end_line":393,"end_character":79},"updated":"2018-01-31 22:24:31.000000000","message":"if we said \"all or none\" here we could remove \", or none of them\" at the end and reduce this a line.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":390,"context_line":"                              number."},{"line_number":391,"context_line":"        :param lu_address: (Optional.  Default: None) Logical Unit Address to"},{"line_number":392,"context_line":"                           set on the TargetDevice.  If None, the LUA will be"},{"line_number":393,"context_line":"                           assigned by the server.  Should be specified for all"},{"line_number":394,"context_line":"                           of the VSCSIMappings for a particular bus, or none"},{"line_number":395,"context_line":"                           of them."},{"line_number":396,"context_line":"        :return: A function to append the mapping to the VIOS."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_2568161b","line":393,"range":{"start_line":393,"start_character":76,"end_line":393,"end_character":79},"in_reply_to":"5f93b717_72026771","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":405,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":406,"context_line":"                return None"},{"line_number":407,"context_line":"            slot, lua \u003d lpar_slot_num, lu_address"},{"line_number":408,"context_line":"            if not slot and not lua:"},{"line_number":409,"context_line":"                slot, lua \u003d slot_mgr.build_map.get_vscsi_slot(vios_w, udid)"},{"line_number":410,"context_line":"            if slot_mgr.is_rebuild and not slot:"},{"line_number":411,"context_line":"                LOG.debug(\u0027Detected a device with path %(path)s on VIOS \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_8d2fd23d","line":408,"updated":"2018-01-31 22:24:31.000000000","message":"what if one was passed in but not the other? Will REST handle that case, or do we need to do something here?","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":405,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":406,"context_line":"                return None"},{"line_number":407,"context_line":"            slot, lua \u003d lpar_slot_num, lu_address"},{"line_number":408,"context_line":"            if not slot and not lua:"},{"line_number":409,"context_line":"                slot, lua \u003d slot_mgr.build_map.get_vscsi_slot(vios_w, udid)"},{"line_number":410,"context_line":"            if slot_mgr.is_rebuild and not slot:"},{"line_number":411,"context_line":"                LOG.debug(\u0027Detected a device with path %(path)s on VIOS \u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_856faa29","line":408,"in_reply_to":"5f93b717_8d2fd23d","updated":"2018-02-05 21:06:19.000000000","message":"The only thing that calls into here, with slot and/or lua already defined is pvvscsi.py. The following line is the same one that gets run in pvvscsi. This is intended to avoid running the same function twice. It is run separately in pvvscsi as an early failure check for `is_rebuild and not slot`.  (this all stems down to pvvscsi having a more complex connect_volume)","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":428,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":429,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":430,"context_line":"        :param udid: The udid of the attached volume."},{"line_number":431,"context_line":"        :return: A function to update the slot information"},{"line_number":432,"context_line":"        \"\"\""},{"line_number":433,"context_line":"        def set_slot_info():"},{"line_number":434,"context_line":"            vios_wraps \u003d self.stg_ftsk.feed"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_b20b0fd4","line":431,"updated":"2018-01-31 22:24:31.000000000","message":"wrong, it doesn\u0027t return anything.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":428,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":429,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":430,"context_line":"        :param udid: The udid of the attached volume."},{"line_number":431,"context_line":"        :return: A function to update the slot information"},{"line_number":432,"context_line":"        \"\"\""},{"line_number":433,"context_line":"        def set_slot_info():"},{"line_number":434,"context_line":"            vios_wraps \u003d self.stg_ftsk.feed"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_e59a2e60","line":431,"in_reply_to":"5f93b717_b20b0fd4","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":445,"context_line":"    def _get_rm_func(self, slot_mgr, match_func):"},{"line_number":446,"context_line":"        \"\"\"Create a function to remove the mapping from the VIOS."},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"        A function is generated to be used in the a feedtask later."},{"line_number":449,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":450,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":451,"context_line":"        :param device: The device to be added to the storage mappings."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_922ff33d","line":448,"range":{"start_line":448,"start_character":46,"end_line":448,"end_character":51},"updated":"2018-01-31 22:24:31.000000000","message":"a*","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":445,"context_line":"    def _get_rm_func(self, slot_mgr, match_func):"},{"line_number":446,"context_line":"        \"\"\"Create a function to remove the mapping from the VIOS."},{"line_number":447,"context_line":""},{"line_number":448,"context_line":"        A function is generated to be used in the a feedtask later."},{"line_number":449,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":450,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":451,"context_line":"        :param device: The device to be added to the storage mappings."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_c597f239","line":448,"range":{"start_line":448,"start_character":46,"end_line":448,"end_character":51},"in_reply_to":"5f93b717_922ff33d","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":448,"context_line":"        A function is generated to be used in the a feedtask later."},{"line_number":449,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":450,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":451,"context_line":"        :param device: The device to be added to the storage mappings."},{"line_number":452,"context_line":"        :param target_name: Target name of the scsi mapping."},{"line_number":453,"context_line":"        :param lpar_slot_num: (Optional, Default:None) If specified, the client"},{"line_number":454,"context_line":"                              lpar slot number to use on the mapping.  If left"},{"line_number":455,"context_line":"                              as None, it will use the next available slot"},{"line_number":456,"context_line":"                              number."},{"line_number":457,"context_line":"        :param lu_address: (Optional.  Default: None) Logical Unit Address to"},{"line_number":458,"context_line":"                           set on the TargetDevice.  If None, the LUA will be"},{"line_number":459,"context_line":"                           assigned by the server.  Should be specified for all"},{"line_number":460,"context_line":"                           of the VSCSIMappings for a particular bus, or none"},{"line_number":461,"context_line":"                           of them."},{"line_number":462,"context_line":"        :return: A function to remove the mapping from the VIOS."},{"line_number":463,"context_line":"        \"\"\""},{"line_number":464,"context_line":"        def rm_func(vios_w):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_f2bf57a7","line":461,"range":{"start_line":451,"start_character":0,"end_line":461,"end_character":35},"updated":"2018-01-31 22:24:31.000000000","message":"wrong, these are not arguments for this method, but match_func is.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":448,"context_line":"        A function is generated to be used in the a feedtask later."},{"line_number":449,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":450,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":451,"context_line":"        :param device: The device to be added to the storage mappings."},{"line_number":452,"context_line":"        :param target_name: Target name of the scsi mapping."},{"line_number":453,"context_line":"        :param lpar_slot_num: (Optional, Default:None) If specified, the client"},{"line_number":454,"context_line":"                              lpar slot number to use on the mapping.  If left"},{"line_number":455,"context_line":"                              as None, it will use the next available slot"},{"line_number":456,"context_line":"                              number."},{"line_number":457,"context_line":"        :param lu_address: (Optional.  Default: None) Logical Unit Address to"},{"line_number":458,"context_line":"                           set on the TargetDevice.  If None, the LUA will be"},{"line_number":459,"context_line":"                           assigned by the server.  Should be specified for all"},{"line_number":460,"context_line":"                           of the VSCSIMappings for a particular bus, or none"},{"line_number":461,"context_line":"                           of them."},{"line_number":462,"context_line":"        :return: A function to remove the mapping from the VIOS."},{"line_number":463,"context_line":"        \"\"\""},{"line_number":464,"context_line":"        def rm_func(vios_w):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_0592ba4c","line":461,"range":{"start_line":451,"start_character":0,"end_line":461,"end_character":35},"in_reply_to":"5f93b717_f2bf57a7","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":466,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":467,"context_line":"                return None"},{"line_number":468,"context_line":""},{"line_number":469,"context_line":"            LOG.info(\"Disconnecting storage disks.\", instance\u003dself.instance)"},{"line_number":470,"context_line":"            removed_maps \u003d tsk_map.remove_maps(vios_w, self.vm_uuid,"},{"line_number":471,"context_line":"                                               match_func\u003dmatch_func)"},{"line_number":472,"context_line":"            for rm_map in removed_maps:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_8dbfd25f","line":469,"range":{"start_line":469,"start_character":22,"end_line":469,"end_character":49},"updated":"2018-01-31 22:24:31.000000000","message":"this is disconnecting a single disk.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":466,"context_line":"            if vios_w.uuid not in self.vios_uuids:"},{"line_number":467,"context_line":"                return None"},{"line_number":468,"context_line":""},{"line_number":469,"context_line":"            LOG.info(\"Disconnecting storage disks.\", instance\u003dself.instance)"},{"line_number":470,"context_line":"            removed_maps \u003d tsk_map.remove_maps(vios_w, self.vm_uuid,"},{"line_number":471,"context_line":"                                               match_func\u003dmatch_func)"},{"line_number":472,"context_line":"            for rm_map in removed_maps:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_65c37e58","line":469,"range":{"start_line":469,"start_character":22,"end_line":469,"end_character":49},"in_reply_to":"5f93b717_8dbfd25f","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":32,"context_line":""},{"line_number":33,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":34,"context_line":"class PowerVMVolumeAdapter(object):"},{"line_number":35,"context_line":"    \"\"\"The volume adapter connects a Cinder volume to a VM."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    The role of the volume driver is to perform the connection between the"},{"line_number":38,"context_line":"    compute node and the backing physical fabric."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_5299a4c1","line":35,"updated":"2018-02-08 21:34:46.000000000","message":"The libvirt driver\u0027s equivalent just says \"Base class for volume drivers\". I like that as a better first sentence here.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":34,"context_line":"class PowerVMVolumeAdapter(object):"},{"line_number":35,"context_line":"    \"\"\"The volume adapter connects a Cinder volume to a VM."},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    The role of the volume driver is to perform the connection between the"},{"line_number":38,"context_line":"    compute node and the backing physical fabric."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    This volume adapter is a generic adapter for all volume types to extend."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_d2ea940d","line":37,"range":{"start_line":37,"start_character":27,"end_line":37,"end_character":33},"updated":"2018-02-08 21:34:46.000000000","message":"sometimes we say driver (here, the filename, etc.), sometimes we say adapter (class names, next paragraph, etc.). Let\u0027s standardize on one or the other. Probably driver since that is the term used in the nova libvirt code, and to avoid confusion with the pypowervm adapter we pass around all through this code.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":37,"context_line":"    The role of the volume driver is to perform the connection between the"},{"line_number":38,"context_line":"    compute node and the backing physical fabric."},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"    This volume adapter is a generic adapter for all volume types to extend."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    This is built similarly to the LibvirtBaseVolumeDriver."},{"line_number":43,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_52de846d","line":40,"updated":"2018-02-08 21:34:46.000000000","message":"redundant when we change the first sentence per comment above.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5864180200702e2202cd6bf7a7addbf0f6812d15","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        \"\"\"The type of volume supported by this driver.\"\"\""},{"line_number":124,"context_line":"        raise NotImplementedError()"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":127,"context_line":"        \"\"\"Returns whether or not the volume is on VIOS."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"        This method is used in the NovaSlotManager to build slot map."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_d03619e8","line":126,"updated":"2018-03-21 22:50:21.000000000","message":"this is specific to vscsi, so move to vcsci.VscsiVolumeAdapter","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":123,"context_line":"        \"\"\"The type of volume supported by this driver.\"\"\""},{"line_number":124,"context_line":"        raise NotImplementedError()"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"    def is_volume_on_vios(self, vios_w):"},{"line_number":127,"context_line":"        \"\"\"Returns whether or not the volume is on VIOS."},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"        This method is used in the NovaSlotManager to build slot map."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_d884e960","line":126,"in_reply_to":"df7087c5_d03619e8","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5864180200702e2202cd6bf7a7addbf0f6812d15","unresolved":false,"context_lines":[{"line_number":231,"context_line":"            self.stg_ftsk.execute()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    def extend_volume(self):"},{"line_number":234,"context_line":"        raise NotImplementedError()"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def disconnect_volume(self, slot_mgr):"},{"line_number":237,"context_line":"        \"\"\"Disconnect the volume."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_abd533b9","line":234,"updated":"2018-03-21 22:50:21.000000000","message":"coupled with https://github.com/openstack/nova/blob/acab8b0067b9ac90ed8c27daf04cfb4f926aa41a/nova/compute/manager.py#L7612-L7617, this is going to cause a cryptic log error at best (since it prints as an empty string) and possibly worse (not sure how that being reraised is going to be handled) if someone ever extends a volume and we haven\u0027t implemented this method for that type of volume.\n\nWe probably need to either use nova.exceptions.ExtendVolumeNotSupported (better than what we have, but conflates this with the case where a hypervisor doesn\u0027t support volume extension at all) or create a new exception for this (\"The hypervisor does not support size extension for this volume\"). Or perhaps something in the middle where we use the existing nova exception class but override the message. I\u0027d probably do that for now.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":231,"context_line":"            self.stg_ftsk.execute()"},{"line_number":232,"context_line":""},{"line_number":233,"context_line":"    def extend_volume(self):"},{"line_number":234,"context_line":"        raise NotImplementedError()"},{"line_number":235,"context_line":""},{"line_number":236,"context_line":"    def disconnect_volume(self, slot_mgr):"},{"line_number":237,"context_line":"        \"\"\"Disconnect the volume."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_172ea791","line":234,"in_reply_to":"df7087c5_abd533b9","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/virt/powervm/volume/fcpvvscsi.py":[{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    @classmethod"},{"line_number":83,"context_line":"    def vol_type(cls):"},{"line_number":84,"context_line":"        \"\"\"The type of volume supported by this type.\"\"\""},{"line_number":85,"context_line":"        return \u0027vscsi\u0027"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def pre_live_migration_on_destination(self, mig_data):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_07b3fceb","line":84,"range":{"start_line":84,"start_character":48,"end_line":84,"end_character":52},"updated":"2018-02-08 17:52:08.000000000","message":"adapter","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    @classmethod"},{"line_number":83,"context_line":"    def vol_type(cls):"},{"line_number":84,"context_line":"        \"\"\"The type of volume supported by this type.\"\"\""},{"line_number":85,"context_line":"        return \u0027vscsi\u0027"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def pre_live_migration_on_destination(self, mig_data):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_737a86f1","line":84,"range":{"start_line":84,"start_character":48,"end_line":84,"end_character":52},"in_reply_to":"3fa0c359_07b3fceb","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4e79bc59f75259c1908b341bb208657cd79e3d69","unresolved":false,"context_lines":[{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    @classmethod"},{"line_number":83,"context_line":"    def vol_type(cls):"},{"line_number":84,"context_line":"        \"\"\"The type of volume supported by this type.\"\"\""},{"line_number":85,"context_line":"        return \u0027vscsi\u0027"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def pre_live_migration_on_destination(self, mig_data):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_96e380d9","line":84,"range":{"start_line":84,"start_character":48,"end_line":84,"end_character":52},"in_reply_to":"3fa0c359_07b3fceb","updated":"2018-02-09 21:08:16.000000000","message":"or driver","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        volume_id \u003d self.volume_id"},{"line_number":106,"context_line":"        found \u003d False"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # See the connect_volume for why this is a direct call instead of"},{"line_number":109,"context_line":"        # using the tx_mgr.feed"},{"line_number":110,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":111,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_a7d6c8f0","line":108,"range":{"start_line":108,"start_character":14,"end_line":108,"end_character":32},"updated":"2018-02-08 17:52:08.000000000","message":"connect_volume or the connect_volume method","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        volume_id \u003d self.volume_id"},{"line_number":106,"context_line":"        found \u003d False"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # See the connect_volume for why this is a direct call instead of"},{"line_number":109,"context_line":"        # using the tx_mgr.feed"},{"line_number":110,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":111,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_339cfe0c","line":108,"range":{"start_line":108,"start_character":14,"end_line":108,"end_character":32},"in_reply_to":"3fa0c359_a7d6c8f0","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        :param vios_w: VIOS wrapper to process"},{"line_number":159,"context_line":"        :param volume_id: Volume to discover"},{"line_number":160,"context_line":"        :returns: Status of the volume or None"},{"line_number":161,"context_line":"        :returns: Device name or None"},{"line_number":162,"context_line":"        :returns: LUN or None"},{"line_number":163,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_4c2b99ea","line":160,"range":{"start_line":160,"start_character":18,"end_line":160,"end_character":46},"updated":"2018-02-08 17:52:08.000000000","message":"True if good discovery, false if not","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":157,"context_line":""},{"line_number":158,"context_line":"        :param vios_w: VIOS wrapper to process"},{"line_number":159,"context_line":"        :param volume_id: Volume to discover"},{"line_number":160,"context_line":"        :returns: Status of the volume or None"},{"line_number":161,"context_line":"        :returns: Device name or None"},{"line_number":162,"context_line":"        :returns: LUN or None"},{"line_number":163,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_93c4f2f6","line":160,"range":{"start_line":160,"start_character":18,"end_line":160,"end_character":46},"in_reply_to":"3fa0c359_4c2b99ea","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            LOG.debug(\u0027No ITLs for VIOS %(vios)s for volume %(volume_id)s.\u0027,"},{"line_number":172,"context_line":"                      {\u0027vios\u0027: vios_w.name, \u0027volume_id\u0027: volume_id},"},{"line_number":173,"context_line":"                      instance\u003dself.instance)"},{"line_number":174,"context_line":"            return None, None, None"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"        status, device_name, udid \u003d hdisk.discover_hdisk(self.adapter,"},{"line_number":177,"context_line":"                                                         vios_w.uuid, itls)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_cc3ec928","line":174,"range":{"start_line":174,"start_character":19,"end_line":174,"end_character":23},"updated":"2018-02-08 17:52:08.000000000","message":"False","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":171,"context_line":"            LOG.debug(\u0027No ITLs for VIOS %(vios)s for volume %(volume_id)s.\u0027,"},{"line_number":172,"context_line":"                      {\u0027vios\u0027: vios_w.name, \u0027volume_id\u0027: volume_id},"},{"line_number":173,"context_line":"                      instance\u003dself.instance)"},{"line_number":174,"context_line":"            return None, None, None"},{"line_number":175,"context_line":""},{"line_number":176,"context_line":"        status, device_name, udid \u003d hdisk.discover_hdisk(self.adapter,"},{"line_number":177,"context_line":"                                                         vios_w.uuid, itls)"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_33b5de7e","line":174,"range":{"start_line":174,"start_character":19,"end_line":174,"end_character":23},"in_reply_to":"3fa0c359_cc3ec928","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5864180200702e2202cd6bf7a7addbf0f6812d15","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from nova_powervm.virt.powervm.volume import pvvscsi"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from pypowervm import const as pvm_const"},{"line_number":25,"context_line":"from pypowervm.tasks import hdisk"},{"line_number":26,"context_line":"from pypowervm.tasks import partition as pvm_tpar"},{"line_number":27,"context_line":"from pypowervm.wrappers import virtual_io_server as pvm_vios"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_6ae70c14","line":25,"updated":"2018-03-21 22:50:21.000000000","message":"nit: as pvm_hdisk (for consistency)","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from nova_powervm.virt.powervm.volume import pvvscsi"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"from pypowervm import const as pvm_const"},{"line_number":25,"context_line":"from pypowervm.tasks import hdisk"},{"line_number":26,"context_line":"from pypowervm.tasks import partition as pvm_tpar"},{"line_number":27,"context_line":"from pypowervm.wrappers import virtual_io_server as pvm_vios"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_98d99157","line":25,"in_reply_to":"df7087c5_6ae70c14","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    # Use a global variable so this is pulled once when the process starts."},{"line_number":46,"context_line":"    global _vscsi_pfc_wwpns"},{"line_number":47,"context_line":"    if _vscsi_pfc_wwpns is None:"},{"line_number":48,"context_line":"        _vscsi_pfc_wwpns \u003d pvm_tpar.get_physical_wwpns(adapter)"},{"line_number":49,"context_line":"    return _vscsi_pfc_wwpns"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_9626bdba","line":48,"updated":"2018-03-18 00:20:12.000000000","message":"So this never changes??\n\nIf that\u0027s the case, let\u0027s do this caching in pypowervm instead.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    # Use a global variable so this is pulled once when the process starts."},{"line_number":46,"context_line":"    global _vscsi_pfc_wwpns"},{"line_number":47,"context_line":"    if _vscsi_pfc_wwpns is None:"},{"line_number":48,"context_line":"        _vscsi_pfc_wwpns \u003d pvm_tpar.get_physical_wwpns(adapter)"},{"line_number":49,"context_line":"    return _vscsi_pfc_wwpns"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_78cd9d83","line":48,"in_reply_to":"df7087c5_3503f044","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"852df9be09e1267609ca5cbca15330d124044328","unresolved":false,"context_lines":[{"line_number":45,"context_line":"    # Use a global variable so this is pulled once when the process starts."},{"line_number":46,"context_line":"    global _vscsi_pfc_wwpns"},{"line_number":47,"context_line":"    if _vscsi_pfc_wwpns is None:"},{"line_number":48,"context_line":"        _vscsi_pfc_wwpns \u003d pvm_tpar.get_physical_wwpns(adapter)"},{"line_number":49,"context_line":"    return _vscsi_pfc_wwpns"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_3503f044","line":48,"in_reply_to":"df7087c5_9626bdba","updated":"2018-03-20 15:42:56.000000000","message":"In 1.1.12, you can push the caching down to pypowervm by adding kwarg force_refresh\u003dFalse","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"8e0f3c3a5062270e31db9a52edf5078227faa58d","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    return _vscsi_pfc_wwpns"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"class FCPVVscsiVolumeAdapter(pvvscsi.PVVscsiVolumeAdapter):"},{"line_number":53,"context_line":"    \"\"\"The vSCSI implementation of the Volume Adapter."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    For physical volumes, hosted to the VIOS through Fibre Channel, that"}],"source_content_type":"text/x-python","patch_set":6,"id":"3fa0c359_7cc8e753","line":52,"updated":"2018-03-07 18:56:22.000000000","message":"Let\u0027s call this FCVscsiVolumeAdapter. We would never have a FC subclass for VdiskVscsiVolumeAdapter that we\u0027d need to distinguish this from, right? So it would be like how we say FileIOVolumeAdapter instead of FileIOVdiskVscsiVolumeAdapter.\n\nfilename could shorten to a more readable fcvscsi.py as well.\n\nThat seems more readable. :)","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":49,"context_line":"    return _vscsi_pfc_wwpns"},{"line_number":50,"context_line":""},{"line_number":51,"context_line":""},{"line_number":52,"context_line":"class FCPVVscsiVolumeAdapter(pvvscsi.PVVscsiVolumeAdapter):"},{"line_number":53,"context_line":"    \"\"\"The vSCSI implementation of the Volume Adapter."},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    For physical volumes, hosted to the VIOS through Fibre Channel, that"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_8443b013","line":52,"in_reply_to":"3fa0c359_7cc8e753","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":80,"context_line":"        self._pfc_wwpns \u003d None"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    @classmethod"},{"line_number":83,"context_line":"    def vol_type(cls):"},{"line_number":84,"context_line":"        \"\"\"The type of volume supported by this adapter.\"\"\""},{"line_number":85,"context_line":"        return \u0027vscsi\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_163aadcc","line":82,"range":{"start_line":82,"start_character":4,"end_line":82,"end_character":16},"updated":"2018-03-18 00:20:12.000000000","message":"@staticmethod","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":79,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":80,"context_line":"        self._pfc_wwpns \u003d None"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    @classmethod"},{"line_number":83,"context_line":"    def vol_type(cls):"},{"line_number":84,"context_line":"        \"\"\"The type of volume supported by this adapter.\"\"\""},{"line_number":85,"context_line":"        return \u0027vscsi\u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_787b5d27","line":82,"range":{"start_line":82,"start_character":4,"end_line":82,"end_character":16},"in_reply_to":"df7087c5_163aadcc","updated":"2018-03-27 17:21:17.000000000","message":"vol_type removed","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    def pre_live_migration_on_destination(self, mig_data):"},{"line_number":88,"context_line":"        \"\"\"Perform pre live migration steps for the volume on the target host."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        This method performs any pre live migration that is needed."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        Certain volume connectors may need to pass data from the source host"},{"line_number":93,"context_line":"        to the target.  This may be required to determine how volumes connect"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_3637b1e6","line":90,"range":{"start_line":90,"start_character":8,"end_line":90,"end_character":67},"updated":"2018-03-18 00:20:12.000000000","message":"redundant","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":87,"context_line":"    def pre_live_migration_on_destination(self, mig_data):"},{"line_number":88,"context_line":"        \"\"\"Perform pre live migration steps for the volume on the target host."},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"        This method performs any pre live migration that is needed."},{"line_number":91,"context_line":""},{"line_number":92,"context_line":"        Certain volume connectors may need to pass data from the source host"},{"line_number":93,"context_line":"        to the target.  This may be required to determine how volumes connect"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_38716545","line":90,"range":{"start_line":90,"start_character":8,"end_line":90,"end_character":67},"in_reply_to":"df7087c5_3637b1e6","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        found \u003d False"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # See pvvscsi.connect_volume for why this is a direct call instead of"},{"line_number":109,"context_line":"        # using the tx_mgr.feed"},{"line_number":110,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":111,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_f63059eb","line":109,"range":{"start_line":109,"start_character":20,"end_line":109,"end_character":26},"updated":"2018-03-18 00:20:12.000000000","message":"stg_ftsk","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        found \u003d False"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"        # See pvvscsi.connect_volume for why this is a direct call instead of"},{"line_number":109,"context_line":"        # using the tx_mgr.feed"},{"line_number":110,"context_line":"        vios_wraps \u003d pvm_vios.VIOS.get(self.adapter,"},{"line_number":111,"context_line":"                                       xag\u003d[pvm_const.XAG.VIO_STOR])"},{"line_number":112,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_b89a555f","line":109,"range":{"start_line":109,"start_character":20,"end_line":109,"end_character":26},"in_reply_to":"df7087c5_f63059eb","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        for vios_w in vios_wraps:"},{"line_number":115,"context_line":"            good_discovery, device_name, udid \u003d self._discover_volume_on_vios("},{"line_number":116,"context_line":"                vios_w, volume_id)"},{"line_number":117,"context_line":"            # If we found one, no need to check the others."},{"line_number":118,"context_line":"            found \u003d found or good_discovery"},{"line_number":119,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":120,"context_line":"            volume_key \u003d \u0027vscsi-\u0027 + volume_id"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_b650a10c","line":117,"range":{"start_line":117,"start_character":31,"end_line":117,"end_character":59},"updated":"2018-03-18 00:20:12.000000000","message":"Implying we should break?  Maybe this comment is bogus.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b0aeb90bf4a4dd8780adf099ac4091e51f8087ef","unresolved":false,"context_lines":[{"line_number":114,"context_line":"        for vios_w in vios_wraps:"},{"line_number":115,"context_line":"            good_discovery, device_name, udid \u003d self._discover_volume_on_vios("},{"line_number":116,"context_line":"                vios_w, volume_id)"},{"line_number":117,"context_line":"            # If we found one, no need to check the others."},{"line_number":118,"context_line":"            found \u003d found or good_discovery"},{"line_number":119,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":120,"context_line":"            volume_key \u003d \u0027vscsi-\u0027 + volume_id"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_be483887","line":117,"range":{"start_line":117,"start_character":31,"end_line":117,"end_character":59},"in_reply_to":"df7087c5_b650a10c","updated":"2018-03-20 20:41:35.000000000","message":"not sure.\n\nThe Power advantage is the vios redundancy so discoverying it on all VIOSs makes sense.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b0aeb90bf4a4dd8780adf099ac4091e51f8087ef","unresolved":false,"context_lines":[{"line_number":117,"context_line":"            # If we found one, no need to check the others."},{"line_number":118,"context_line":"            found \u003d found or good_discovery"},{"line_number":119,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":120,"context_line":"            volume_key \u003d \u0027vscsi-\u0027 + volume_id"},{"line_number":121,"context_line":"            if udid is not None:"},{"line_number":122,"context_line":"                mig_data[volume_key] \u003d udid"},{"line_number":123,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_1e2e04a5","line":120,"updated":"2018-03-20 20:41:35.000000000","message":"My first impression of this method and what we need for iscsi is the \"vscsi-\u0027 changes to \u0027iscsi-\u0027","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            good_discovery, device_name, udid \u003d self._discover_volume_on_vios("},{"line_number":116,"context_line":"                vios_w, volume_id)"},{"line_number":117,"context_line":"            # If we found one, no need to check the others."},{"line_number":118,"context_line":"            found \u003d found or good_discovery"},{"line_number":119,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":120,"context_line":"            volume_key \u003d \u0027vscsi-\u0027 + volume_id"},{"line_number":121,"context_line":"            if udid is not None:"},{"line_number":122,"context_line":"                mig_data[volume_key] \u003d udid"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"        if not found or volume_key not in mig_data:"},{"line_number":125,"context_line":"            ex_args \u003d dict(volume_id\u003dvolume_id,"},{"line_number":126,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":127,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def post_live_migration_at_source(self, migrate_data):"},{"line_number":130,"context_line":"        \"\"\"Performs post live migration for the volume on the source host."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_765a092b","line":127,"range":{"start_line":118,"start_character":0,"end_line":127,"end_character":59},"updated":"2018-03-18 00:20:12.000000000","message":"This algorithm seems crazy to me.  Even if it\u0027s possible for the volume to exist on multiple VIOSes, this would only be putting the last one into mig_data.  And we declare \u0027found\u0027 even if there\u0027s no udid and we didn\u0027t register in mig_data; but then we raise an exception anyway.\n\nShould it perhaps be:\n\n for vios_w in vios_wraps:\n     ... _discover_volume_on_vios(...)\n     if udid is not None:\n         mig_data[\u0027vscsi-\u0027 + volume_id] \u003d udid\n         break\n else:\n     raise ...","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"b0aeb90bf4a4dd8780adf099ac4091e51f8087ef","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            good_discovery, device_name, udid \u003d self._discover_volume_on_vios("},{"line_number":116,"context_line":"                vios_w, volume_id)"},{"line_number":117,"context_line":"            # If we found one, no need to check the others."},{"line_number":118,"context_line":"            found \u003d found or good_discovery"},{"line_number":119,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":120,"context_line":"            volume_key \u003d \u0027vscsi-\u0027 + volume_id"},{"line_number":121,"context_line":"            if udid is not None:"},{"line_number":122,"context_line":"                mig_data[volume_key] \u003d udid"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"        if not found or volume_key not in mig_data:"},{"line_number":125,"context_line":"            ex_args \u003d dict(volume_id\u003dvolume_id,"},{"line_number":126,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":127,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def post_live_migration_at_source(self, migrate_data):"},{"line_number":130,"context_line":"        \"\"\"Performs post live migration for the volume on the source host."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_de62cc16","line":127,"range":{"start_line":118,"start_character":0,"end_line":127,"end_character":59},"in_reply_to":"df7087c5_765a092b","updated":"2018-03-20 20:41:35.000000000","message":"The UDID should be the same on all the VIOSs of the same type. A traditional VIOS the UDID should be the unquie_id from odm for the device. For Linux VIOS I\u0027m not sure it could be the volume WWN. I\u0027m not sure why anyone would mix the two ... would have to think about it. But I\u0027m pretty sure there is no way for the VM to match a vscsi disk from traditional vios to a disk from a linux vios.  \n\nIf we \"break\" here we only discover the volume on the first VIOS losing the power redundancy advantage.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":115,"context_line":"            good_discovery, device_name, udid \u003d self._discover_volume_on_vios("},{"line_number":116,"context_line":"                vios_w, volume_id)"},{"line_number":117,"context_line":"            # If we found one, no need to check the others."},{"line_number":118,"context_line":"            found \u003d found or good_discovery"},{"line_number":119,"context_line":"            # if valid udid is returned save in mig_data"},{"line_number":120,"context_line":"            volume_key \u003d \u0027vscsi-\u0027 + volume_id"},{"line_number":121,"context_line":"            if udid is not None:"},{"line_number":122,"context_line":"                mig_data[volume_key] \u003d udid"},{"line_number":123,"context_line":""},{"line_number":124,"context_line":"        if not found or volume_key not in mig_data:"},{"line_number":125,"context_line":"            ex_args \u003d dict(volume_id\u003dvolume_id,"},{"line_number":126,"context_line":"                           instance_name\u003dself.instance.name)"},{"line_number":127,"context_line":"            raise p_exc.VolumePreMigrationFailed(**ex_args)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"    def post_live_migration_at_source(self, migrate_data):"},{"line_number":130,"context_line":"        \"\"\"Performs post live migration for the volume on the source host."}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_fc7998fb","line":127,"range":{"start_line":118,"start_character":0,"end_line":127,"end_character":59},"in_reply_to":"df7087c5_de62cc16","updated":"2018-03-27 17:21:17.000000000","message":"We can\u0027t \"break\" because we need to go through the _discover_volume_on_vios process for each VIOS to see the hdisk.\nRemoved the comment (\"If we found one,  no need to check the others\") as it is no longer applicable after the rework.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"05708ceace1b72b351dc833f127fa028d1d7d2e7","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":148,"context_line":"        the destination host after the migration has failed."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"        :param migrate_data: migration data"},{"line_number":151,"context_line":"        \"\"\""},{"line_number":152,"context_line":"        udid \u003d migrate_data.get(\u0027vscsi-\u0027 + self.volume_id)"},{"line_number":153,"context_line":"        self._cleanup_volume(udid)"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_d648b55d","line":150,"range":{"start_line":150,"start_character":15,"end_line":150,"end_character":43},"updated":"2018-03-18 00:20:12.000000000","message":"really?","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":147,"context_line":"        This method can be used to handle any steps that need to taken on"},{"line_number":148,"context_line":"        the destination host after the migration has failed."},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"        :param migrate_data: migration data"},{"line_number":151,"context_line":"        \"\"\""},{"line_number":152,"context_line":"        udid \u003d migrate_data.get(\u0027vscsi-\u0027 + self.volume_id)"},{"line_number":153,"context_line":"        self._cleanup_volume(udid)"}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_32198179","line":150,"range":{"start_line":150,"start_character":15,"end_line":150,"end_character":43},"in_reply_to":"df7087c5_d648b55d","updated":"2018-03-27 17:21:17.000000000","message":"Done","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/virt/powervm/volume/fileio.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ee04ff05416548ba6c886c763e300e283a12dbd9","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                volume_id\u003dself.volume_id, instance_name\u003dself.instance.name)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _connect_volume(self, slot_mgr):"},{"line_number":88,"context_line":"        path \u003d self._get_path()"},{"line_number":89,"context_line":"        # Get the File Path"},{"line_number":90,"context_line":"        fio \u003d pvm_stg.FileIO.bld("},{"line_number":91,"context_line":"            self.adapter, path,"},{"line_number":92,"context_line":"            backstore_type\u003dpvm_stg.BackStoreType.FILE_IO)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        self.stg_ftsk.add_functor_subtask(self._get_add_func(slot_mgr, fio))"},{"line_number":95,"context_line":"        self._set_slot_info(slot_mgr, path)"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_9cb3ac4d","line":92,"range":{"start_line":88,"start_character":0,"end_line":92,"end_character":57},"updated":"2018-01-16 19:41:04.000000000","message":"seems like it would be better to make 2 class-specific methods for getting these (which also has the benefit of being something that is done in a number of places, so would be commonly used), and then have a common implementation of _connect_volume in the parent class","commit_id":"45571c2bbd2f350f7bc03e29e63fec9de2aba829"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"71c7bc73863f705c07bb878db62d037c2c2cd201","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                volume_id\u003dself.volume_id, instance_name\u003dself.instance.name)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _connect_volume(self, slot_mgr):"},{"line_number":88,"context_line":"        path \u003d self._get_path()"},{"line_number":89,"context_line":"        # Get the File Path"},{"line_number":90,"context_line":"        fio \u003d pvm_stg.FileIO.bld("},{"line_number":91,"context_line":"            self.adapter, path,"},{"line_number":92,"context_line":"            backstore_type\u003dpvm_stg.BackStoreType.FILE_IO)"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"        self.stg_ftsk.add_functor_subtask(self._get_add_func(slot_mgr, fio))"},{"line_number":95,"context_line":"        self._set_slot_info(slot_mgr, path)"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_4ac12780","line":92,"range":{"start_line":88,"start_character":0,"end_line":92,"end_character":57},"in_reply_to":"7f96bb07_9cb3ac4d","updated":"2018-01-26 16:10:38.000000000","message":"Done","commit_id":"45571c2bbd2f350f7bc03e29e63fec9de2aba829"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                volume_id\u003dself.volume_id, instance_name\u003dself.instance.name)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _get_storage(self):"},{"line_number":88,"context_line":"        path \u003d self._get_path()"},{"line_number":89,"context_line":"        # Get the File Path"},{"line_number":90,"context_line":"        return pvm_stg.FileIO.bld("},{"line_number":91,"context_line":"            self.adapter, path, backstore_type\u003dpvm_stg.BackStoreType.FILE_IO)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_0d142243","line":88,"updated":"2018-01-31 22:24:31.000000000","message":"Let\u0027s copy in the docstring from the parent\u0027s method this is overriding to explain what this method does.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":85,"context_line":"                volume_id\u003dself.volume_id, instance_name\u003dself.instance.name)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _get_storage(self):"},{"line_number":88,"context_line":"        path \u003d self._get_path()"},{"line_number":89,"context_line":"        # Get the File Path"},{"line_number":90,"context_line":"        return pvm_stg.FileIO.bld("},{"line_number":91,"context_line":"            self.adapter, path, backstore_type\u003dpvm_stg.BackStoreType.FILE_IO)"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_c5b4d2f4","line":88,"in_reply_to":"5f93b717_0d142243","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _get_storage(self):"},{"line_number":88,"context_line":"        path \u003d self._get_path()"},{"line_number":89,"context_line":"        # Get the File Path"},{"line_number":90,"context_line":"        return pvm_stg.FileIO.bld("},{"line_number":91,"context_line":"            self.adapter, path, backstore_type\u003dpvm_stg.BackStoreType.FILE_IO)"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_320cdf3f","line":89,"updated":"2018-01-31 22:24:31.000000000","message":"seems like this comment is a) unnecessary and b) after we\u0027ve done what it says instead of before.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def _get_storage(self):"},{"line_number":88,"context_line":"        path \u003d self._get_path()"},{"line_number":89,"context_line":"        # Get the File Path"},{"line_number":90,"context_line":"        return pvm_stg.FileIO.bld("},{"line_number":91,"context_line":"            self.adapter, path, backstore_type\u003dpvm_stg.BackStoreType.FILE_IO)"},{"line_number":92,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_25c2565a","line":89,"in_reply_to":"5f93b717_320cdf3f","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        self._extend_volume(path)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _get_match_func(self):"},{"line_number":100,"context_line":"        # Build the match function"},{"line_number":101,"context_line":"        return tsk_map.gen_match_func(pvm_stg.VDisk, names\u003d[self._get_path()])"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def is_volume_on_vios(self, vios_w):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_4d1f8a5a","line":100,"updated":"2018-01-31 22:24:31.000000000","message":"Let\u0027s copy in the docstring from the parent\u0027s method this is overriding to explain what this method does, in place of this comment.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":97,"context_line":"        self._extend_volume(path)"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"    def _get_match_func(self):"},{"line_number":100,"context_line":"        # Build the match function"},{"line_number":101,"context_line":"        return tsk_map.gen_match_func(pvm_stg.VDisk, names\u003d[self._get_path()])"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def is_volume_on_vios(self, vios_w):"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_05bf1ad1","line":100,"in_reply_to":"5f93b717_4d1f8a5a","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"0ae20e64b8a6c405a988a62b4783db68bd3e8181","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        return \u0027fileio\u0027"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @abc.abstractmethod"},{"line_number":51,"context_line":"    def _get_path(self):"},{"line_number":52,"context_line":"        \"\"\"Return the path to the file to connect.\"\"\""},{"line_number":53,"context_line":"        pass"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_32656de2","line":51,"updated":"2018-02-14 22:41:50.000000000","message":"if you rename this _get_name, and implement it for rbd as well, you could use it in _get_match_func (and other places) and wouldn\u0027t need to have different implementations of that method.","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f70a5f7ced3e9c5e66cf084608a4a54dfdf279cf","unresolved":false,"context_lines":[{"line_number":48,"context_line":"        return \u0027fileio\u0027"},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"    @abc.abstractmethod"},{"line_number":51,"context_line":"    def _get_path(self):"},{"line_number":52,"context_line":"        \"\"\"Return the path to the file to connect.\"\"\""},{"line_number":53,"context_line":"        pass"},{"line_number":54,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_0f94b5e7","line":51,"in_reply_to":"3fa0c359_32656de2","updated":"2018-02-15 17:29:52.000000000","message":"Done","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"5864180200702e2202cd6bf7a7addbf0f6812d15","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    \"\"\"Base class for connecting file based Cinder Volumes to PowerVM VMs.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @classmethod"},{"line_number":39,"context_line":"    def vol_type(cls):"},{"line_number":40,"context_line":"        \"\"\"The type of volume supported by this type.\"\"\""},{"line_number":41,"context_line":"        return \u0027fileio\u0027"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_4aefa8af","line":39,"updated":"2018-03-21 22:50:21.000000000","message":"I think we can get rid of vol_type (see comment in slot.py) but if we keep it... instead of setting here and having the same value for all subclasses, set different values in the gpfs, local, and nfs subclasses.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f3fd8743df60f184d511dbb559971c8b793af1cb","unresolved":false,"context_lines":[{"line_number":36,"context_line":"    \"\"\"Base class for connecting file based Cinder Volumes to PowerVM VMs.\"\"\""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"    @classmethod"},{"line_number":39,"context_line":"    def vol_type(cls):"},{"line_number":40,"context_line":"        \"\"\"The type of volume supported by this type.\"\"\""},{"line_number":41,"context_line":"        return \u0027fileio\u0027"},{"line_number":42,"context_line":""}],"source_content_type":"text/x-python","patch_set":6,"id":"df7087c5_189b4173","line":39,"in_reply_to":"df7087c5_4aefa8af","updated":"2018-03-27 17:21:17.000000000","message":"Removed as this was not being used.","commit_id":"bc33eba755a42d2400ef567e7866d411d13a3d04"}],"nova_powervm/virt/powervm/volume/iscsi.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from nova_powervm.virt.powervm.volume import vscsi as vscsi"},{"line_number":23,"context_line":"from pypowervm import exceptions as pvm_exc"},{"line_number":24,"context_line":"from pypowervm.tasks import hdisk"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":"CONF \u003d cfg.CONF"},{"line_number":28,"context_line":"DEVNAME_KEY \u003d \u0027target_devname\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_524c4441","line":25,"updated":"2018-02-08 21:34:46.000000000","message":"leave the 2nd blank link here, so there are 2 blank lines after the last import as there were originally","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":22,"context_line":"from nova_powervm.virt.powervm.volume import vscsi as vscsi"},{"line_number":23,"context_line":"from pypowervm import exceptions as pvm_exc"},{"line_number":24,"context_line":"from pypowervm.tasks import hdisk"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":"CONF \u003d cfg.CONF"},{"line_number":28,"context_line":"DEVNAME_KEY \u003d \u0027target_devname\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_b3a80e20","line":25,"in_reply_to":"3fa0c359_524c4441","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":"CONF \u003d cfg.CONF"},{"line_number":28,"context_line":"DEVNAME_KEY \u003d \u0027target_devname\u0027"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class IscsiVolumeAdapter(pvvscsi.PVVscsiVolumeAdapter):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_67f54e57","line":28,"range":{"start_line":28,"start_character":0,"end_line":28,"end_character":30},"updated":"2018-02-08 17:52:08.000000000","message":"Not used","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":27,"context_line":"CONF \u003d cfg.CONF"},{"line_number":28,"context_line":"DEVNAME_KEY \u003d \u0027target_devname\u0027"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"class IscsiVolumeAdapter(pvvscsi.PVVscsiVolumeAdapter):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_d3a59a48","line":28,"range":{"start_line":28,"start_character":0,"end_line":28,"end_character":30},"in_reply_to":"3fa0c359_67f54e57","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"}],"nova_powervm/virt/powervm/volume/npiv.py":[{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        # Every loop through, we reverse the vios wrappers.  This is"},{"line_number":92,"context_line":"        # done so that if Fabric A only has 1 port, it goes on the"},{"line_number":93,"context_line":"        # first VIOS.  Then Fabric B would put its port on a different"},{"line_number":94,"context_line":"        # VIOS.  This servers as a form of multi pathing (so that your"},{"line_number":95,"context_line":"        # paths are not restricted to a single VIOS)."},{"line_number":96,"context_line":"        vios_wraps.reverse()"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_bcf848c4","line":94,"range":{"start_line":94,"start_character":22,"end_line":94,"end_character":29},"updated":"2018-02-08 17:52:08.000000000","message":"serves","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":91,"context_line":"        # Every loop through, we reverse the vios wrappers.  This is"},{"line_number":92,"context_line":"        # done so that if Fabric A only has 1 port, it goes on the"},{"line_number":93,"context_line":"        # first VIOS.  Then Fabric B would put its port on a different"},{"line_number":94,"context_line":"        # VIOS.  This servers as a form of multi pathing (so that your"},{"line_number":95,"context_line":"        # paths are not restricted to a single VIOS)."},{"line_number":96,"context_line":"        vios_wraps.reverse()"},{"line_number":97,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_d37a7ab8","line":94,"range":{"start_line":94,"start_character":22,"end_line":94,"end_character":29},"in_reply_to":"3fa0c359_bcf848c4","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"}],"nova_powervm/virt/powervm/volume/pvvscsi.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":268,"context_line":"            raise p_exc.VolumeDetachFailed(**ex_args)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    def _add_append_mapping(self, vios_uuid, slot_mgr, device_name,"},{"line_number":271,"context_line":"                            target_name\u003dNone, udid\u003dNone, slot\u003dNone, lua\u003dNone):"},{"line_number":272,"context_line":"        \"\"\"Update the stg_ftsk to append the mapping to the VIOS."},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        :param vios_uuid: The UUID of the vios for the pypowervm adapter."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_2d931e5d","line":271,"range":{"start_line":271,"start_character":28,"end_line":271,"end_character":55},"updated":"2018-01-31 22:24:31.000000000","message":"missing from docstring","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":268,"context_line":"            raise p_exc.VolumeDetachFailed(**ex_args)"},{"line_number":269,"context_line":""},{"line_number":270,"context_line":"    def _add_append_mapping(self, vios_uuid, slot_mgr, device_name,"},{"line_number":271,"context_line":"                            target_name\u003dNone, udid\u003dNone, slot\u003dNone, lua\u003dNone):"},{"line_number":272,"context_line":"        \"\"\"Update the stg_ftsk to append the mapping to the VIOS."},{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        :param vios_uuid: The UUID of the vios for the pypowervm adapter."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_a5f666d6","line":271,"range":{"start_line":271,"start_character":28,"end_line":271,"end_character":55},"in_reply_to":"5f93b717_2d931e5d","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        :param vios_uuid: The UUID of the vios for the pypowervm adapter."},{"line_number":275,"context_line":"        :param device_name: The The hdisk device name."},{"line_number":276,"context_line":"        :param lpar_slot_num: (Optional, Default:None) If specified, the client"},{"line_number":277,"context_line":"                              lpar slot number to use on the mapping.  If left"},{"line_number":278,"context_line":"                              as None, it will use the next available slot"},{"line_number":279,"context_line":"                              number."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_cdf07a94","line":276,"range":{"start_line":276,"start_character":15,"end_line":276,"end_character":28},"updated":"2018-01-31 22:24:31.000000000","message":"called \"slot\" in the method definition.\n\nIt is odd that the names used here differ from those in the related _get_add_func method. Would be nice to make them consistent.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":273,"context_line":""},{"line_number":274,"context_line":"        :param vios_uuid: The UUID of the vios for the pypowervm adapter."},{"line_number":275,"context_line":"        :param device_name: The The hdisk device name."},{"line_number":276,"context_line":"        :param lpar_slot_num: (Optional, Default:None) If specified, the client"},{"line_number":277,"context_line":"                              lpar slot number to use on the mapping.  If left"},{"line_number":278,"context_line":"                              as None, it will use the next available slot"},{"line_number":279,"context_line":"                              number."}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_c5db724c","line":276,"range":{"start_line":276,"start_character":15,"end_line":276,"end_character":28},"in_reply_to":"5f93b717_cdf07a94","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"class PVVscsiVolumeAdapter(vscsi.VscsiVolumeAdapter):"},{"line_number":40,"context_line":"    \"\"\"PVVscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"},{"line_number":43,"context_line":"    vSCSI to host physical volumes, that need to be discovered, to the VM."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_b27268ac","line":40,"updated":"2018-02-08 21:34:46.000000000","message":"\"\"\"Base class for vSCSI physical volume drivers\"\"\"","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":37,"context_line":""},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"class PVVscsiVolumeAdapter(vscsi.VscsiVolumeAdapter):"},{"line_number":40,"context_line":"    \"\"\"PVVscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"},{"line_number":43,"context_line":"    vSCSI to host physical volumes, that need to be discovered, to the VM."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_33439e6e","line":40,"in_reply_to":"3fa0c359_b27268ac","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            vios_w, self.volume_id)"},{"line_number":56,"context_line":"        return good_discovery, udid"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _get_target_name(self):"},{"line_number":59,"context_line":"        pass"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _discover_volume_on_vios(self, vios_w, volume_id):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_72adc0e7","line":58,"updated":"2018-02-08 21:34:46.000000000","message":"a docstring would be nice, so child classes have instruction on what this is and how to override it. Copy the same docstring to those subclasses when overriding this.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":55,"context_line":"            vios_w, self.volume_id)"},{"line_number":56,"context_line":"        return good_discovery, udid"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _get_target_name(self):"},{"line_number":59,"context_line":"        pass"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _discover_volume_on_vios(self, vios_w, volume_id):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_b6d79cee","line":58,"in_reply_to":"3fa0c359_72adc0e7","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        return good_discovery, udid"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _get_target_name(self):"},{"line_number":59,"context_line":"        pass"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _discover_volume_on_vios(self, vios_w, volume_id):"},{"line_number":62,"context_line":"        raise NotImplementedError()"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_526be4b5","line":59,"updated":"2018-02-08 21:34:46.000000000","message":"the caller expects to get something, so \"return None\". That\u0027s what \"pass\" will actually do anyway, but it\u0027s a lot clearer.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        return good_discovery, udid"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"    def _get_target_name(self):"},{"line_number":59,"context_line":"        pass"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _discover_volume_on_vios(self, vios_w, volume_id):"},{"line_number":62,"context_line":"        raise NotImplementedError()"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_7607d483","line":59,"in_reply_to":"3fa0c359_526be4b5","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def _get_target_name(self):"},{"line_number":59,"context_line":"        pass"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _discover_volume_on_vios(self, vios_w, volume_id):"},{"line_number":62,"context_line":"        raise NotImplementedError()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _connect_volume(self, slot_mgr):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_12b6bc3f","line":61,"updated":"2018-02-08 21:34:46.000000000","message":"you have a docstring on the subclasses, but not here. Let\u0027s copy it up here so it\u0027s consistent.","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":58,"context_line":"    def _get_target_name(self):"},{"line_number":59,"context_line":"        pass"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    def _discover_volume_on_vios(self, vios_w, volume_id):"},{"line_number":62,"context_line":"        raise NotImplementedError()"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def _connect_volume(self, slot_mgr):"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_5637384e","line":61,"in_reply_to":"3fa0c359_12b6bc3f","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        :param target_name: Target name of the scsi mapping."},{"line_number":277,"context_line":"        :param udid: The udid of the volume to attach."},{"line_number":278,"context_line":"        :param slot: (Optional, Default:None) If specified, the client"},{"line_number":279,"context_line":"                              lpar slot number to use on the mapping.  If left"},{"line_number":280,"context_line":"                              as None, it will use the next available slot"},{"line_number":281,"context_line":"                              number."},{"line_number":282,"context_line":"        :param lua: (Optional.  Default: None) Logical Unit Address to set on"},{"line_number":283,"context_line":"                    the TargetDevice.  If None, the LUA will be assigned by the"},{"line_number":284,"context_line":"                    server.  Should be specified for all of the VSCSIMappings"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_7f5fe40d","line":281,"range":{"start_line":279,"start_character":0,"end_line":281,"end_character":36},"updated":"2018-02-08 17:52:08.000000000","message":"Fix indent","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        :param target_name: Target name of the scsi mapping."},{"line_number":277,"context_line":"        :param udid: The udid of the volume to attach."},{"line_number":278,"context_line":"        :param slot: (Optional, Default:None) If specified, the client"},{"line_number":279,"context_line":"                              lpar slot number to use on the mapping.  If left"},{"line_number":280,"context_line":"                              as None, it will use the next available slot"},{"line_number":281,"context_line":"                              number."},{"line_number":282,"context_line":"        :param lua: (Optional.  Default: None) Logical Unit Address to set on"},{"line_number":283,"context_line":"                    the TargetDevice.  If None, the LUA will be assigned by the"},{"line_number":284,"context_line":"                    server.  Should be specified for all of the VSCSIMappings"}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_76f1146b","line":281,"range":{"start_line":279,"start_character":0,"end_line":281,"end_character":36},"in_reply_to":"3fa0c359_7f5fe40d","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"0ae20e64b8a6c405a988a62b4783db68bd3e8181","unresolved":false,"context_lines":[{"line_number":204,"context_line":"                    # This will only work if vios_w has the Storage XAG."},{"line_number":205,"context_line":"                    device_name \u003d vios_w.hdisk_from_uuid(udid)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"                if not udid or not device_name:"},{"line_number":208,"context_line":"                    # We lost our bdm data. We\u0027ll need to discover it."},{"line_number":209,"context_line":"                    discovery_info \u003d self._discover_volume_on_vios("},{"line_number":210,"context_line":"                        vios_w, self.volume_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_525839f9","line":207,"range":{"start_line":207,"start_character":19,"end_line":207,"end_character":31},"updated":"2018-02-14 22:41:50.000000000","message":"if \"not udid\" evaluates True, then \"not device_name\" will as well, so it is sufficient to just do \"if not device_name:\"","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f70a5f7ced3e9c5e66cf084608a4a54dfdf279cf","unresolved":false,"context_lines":[{"line_number":204,"context_line":"                    # This will only work if vios_w has the Storage XAG."},{"line_number":205,"context_line":"                    device_name \u003d vios_w.hdisk_from_uuid(udid)"},{"line_number":206,"context_line":""},{"line_number":207,"context_line":"                if not udid or not device_name:"},{"line_number":208,"context_line":"                    # We lost our bdm data. We\u0027ll need to discover it."},{"line_number":209,"context_line":"                    discovery_info \u003d self._discover_volume_on_vios("},{"line_number":210,"context_line":"                        vios_w, self.volume_id)"}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_c9580dfc","line":207,"range":{"start_line":207,"start_character":19,"end_line":207,"end_character":31},"in_reply_to":"3fa0c359_525839f9","updated":"2018-02-15 17:29:52.000000000","message":"Done","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"}],"nova_powervm/virt/powervm/volume/volume.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ee04ff05416548ba6c886c763e300e283a12dbd9","unresolved":false,"context_lines":[{"line_number":35,"context_line":"UDID_KEY \u003d \u0027target_UDID\u0027"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class VscsiVolumeAdapter(object):"},{"line_number":39,"context_line":"    \"\"\"VscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_5980d6c0","line":38,"range":{"start_line":38,"start_character":6,"end_line":38,"end_character":24},"updated":"2018-01-16 19:41:04.000000000","message":"I really hate that a class with this name is not in vscsi.py, and that it is named ...VolumeAdapter but does not inherit from PowerVMVolumeAdapter like all other VolumeAdapter classes.","commit_id":"45571c2bbd2f350f7bc03e29e63fec9de2aba829"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"71c7bc73863f705c07bb878db62d037c2c2cd201","unresolved":false,"context_lines":[{"line_number":35,"context_line":"UDID_KEY \u003d \u0027target_UDID\u0027"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"class VscsiVolumeAdapter(object):"},{"line_number":39,"context_line":"    \"\"\"VscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_eabfd3f8","line":38,"range":{"start_line":38,"start_character":6,"end_line":38,"end_character":24},"in_reply_to":"7f96bb07_5980d6c0","updated":"2018-01-26 16:10:38.000000000","message":"Done","commit_id":"45571c2bbd2f350f7bc03e29e63fec9de2aba829"}],"nova_powervm/virt/powervm/volume/vscsi.py":[{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"ee04ff05416548ba6c886c763e300e283a12dbd9","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class PVVscsiFCVolumeAdapter(volume.VscsiVolumeAdapter,"},{"line_number":42,"context_line":"                             v_driver.FibreChannelVolumeAdapter,"},{"line_number":43,"context_line":"                             scsi.ScsiVolumeAdapter):"},{"line_number":44,"context_line":"    \"\"\"The vSCSI implementation of the Volume Adapter."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    For physical volumes, hosted to the VIOS through Fibre Channel, that"}],"source_content_type":"text/x-python","patch_set":1,"id":"7f96bb07_1911eeac","line":43,"range":{"start_line":42,"start_character":29,"end_line":43,"end_character":51},"updated":"2018-01-16 19:41:04.000000000","message":"I\u0027m uncomfortable inheriting from 2 classes that share a common parent...","commit_id":"45571c2bbd2f350f7bc03e29e63fec9de2aba829"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"71c7bc73863f705c07bb878db62d037c2c2cd201","unresolved":false,"context_lines":[{"line_number":39,"context_line":""},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"class PVVscsiFCVolumeAdapter(volume.VscsiVolumeAdapter,"},{"line_number":42,"context_line":"                             v_driver.FibreChannelVolumeAdapter,"},{"line_number":43,"context_line":"                             scsi.ScsiVolumeAdapter):"},{"line_number":44,"context_line":"    \"\"\"The vSCSI implementation of the Volume Adapter."},{"line_number":45,"context_line":""},{"line_number":46,"context_line":"    For physical volumes, hosted to the VIOS through Fibre Channel, that"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f93b717_0abb1f0e","line":43,"range":{"start_line":42,"start_character":29,"end_line":43,"end_character":51},"in_reply_to":"7f96bb07_1911eeac","updated":"2018-01-26 16:10:38.000000000","message":"Done","commit_id":"45571c2bbd2f350f7bc03e29e63fec9de2aba829"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c17a9fd26503d231ed81f36a1c9eab8cb7c75a88","unresolved":false,"context_lines":[{"line_number":37,"context_line":"_vscsi_pfc_wwpns \u003d None"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class PVVscsiFCVolumeAdapter(pvvscsi.PVVscsiVolumeAdapter,"},{"line_number":41,"context_line":"                             v_driver.FibreChannelVolumeAdapter):"},{"line_number":42,"context_line":"    \"\"\"The vSCSI implementation of the Volume Adapter."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_d71ecdb9","line":40,"range":{"start_line":40,"start_character":6,"end_line":40,"end_character":28},"updated":"2018-01-31 22:24:31.000000000","message":"let\u0027s rename this FCPVVscsiVolumeAdapter, so we\u0027re consistent in how we add new adjectives... Vscsi parent of PVVscsi parent of FCPVVscsi.","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"01bc456a024d4c1761bad442dfc0eaa7d6fd95fc","unresolved":false,"context_lines":[{"line_number":37,"context_line":"_vscsi_pfc_wwpns \u003d None"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":""},{"line_number":40,"context_line":"class PVVscsiFCVolumeAdapter(pvvscsi.PVVscsiVolumeAdapter,"},{"line_number":41,"context_line":"                             v_driver.FibreChannelVolumeAdapter):"},{"line_number":42,"context_line":"    \"\"\"The vSCSI implementation of the Volume Adapter."},{"line_number":43,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"5f93b717_a5e4260e","line":40,"range":{"start_line":40,"start_character":6,"end_line":40,"end_character":28},"in_reply_to":"5f93b717_d71ecdb9","updated":"2018-02-05 21:06:19.000000000","message":"Done","commit_id":"8be01eadeb5245daee6e93d4eb30944734a0a8f0"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"c2c638afa3f758cba20ae44734e4aa2026f5f26d","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"class VscsiVolumeAdapter(driver.PowerVMVolumeAdapter):"},{"line_number":62,"context_line":"    \"\"\"VscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"},{"line_number":65,"context_line":"    vSCSI to host the volume to the VM."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_d23854a1","line":62,"updated":"2018-02-08 21:34:46.000000000","message":"\"\"\"Base class for vSCSI-based volume drivers\"\"\"","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":59,"context_line":""},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"class VscsiVolumeAdapter(driver.PowerVMVolumeAdapter):"},{"line_number":62,"context_line":"    \"\"\"VscsiVolumeAdapter that connects a Cinder volume to a VM."},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    This volume adapter is a generic adapter for volume types that use PowerVM"},{"line_number":65,"context_line":"    vSCSI to host the volume to the VM."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_1602103e","line":62,"in_reply_to":"3fa0c359_d23854a1","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":16710,"name":"Eric Berglund","email":"esberglu@us.ibm.com","username":"esberglu"},"change_message_id":"8a47f09ad9804e0bbca4cdbaa278f0a29fde3f88","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    def _get_rm_func(self, slot_mgr, match_func):"},{"line_number":178,"context_line":"        \"\"\"Create a function to remove the mapping from the VIOS."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        A function is generated to be used in a feedtask later."},{"line_number":181,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":182,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":183,"context_line":"        :param match_func: Matching function suitable for passing to find_maps."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_12581830","line":180,"range":{"start_line":180,"start_character":8,"end_line":180,"end_character":63},"updated":"2018-02-08 17:52:08.000000000","message":"Blank line after","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"bc5b4f8269ac460126953f10e6d554fdab6189fc","unresolved":false,"context_lines":[{"line_number":177,"context_line":"    def _get_rm_func(self, slot_mgr, match_func):"},{"line_number":178,"context_line":"        \"\"\"Create a function to remove the mapping from the VIOS."},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"        A function is generated to be used in a feedtask later."},{"line_number":181,"context_line":"        :param slot_mgr: A NovaSlotManager.  Used to store/retrieve the client"},{"line_number":182,"context_line":"                         slots used when a volume is attached to the VM"},{"line_number":183,"context_line":"        :param match_func: Matching function suitable for passing to find_maps."}],"source_content_type":"text/x-python","patch_set":3,"id":"3fa0c359_56ec188e","line":180,"range":{"start_line":180,"start_character":8,"end_line":180,"end_character":63},"in_reply_to":"3fa0c359_12581830","updated":"2018-02-09 21:26:45.000000000","message":"Done","commit_id":"3ed6947e647fc65df9ac00287f0f5b73215257e6"},{"author":{"_account_id":10608,"name":"Matthew Edmonds","email":"edmondsw@us.ibm.com","username":"edmondsw"},"change_message_id":"0ae20e64b8a6c405a988a62b4783db68bd3e8181","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        # SCSI mapping is for the connections between VIOS and client VM"},{"line_number":68,"context_line":"        return [pvm_const.XAG.VIO_SMAP]"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def _get_storage(self):"},{"line_number":71,"context_line":"        \"\"\"Return storage element based on connection_info\"\"\""},{"line_number":72,"context_line":"        raise NotImplementedError()"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_32900d4f","line":70,"updated":"2018-02-14 22:41:50.000000000","message":"_get_storage and _get_match_func are only defined for fileio and rbd yet they will also be found on pvvscsi because it also inherits from this class. Similarly, the implementation found here for _connect_volume and _disconnect_volume is only used for fileio and rbd. I\u0027m thinking let\u0027s create an intermediary class between this and the fileio/rbd classes and move those 4 methods there, similar to how pvvscsi sits between this and iscsi/fcpvvscsi.","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"},{"author":{"_account_id":21099,"name":"Taylor Jakobson","email":"tjakobs@us.ibm.com","username":"tjakobs"},"change_message_id":"f70a5f7ced3e9c5e66cf084608a4a54dfdf279cf","unresolved":false,"context_lines":[{"line_number":67,"context_line":"        # SCSI mapping is for the connections between VIOS and client VM"},{"line_number":68,"context_line":"        return [pvm_const.XAG.VIO_SMAP]"},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"    def _get_storage(self):"},{"line_number":71,"context_line":"        \"\"\"Return storage element based on connection_info\"\"\""},{"line_number":72,"context_line":"        raise NotImplementedError()"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"3fa0c359_8fb0c58d","line":70,"in_reply_to":"3fa0c359_32900d4f","updated":"2018-02-15 17:29:52.000000000","message":"Done","commit_id":"710094007d5c7d5093087165411c1832d8c87f1d"}]}
