)]}'
{"nova/virt/powervm_ext/driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 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":5,"id":"5a3905b3_800d5139","line":1,"range":{"start_line":1,"start_character":12,"end_line":1,"end_character":16},"updated":"2017-01-20 22:26:21.000000000","message":"2016, 2017","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2016 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":5,"id":"5a3905b3_e7d18758","line":1,"range":{"start_line":1,"start_character":12,"end_line":1,"end_character":16},"in_reply_to":"5a3905b3_800d5139","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d real_drv.LOG"},{"line_number":26,"context_line":"CONF \u003d real_drv.CONF"},{"line_number":27,"context_line":"_VOLUME_DRIVER_MAPPINGS \u003d real_drv._VOLUME_DRIVER_MAPPINGS"},{"line_number":28,"context_line":"DISK_ADPT_NS \u003d real_drv.DISK_ADPT_NS"},{"line_number":29,"context_line":"DISK_ADPT_MAPPINGS \u003d real_drv.DISK_ADPT_MAPPINGS"},{"line_number":30,"context_line":"NVRAM_NS \u003d real_drv.NVRAM_NS"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_209c9dbf","line":27,"range":{"start_line":27,"start_character":0,"end_line":27,"end_character":23},"updated":"2017-01-20 22:26:21.000000000","message":"If we\u0027re making this private, I think we just rip it out of here.\n\nThat said, the only reason these symbols are in here is because we were worried about the backward compatibility of someone referencing them.  So I\u0027m not sure it\u0027s a good idea to take it out *or* rename it.\n\nBut it\u0027s probably fine.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"LOG \u003d real_drv.LOG"},{"line_number":26,"context_line":"CONF \u003d real_drv.CONF"},{"line_number":27,"context_line":"_VOLUME_DRIVER_MAPPINGS \u003d real_drv._VOLUME_DRIVER_MAPPINGS"},{"line_number":28,"context_line":"DISK_ADPT_NS \u003d real_drv.DISK_ADPT_NS"},{"line_number":29,"context_line":"DISK_ADPT_MAPPINGS \u003d real_drv.DISK_ADPT_MAPPINGS"},{"line_number":30,"context_line":"NVRAM_NS \u003d real_drv.NVRAM_NS"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_47441b1a","line":27,"range":{"start_line":27,"start_character":0,"end_line":27,"end_character":23},"in_reply_to":"5a3905b3_209c9dbf","updated":"2017-01-23 17:09:19.000000000","message":"Ripping it out!","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"}],"nova_powervm/conf/powervm.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"7ef777c077d9a72511b794a8d7b24e683f4d8646","unresolved":false,"context_lines":[{"line_number":130,"context_line":"               help\u003d\u0027The iSCSI Volume Strategy defines how iSCSI Cinder \u0027"},{"line_number":131,"context_line":"                    \u0027volumes should be attached to the Virtual Machine. The \u0027"},{"line_number":132,"context_line":"                    \u0027option is: iscsi.\u0027),"},{"line_number":133,"context_line":"    cfg.StrOpt(\u0027fc_npiv_adapter_api\u0027,"},{"line_number":134,"context_line":"               default\u003d\u0027nova_powervm.virt.powervm.volume.npiv.\u0027"},{"line_number":135,"context_line":"               \u0027NPIVVolumeAdapter\u0027,"},{"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.vscsi.\u0027"},{"line_number":140,"context_line":"               \u0027PVVscsiFCVolumeAdapter\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),"},{"line_number":143,"context_line":"    cfg.IntOpt(\u0027vscsi_vios_connections_required\u0027,"},{"line_number":144,"context_line":"               default\u003d1, min\u003d1,"},{"line_number":145,"context_line":"               help\u003d\u0027Indicates a minimum number of Virtual I/O Servers that \u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_92d63526","line":142,"range":{"start_line":133,"start_character":0,"end_line":142,"end_character":76},"updated":"2017-01-23 20:55:19.000000000","message":"Do you want to make these mutable as well?  Might the user want to use more than one type of FileIO in a single compute process?\n\nAlso, thinking forward, we may want to make these symbols available through the nova.virt namespace, so consumers don\u0027t have to change their conf when they move from OOT to in-tree.  (Separate change set.)","commit_id":"a522a342e82149f5b729d79947dc2729cf2220a7"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"c1b9a4d8be3cea1c1491d4e60872fac9ddb7e411","unresolved":false,"context_lines":[{"line_number":130,"context_line":"               help\u003d\u0027The iSCSI Volume Strategy defines how iSCSI Cinder \u0027"},{"line_number":131,"context_line":"                    \u0027volumes should be attached to the Virtual Machine. The \u0027"},{"line_number":132,"context_line":"                    \u0027option is: iscsi.\u0027),"},{"line_number":133,"context_line":"    cfg.StrOpt(\u0027fc_npiv_adapter_api\u0027,"},{"line_number":134,"context_line":"               default\u003d\u0027nova_powervm.virt.powervm.volume.npiv.\u0027"},{"line_number":135,"context_line":"               \u0027NPIVVolumeAdapter\u0027,"},{"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.vscsi.\u0027"},{"line_number":140,"context_line":"               \u0027PVVscsiFCVolumeAdapter\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),"},{"line_number":143,"context_line":"    cfg.IntOpt(\u0027vscsi_vios_connections_required\u0027,"},{"line_number":144,"context_line":"               default\u003d1, min\u003d1,"},{"line_number":145,"context_line":"               help\u003d\u0027Indicates a minimum number of Virtual I/O Servers that \u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_4d1a6c18","line":142,"range":{"start_line":133,"start_character":0,"end_line":142,"end_character":76},"in_reply_to":"5a3905b3_92d63526","updated":"2017-01-23 21:23:22.000000000","message":"I\u0027m still honestly on the fence about bringing the NPIV FC implementation in tree.  I need some time to dwell on that.  It has enough quirks and no other driver does quite that (make the \u0027instance\u0027 a host specifically) that its just a little weird.\n\nMutability, I\u0027m leaning against that for those.  I\u0027d like to see them stick for now.  At least within a host install.","commit_id":"a522a342e82149f5b729d79947dc2729cf2220a7"}],"nova_powervm/tests/virt/powervm/test_driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014, 2016 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":5,"id":"5a3905b3_600a2523","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2017-01-20 22:26:21.000000000","message":"2017","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014, 2016 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":5,"id":"5a3905b3_477fbb65","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"in_reply_to":"5a3905b3_600a2523","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"}],"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":"7ef777c077d9a72511b794a8d7b24e683f4d8646","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def test_get_volume_class(self):"},{"line_number":65,"context_line":"        # Test the statics"},{"line_number":66,"context_line":"        volume_drivers \u003d {"},{"line_number":67,"context_line":"            \u0027iscsi\u0027: iscsi.IscsiVolumeAdapter,"},{"line_number":68,"context_line":"            \u0027local\u0027: local.LocalVolumeAdapter,"},{"line_number":69,"context_line":"            \u0027nfs\u0027: nfs.NFSVolumeAdapter,"},{"line_number":70,"context_line":"            \u0027gpfs\u0027: gpfs.GPFSVolumeAdapter,"},{"line_number":71,"context_line":"        }"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        for vol_type, class_type in six.iteritems(volume_drivers):"},{"line_number":74,"context_line":"            self.assertEqual(class_type, volume.get_volume_class(vol_type))"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_129a45b9","line":71,"range":{"start_line":66,"start_character":0,"end_line":71,"end_character":9},"updated":"2017-01-23 20:55:19.000000000","message":"No biggie, but consider pulling this out (maybe into a class var), since it\u0027s used more than once.","commit_id":"a522a342e82149f5b729d79947dc2729cf2220a7"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"c1b9a4d8be3cea1c1491d4e60872fac9ddb7e411","unresolved":false,"context_lines":[{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    def test_get_volume_class(self):"},{"line_number":65,"context_line":"        # Test the statics"},{"line_number":66,"context_line":"        volume_drivers \u003d {"},{"line_number":67,"context_line":"            \u0027iscsi\u0027: iscsi.IscsiVolumeAdapter,"},{"line_number":68,"context_line":"            \u0027local\u0027: local.LocalVolumeAdapter,"},{"line_number":69,"context_line":"            \u0027nfs\u0027: nfs.NFSVolumeAdapter,"},{"line_number":70,"context_line":"            \u0027gpfs\u0027: gpfs.GPFSVolumeAdapter,"},{"line_number":71,"context_line":"        }"},{"line_number":72,"context_line":""},{"line_number":73,"context_line":"        for vol_type, class_type in six.iteritems(volume_drivers):"},{"line_number":74,"context_line":"            self.assertEqual(class_type, volume.get_volume_class(vol_type))"}],"source_content_type":"text/x-python","patch_set":7,"id":"5a3905b3_cddc9c48","line":71,"range":{"start_line":66,"start_character":0,"end_line":71,"end_character":9},"in_reply_to":"5a3905b3_129a45b9","updated":"2017-01-23 21:23:22.000000000","message":"Bleh fine.  I have to rebase anyway  :-)","commit_id":"a522a342e82149f5b729d79947dc2729cf2220a7"}],"nova_powervm/virt/powervm/driver.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014, 2016 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":5,"id":"5a3905b3_e01e1562","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2017-01-20 22:26:21.000000000","message":"2017","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2014, 2016 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":5,"id":"5a3905b3_8771a378","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"in_reply_to":"5a3905b3_e01e1562","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":73,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":74,"context_line":"CONF \u003d cfg.CONF"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# Do not use directly, use the _vol_drv_mappings method to gather"},{"line_number":77,"context_line":"_VOLUME_DRIVER_MAPPINGS \u003d {"},{"line_number":78,"context_line":"    \u0027iscsi\u0027: \u0027nova_powervm.virt.powervm.volume.iscsi.IscsiVolumeAdapter\u0027,"},{"line_number":79,"context_line":"    \u0027local\u0027: \u0027nova_powervm.virt.powervm.volume.local.LocalVolumeAdapter\u0027,"},{"line_number":80,"context_line":"    \u0027nfs\u0027: \u0027nova_powervm.virt.powervm.volume.nfs.NFSVolumeAdapter\u0027,"},{"line_number":81,"context_line":"    \u0027gpfs\u0027: \u0027nova_powervm.virt.powervm.volume.gpfs.GPFSVolumeAdapter\u0027,"},{"line_number":82,"context_line":"}"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"DISK_ADPT_NS \u003d \u0027nova_powervm.virt.powervm.disk\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_031a4b6e","line":81,"range":{"start_line":76,"start_character":0,"end_line":81,"end_character":70},"updated":"2017-01-20 22:26:21.000000000","message":"Might be cleaner to make a class that inherits from dict and make __getitem__ access the dynamic conf value at runtime.\n\nYou could even have __getitem__ do the import of the class (and cache it, so that only has to happen once) to get rid of the duplicated code on lines 1844 and 1872.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":73,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":74,"context_line":"CONF \u003d cfg.CONF"},{"line_number":75,"context_line":""},{"line_number":76,"context_line":"# Do not use directly, use the _vol_drv_mappings method to gather"},{"line_number":77,"context_line":"_VOLUME_DRIVER_MAPPINGS \u003d {"},{"line_number":78,"context_line":"    \u0027iscsi\u0027: \u0027nova_powervm.virt.powervm.volume.iscsi.IscsiVolumeAdapter\u0027,"},{"line_number":79,"context_line":"    \u0027local\u0027: \u0027nova_powervm.virt.powervm.volume.local.LocalVolumeAdapter\u0027,"},{"line_number":80,"context_line":"    \u0027nfs\u0027: \u0027nova_powervm.virt.powervm.volume.nfs.NFSVolumeAdapter\u0027,"},{"line_number":81,"context_line":"    \u0027gpfs\u0027: \u0027nova_powervm.virt.powervm.volume.gpfs.GPFSVolumeAdapter\u0027,"},{"line_number":82,"context_line":"}"},{"line_number":83,"context_line":""},{"line_number":84,"context_line":"DISK_ADPT_NS \u003d \u0027nova_powervm.virt.powervm.disk\u0027"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_fdc03852","line":81,"range":{"start_line":76,"start_character":0,"end_line":81,"end_character":70},"in_reply_to":"5a3905b3_031a4b6e","updated":"2017-01-23 17:09:19.000000000","message":"Yeah, I didn\u0027t do that.  It looked weird.  I went my standard route in the next patch set.  Let me know what you think...","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":12802,"name":"Carl Pecinovsky","email":"csky@us.ibm.com","username":"carl-sky"},"change_message_id":"c70118207514e968232e09359e59d127fa2e6a75","unresolved":false,"context_lines":[{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"        \"\"\""},{"line_number":1126,"context_line":"        # The host ID"},{"line_number":1127,"context_line":"        connector \u003d {\u0027host\u0027: CONF.host}"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"        # We have an unfortunate binary decision.  The cinder volume drivers"},{"line_number":1130,"context_line":"        # need a different host name for FC versus iSCSI.  But they only ask"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_36d78724","line":1127,"updated":"2017-01-20 22:35:37.000000000","message":"I think the host value always gets overwritten later.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"168bf0cedc1838b2ccb9b8a915caed2dd08efd31","unresolved":false,"context_lines":[{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"        \"\"\""},{"line_number":1126,"context_line":"        # The host ID"},{"line_number":1127,"context_line":"        connector \u003d {\u0027host\u0027: CONF.host}"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"        # We have an unfortunate binary decision.  The cinder volume drivers"},{"line_number":1130,"context_line":"        # need a different host name for FC versus iSCSI.  But they only ask"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_74a3c74f","line":1127,"in_reply_to":"5a3905b3_36d78724","updated":"2017-01-21 00:16:25.000000000","message":"But maybe not always.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1124,"context_line":""},{"line_number":1125,"context_line":"        \"\"\""},{"line_number":1126,"context_line":"        # The host ID"},{"line_number":1127,"context_line":"        connector \u003d {\u0027host\u0027: CONF.host}"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"        # We have an unfortunate binary decision.  The cinder volume drivers"},{"line_number":1130,"context_line":"        # need a different host name for FC versus iSCSI.  But they only ask"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_9d749436","line":1127,"in_reply_to":"5a3905b3_36d78724","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1126,"context_line":"        # The host ID"},{"line_number":1127,"context_line":"        connector \u003d {\u0027host\u0027: CONF.host}"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"        # We have an unfortunate binary decision.  The cinder volume drivers"},{"line_number":1130,"context_line":"        # need a different host name for FC versus iSCSI.  But they only ask"},{"line_number":1131,"context_line":"        # for host name.  Boo."},{"line_number":1132,"context_line":"        #"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_20bbbde6","line":1129,"updated":"2017-01-20 22:26:21.000000000","message":"Is there a TODO here?  After scrutinizing the code, I think maybe not, but thought I\u0027d ask anyway.  Maybe to find a better way?","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1126,"context_line":"        # The host ID"},{"line_number":1127,"context_line":"        connector \u003d {\u0027host\u0027: CONF.host}"},{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"        # We have an unfortunate binary decision.  The cinder volume drivers"},{"line_number":1130,"context_line":"        # need a different host name for FC versus iSCSI.  But they only ask"},{"line_number":1131,"context_line":"        # for host name.  Boo."},{"line_number":1132,"context_line":"        #"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_7da2889a","line":1129,"in_reply_to":"5a3905b3_20bbbde6","updated":"2017-01-23 17:09:19.000000000","message":"I don\u0027t think so unfortunately.  I racked my brain for a while on it.  See next comment.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14532,"name":"Gerald McBrearty","email":"gfm@us.ibm.com","username":"gfm"},"change_message_id":"168bf0cedc1838b2ccb9b8a915caed2dd08efd31","unresolved":false,"context_lines":[{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"        # We have an unfortunate binary decision.  The cinder volume drivers"},{"line_number":1130,"context_line":"        # need a different host name for FC versus iSCSI.  But they only ask"},{"line_number":1131,"context_line":"        # for host name.  Boo."},{"line_number":1132,"context_line":"        #"},{"line_number":1133,"context_line":"        # So while other cinder drivers (ex. fileio) can be mixed in with FC"},{"line_number":1134,"context_line":"        # or iSCSI, it\u0027s basically a binary decision between FC or iSCSI.  So"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_0f00aa00","line":1131,"updated":"2017-01-21 00:16:25.000000000","message":"Can you elaborate more on what the problem is?\nfc and iscsi are two different driver instances that don\u0027t talk to each other. A driver really should not use the host name directly as the host entry on the backend controller.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1128,"context_line":""},{"line_number":1129,"context_line":"        # We have an unfortunate binary decision.  The cinder volume drivers"},{"line_number":1130,"context_line":"        # need a different host name for FC versus iSCSI.  But they only ask"},{"line_number":1131,"context_line":"        # for host name.  Boo."},{"line_number":1132,"context_line":"        #"},{"line_number":1133,"context_line":"        # So while other cinder drivers (ex. fileio) can be mixed in with FC"},{"line_number":1134,"context_line":"        # or iSCSI, it\u0027s basically a binary decision between FC or iSCSI.  So"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_ddde1c10","line":1131,"in_reply_to":"5a3905b3_0f00aa00","updated":"2017-01-23 17:09:19.000000000","message":"Ugh...you\u0027re right.  The initiator is different than the host name.  Fantastic...\n\nWe just decided to name them the same thing for some reason.  lol.\n\nI\u0027m going to solve that in a subsequent change set.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1839,"context_line":""},{"line_number":1840,"context_line":"        # If we have any volumes, add the volumes required mapping XAGs."},{"line_number":1841,"context_line":"        for bdm in bdms:"},{"line_number":1842,"context_line":"            driver_type \u003d bdm.get(\u0027connection_info\u0027).get(\u0027driver_volume_type\u0027)"},{"line_number":1843,"context_line":"            adp_type \u003d self._vol_drv_mappings()[driver_type]"},{"line_number":1844,"context_line":"            vol_cls \u003d importutils.import_class(adp_type)"},{"line_number":1845,"context_line":"            xags.update(set(vol_cls.min_xags()))"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_03316bec","line":1842,"range":{"start_line":1842,"start_character":53,"end_line":1842,"end_character":78},"updated":"2017-01-20 22:26:21.000000000","message":"You didn\u0027t handle the case where this can be None.  And if it can\u0027t be, then you can just use [\u0027driver_volume_type\u0027] instead of get().","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1839,"context_line":""},{"line_number":1840,"context_line":"        # If we have any volumes, add the volumes required mapping XAGs."},{"line_number":1841,"context_line":"        for bdm in bdms:"},{"line_number":1842,"context_line":"            driver_type \u003d bdm.get(\u0027connection_info\u0027).get(\u0027driver_volume_type\u0027)"},{"line_number":1843,"context_line":"            adp_type \u003d self._vol_drv_mappings()[driver_type]"},{"line_number":1844,"context_line":"            vol_cls \u003d importutils.import_class(adp_type)"},{"line_number":1845,"context_line":"            xags.update(set(vol_cls.min_xags()))"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_986d81ce","line":1842,"range":{"start_line":1842,"start_character":53,"end_line":1842,"end_character":78},"in_reply_to":"5a3905b3_03316bec","updated":"2017-01-23 17:09:19.000000000","message":"See next rev.  If none, will raise an InvalidVolume with appropriate reason.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1868,"context_line":"                 the adapter based on the connection-type of"},{"line_number":1869,"context_line":"                 connection_info."},{"line_number":1870,"context_line":"        \"\"\""},{"line_number":1871,"context_line":"        vol_key \u003d conn_info.get(\u0027driver_volume_type\u0027)"},{"line_number":1872,"context_line":"        vol_cls \u003d importutils.import_class(self._vol_drv_mappings()[vol_key])"},{"line_number":1873,"context_line":"        LOG.debug(\u0027Volume Adapter returned for connection_info\u003d%s\u0027,"},{"line_number":1874,"context_line":"                  conn_info)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_835b9b2d","line":1871,"range":{"start_line":1871,"start_character":18,"end_line":1871,"end_character":53},"updated":"2017-01-20 22:26:21.000000000","message":"What happens if this returns None?  See above.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1868,"context_line":"                 the adapter based on the connection-type of"},{"line_number":1869,"context_line":"                 connection_info."},{"line_number":1870,"context_line":"        \"\"\""},{"line_number":1871,"context_line":"        vol_key \u003d conn_info.get(\u0027driver_volume_type\u0027)"},{"line_number":1872,"context_line":"        vol_cls \u003d importutils.import_class(self._vol_drv_mappings()[vol_key])"},{"line_number":1873,"context_line":"        LOG.debug(\u0027Volume Adapter returned for connection_info\u003d%s\u0027,"},{"line_number":1874,"context_line":"                  conn_info)"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_b8707da5","line":1871,"range":{"start_line":1871,"start_character":18,"end_line":1871,"end_character":53},"in_reply_to":"5a3905b3_835b9b2d","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1869,"context_line":"                 connection_info."},{"line_number":1870,"context_line":"        \"\"\""},{"line_number":1871,"context_line":"        vol_key \u003d conn_info.get(\u0027driver_volume_type\u0027)"},{"line_number":1872,"context_line":"        vol_cls \u003d importutils.import_class(self._vol_drv_mappings()[vol_key])"},{"line_number":1873,"context_line":"        LOG.debug(\u0027Volume Adapter returned for connection_info\u003d%s\u0027,"},{"line_number":1874,"context_line":"                  conn_info)"},{"line_number":1875,"context_line":"        LOG.debug(\u0027Volume Adapter class %(cls)s for instance %(inst)s\u0027,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_fdd91858","line":1872,"range":{"start_line":1872,"start_character":7,"end_line":1872,"end_character":75},"updated":"2017-01-23 17:09:19.000000000","message":"It shouldn\u0027t.  :-)  But handled in my next version.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1880,"context_line":"    def _vol_drv_mappings(self):"},{"line_number":1881,"context_line":"        # Don\u0027t use the _VOLUME_DRIVER_MAPPINGS directly.  Splice in the"},{"line_number":1882,"context_line":"        # fibre_channel mapping, because that is set in the CONF and may be"},{"line_number":1883,"context_line":"        # dynamically changed."},{"line_number":1884,"context_line":"        vol_mappings \u003d _VOLUME_DRIVER_MAPPINGS.copy()"},{"line_number":1885,"context_line":"        vol_mappings[\u0027fibre_channel\u0027] \u003d (vol_attach.FC_STRATEGY_MAPPING["},{"line_number":1886,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_4008c991","line":1883,"range":{"start_line":1883,"start_character":10,"end_line":1883,"end_character":21},"updated":"2017-01-20 22:26:21.000000000","message":"Okay, so if the fc_attach_strategy is dynamic, you need a change to its definition in conf/powervm.py","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":1880,"context_line":"    def _vol_drv_mappings(self):"},{"line_number":1881,"context_line":"        # Don\u0027t use the _VOLUME_DRIVER_MAPPINGS directly.  Splice in the"},{"line_number":1882,"context_line":"        # fibre_channel mapping, because that is set in the CONF and may be"},{"line_number":1883,"context_line":"        # dynamically changed."},{"line_number":1884,"context_line":"        vol_mappings \u003d _VOLUME_DRIVER_MAPPINGS.copy()"},{"line_number":1885,"context_line":"        vol_mappings[\u0027fibre_channel\u0027] \u003d (vol_attach.FC_STRATEGY_MAPPING["},{"line_number":1886,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_1ddb4450","line":1883,"range":{"start_line":1883,"start_character":10,"end_line":1883,"end_character":21},"in_reply_to":"5a3905b3_4008c991","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"32bf07d0990075473117ab16003044e76630645e","unresolved":false,"context_lines":[{"line_number":1839,"context_line":"                  {\u0027inst\u0027: instance.name, \u0027xags\u0027: \u0027,\u0027.join(xags)})"},{"line_number":1840,"context_line":"        return list(xags)"},{"line_number":1841,"context_line":""},{"line_number":1842,"context_line":"    def _get_inst_vol_adpt(self, context, instance, conn_info, stg_ftsk\u003dNone):"},{"line_number":1843,"context_line":"        \"\"\"Returns the appropriate volume driver based on connection type."},{"line_number":1844,"context_line":""},{"line_number":1845,"context_line":"        Checks the connection info for connection-type and return the"},{"line_number":1846,"context_line":"        connector, if no connection info is provided returns the default"},{"line_number":1847,"context_line":"        connector."},{"line_number":1848,"context_line":"        :param context: security context"},{"line_number":1849,"context_line":"        :param instance: Nova instance for which the volume adapter is needed."},{"line_number":1850,"context_line":"        :param conn_info: BDM connection information of the instance to"},{"line_number":1851,"context_line":"                          get the volume adapter type (vSCSI/NPIV) requested."},{"line_number":1852,"context_line":"        :param stg_ftsk: (Optional) The FeedTask that can be used to defer the"},{"line_number":1853,"context_line":"                         mapping actions against the Virtual I/O Server for. If"},{"line_number":1854,"context_line":"                         not provided, then the connect/disconnect actions will"},{"line_number":1855,"context_line":"                         be immediate."},{"line_number":1856,"context_line":"        :return: Returns the volume adapter."},{"line_number":1857,"context_line":"        \"\"\""},{"line_number":1858,"context_line":"        vol_key \u003d conn_info.get(\u0027driver_volume_type\u0027)"},{"line_number":1859,"context_line":"        return vol_attach.build_volume_driver("},{"line_number":1860,"context_line":"            vol_key, self.adapter, self.host_uuid, instance, conn_info,"},{"line_number":1861,"context_line":"            stg_ftsk\u003dstg_ftsk)"},{"line_number":1862,"context_line":""},{"line_number":1863,"context_line":"    def _get_boot_connectivity_type(self, context, bdms, block_device_info):"},{"line_number":1864,"context_line":"        \"\"\"Get connectivity information for the instance."}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_1e4b395a","line":1861,"range":{"start_line":1842,"start_character":0,"end_line":1861,"end_character":30},"updated":"2017-01-23 17:34:10.000000000","message":"This method seems a bit pointless now.  Why not make build_volume_driver take the conn_info and get rid of this one?","commit_id":"c9e41860e5e23abb3db4582de3d8a2a959654271"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"a513efb3f4722a673cb94a146d68a2ac50409f87","unresolved":false,"context_lines":[{"line_number":1839,"context_line":"                  {\u0027inst\u0027: instance.name, \u0027xags\u0027: \u0027,\u0027.join(xags)})"},{"line_number":1840,"context_line":"        return list(xags)"},{"line_number":1841,"context_line":""},{"line_number":1842,"context_line":"    def _get_inst_vol_adpt(self, context, instance, conn_info, stg_ftsk\u003dNone):"},{"line_number":1843,"context_line":"        \"\"\"Returns the appropriate volume driver based on connection type."},{"line_number":1844,"context_line":""},{"line_number":1845,"context_line":"        Checks the connection info for connection-type and return the"},{"line_number":1846,"context_line":"        connector, if no connection info is provided returns the default"},{"line_number":1847,"context_line":"        connector."},{"line_number":1848,"context_line":"        :param context: security context"},{"line_number":1849,"context_line":"        :param instance: Nova instance for which the volume adapter is needed."},{"line_number":1850,"context_line":"        :param conn_info: BDM connection information of the instance to"},{"line_number":1851,"context_line":"                          get the volume adapter type (vSCSI/NPIV) requested."},{"line_number":1852,"context_line":"        :param stg_ftsk: (Optional) The FeedTask that can be used to defer the"},{"line_number":1853,"context_line":"                         mapping actions against the Virtual I/O Server for. If"},{"line_number":1854,"context_line":"                         not provided, then the connect/disconnect actions will"},{"line_number":1855,"context_line":"                         be immediate."},{"line_number":1856,"context_line":"        :return: Returns the volume adapter."},{"line_number":1857,"context_line":"        \"\"\""},{"line_number":1858,"context_line":"        vol_key \u003d conn_info.get(\u0027driver_volume_type\u0027)"},{"line_number":1859,"context_line":"        return vol_attach.build_volume_driver("},{"line_number":1860,"context_line":"            vol_key, self.adapter, self.host_uuid, instance, conn_info,"},{"line_number":1861,"context_line":"            stg_ftsk\u003dstg_ftsk)"},{"line_number":1862,"context_line":""},{"line_number":1863,"context_line":"    def _get_boot_connectivity_type(self, context, bdms, block_device_info):"},{"line_number":1864,"context_line":"        \"\"\"Get connectivity information for the instance."}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_140b152b","line":1861,"range":{"start_line":1842,"start_character":0,"end_line":1861,"end_character":30},"in_reply_to":"5a3905b3_1e4b395a","updated":"2017-01-23 20:22:53.000000000","message":"Done.  It was a bit simpler before because each call didn\u0027t need to send the \u0027self\u0027 params, but it works well enough.","commit_id":"c9e41860e5e23abb3db4582de3d8a2a959654271"}],"nova_powervm/virt/powervm/volume/__init__.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015, 2016 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":5,"id":"5a3905b3_e3dc5f14","line":1,"range":{"start_line":1,"start_character":18,"end_line":1,"end_character":22},"updated":"2017-01-20 22:26:21.000000000","message":"2017","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"32bf07d0990075473117ab16003044e76630645e","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"def get_volume_class(drv_type):"},{"line_number":50,"context_line":"    if _STATIC_VOLUME_MAPPINGS.get(drv_type):"},{"line_number":51,"context_line":"        class_type \u003d _STATIC_VOLUME_MAPPINGS.get(drv_type)"},{"line_number":52,"context_line":"    elif drv_type \u003d\u003d \u0027fibre_channel\u0027:"},{"line_number":53,"context_line":"        class_type \u003d (FC_STRATEGY_MAPPING["},{"line_number":54,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_9e5729c9","line":51,"range":{"start_line":50,"start_character":0,"end_line":51,"end_character":58},"updated":"2017-01-23 17:34:10.000000000","message":"Personal pet peeve, I don\u0027t like this pattern:\n\n if get_a_thing():\n     var \u003d get_a_thing()\n\nConsider:\n\n if drv_type in _STATIC_VOLUME_MAPPINGS:\n     class_type \u003d _STATIC_VOLUME_MAPPINGS[drv_type]","commit_id":"c9e41860e5e23abb3db4582de3d8a2a959654271"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"a513efb3f4722a673cb94a146d68a2ac50409f87","unresolved":false,"context_lines":[{"line_number":47,"context_line":""},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"def get_volume_class(drv_type):"},{"line_number":50,"context_line":"    if _STATIC_VOLUME_MAPPINGS.get(drv_type):"},{"line_number":51,"context_line":"        class_type \u003d _STATIC_VOLUME_MAPPINGS.get(drv_type)"},{"line_number":52,"context_line":"    elif drv_type \u003d\u003d \u0027fibre_channel\u0027:"},{"line_number":53,"context_line":"        class_type \u003d (FC_STRATEGY_MAPPING["},{"line_number":54,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_9418e5d4","line":51,"range":{"start_line":50,"start_character":0,"end_line":51,"end_character":58},"in_reply_to":"5a3905b3_9e5729c9","updated":"2017-01-23 20:22:53.000000000","message":"Done","commit_id":"c9e41860e5e23abb3db4582de3d8a2a959654271"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"32bf07d0990075473117ab16003044e76630645e","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    if _STATIC_VOLUME_MAPPINGS.get(drv_type):"},{"line_number":51,"context_line":"        class_type \u003d _STATIC_VOLUME_MAPPINGS.get(drv_type)"},{"line_number":52,"context_line":"    elif drv_type \u003d\u003d \u0027fibre_channel\u0027:"},{"line_number":53,"context_line":"        class_type \u003d (FC_STRATEGY_MAPPING["},{"line_number":54,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"},{"line_number":55,"context_line":"    else:"},{"line_number":56,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":57,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_9e25695d","line":54,"range":{"start_line":53,"start_character":0,"end_line":54,"end_character":53},"updated":"2017-01-23 17:34:10.000000000","message":"KeyError (instead of the pretty InvalidVolume exception below) if they spelled their conf value wrong.  Consider using .get here, and making the error check its own \u0027if class_type is None\u0027 check.","commit_id":"c9e41860e5e23abb3db4582de3d8a2a959654271"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"a513efb3f4722a673cb94a146d68a2ac50409f87","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    if _STATIC_VOLUME_MAPPINGS.get(drv_type):"},{"line_number":51,"context_line":"        class_type \u003d _STATIC_VOLUME_MAPPINGS.get(drv_type)"},{"line_number":52,"context_line":"    elif drv_type \u003d\u003d \u0027fibre_channel\u0027:"},{"line_number":53,"context_line":"        class_type \u003d (FC_STRATEGY_MAPPING["},{"line_number":54,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"},{"line_number":55,"context_line":"    else:"},{"line_number":56,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":57,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_b40b217c","line":54,"range":{"start_line":53,"start_character":0,"end_line":54,"end_character":53},"in_reply_to":"5a3905b3_9e25695d","updated":"2017-01-23 20:22:53.000000000","message":"No, I think an InvalidVolume makes more sense here to be honest.  Its a nova exception for that pipeline.  None should never be passed in.","commit_id":"c9e41860e5e23abb3db4582de3d8a2a959654271"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"0ee606a8c026bd1d0c21c85d97349b64f6bdb344","unresolved":false,"context_lines":[{"line_number":50,"context_line":"    if _STATIC_VOLUME_MAPPINGS.get(drv_type):"},{"line_number":51,"context_line":"        class_type \u003d _STATIC_VOLUME_MAPPINGS.get(drv_type)"},{"line_number":52,"context_line":"    elif drv_type \u003d\u003d \u0027fibre_channel\u0027:"},{"line_number":53,"context_line":"        class_type \u003d (FC_STRATEGY_MAPPING["},{"line_number":54,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"},{"line_number":55,"context_line":"    else:"},{"line_number":56,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":57,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"}],"source_content_type":"text/x-python","patch_set":6,"id":"5a3905b3_1724f7c2","line":54,"range":{"start_line":53,"start_character":0,"end_line":54,"end_character":53},"in_reply_to":"5a3905b3_b40b217c","updated":"2017-01-23 20:55:34.000000000","message":"Sorry, I didn\u0027t make myself clear.\n\nI\u0027m agreeing that InvalidVolume makes more sense than KeyError.  But if they misspell their fc_attach_strategy value, this statement will raise a KeyError.\n\nMy suggestion was to do this assignment with a .get so it doesn\u0027t raise KeyError, then generalize the subsequent InvalidVolume check on \u0027class_type is None\u0027.","commit_id":"c9e41860e5e23abb3db4582de3d8a2a959654271"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"f29766605d5736b632ebd2367c583e4e965f89b1","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    if drv_type in _STATIC_VOLUME_MAPPINGS:"},{"line_number":56,"context_line":"        class_type \u003d _STATIC_VOLUME_MAPPINGS[drv_type]"},{"line_number":57,"context_line":"    elif drv_type \u003d\u003d \u0027fibre_channel\u0027:"},{"line_number":58,"context_line":"        class_type \u003d (FC_STRATEGY_MAPPING["},{"line_number":59,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"},{"line_number":60,"context_line":"    else:"},{"line_number":61,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":62,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a3905b3_83e0a5ce","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":9},"updated":"2017-01-23 22:20:49.000000000","message":"Carried forward from PS6:\n\nSorry, I didn\u0027t make myself clear.\n\nI\u0027m agreeing that InvalidVolume makes more sense than KeyError.  But if they misspell their fc_attach_strategy value, this statement will raise a KeyError.\n\nMy suggestion was to do this assignment with a .get so it doesn\u0027t raise KeyError, then generalize the subsequent InvalidVolume check on \u0027class_type is None\u0027.","commit_id":"321f46217567738f77f2c78241b0fa9f762486fd"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e25db2704d37ce2d8d6484dfa76ef17473d5fa38","unresolved":false,"context_lines":[{"line_number":55,"context_line":"    if drv_type in _STATIC_VOLUME_MAPPINGS:"},{"line_number":56,"context_line":"        class_type \u003d _STATIC_VOLUME_MAPPINGS[drv_type]"},{"line_number":57,"context_line":"    elif drv_type \u003d\u003d \u0027fibre_channel\u0027:"},{"line_number":58,"context_line":"        class_type \u003d (FC_STRATEGY_MAPPING["},{"line_number":59,"context_line":"            CONF.powervm.fc_attach_strategy.lower()])"},{"line_number":60,"context_line":"    else:"},{"line_number":61,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":62,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"5a3905b3_4afb0d79","line":60,"range":{"start_line":58,"start_character":0,"end_line":60,"end_character":9},"in_reply_to":"5a3905b3_83e0a5ce","updated":"2017-01-26 13:44:29.000000000","message":"I see.\n\nUpdate: So I did as you had asked.  I agreed with your reasoning, the admin could screw up.\n\nHowever, something happened I should\u0027ve realized.  The driver won\u0027t allow that.  We bound the valid values in the conf options here:  https://github.com/openstack/nova-powervm/blob/master/nova_powervm/conf/powervm.py#L118\n\nSo if you put the wrong value in, we don\u0027t start.  Instead you get this convenient message: ValueError: Valid values are [vscsi, npiv], but found \u0027n/a\u0027\n\n\nI\u0027m reverting my code to the original simply because, you can\u0027t get into this situation described here.  The driver won\u0027t load if you set it wrong.","commit_id":"321f46217567738f77f2c78241b0fa9f762486fd"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"d87d9c1a552bbd99b51d45caa67e2eecf0ee1dc8","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":62,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    return importutils.import_class(class_type)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"def get_hostname_for_volume(instance):"}],"source_content_type":"text/x-python","patch_set":8,"id":"5a3905b3_3bc7f596","line":64,"range":{"start_line":64,"start_character":0,"end_line":64,"end_character":47},"updated":"2017-01-24 14:25:47.000000000","message":"Another thing - we should probably try/except this guy.  If they misspell the class (which is not unlikely) this will yield some kind of ImportError, which is less user-friendly than it could be.","commit_id":"321f46217567738f77f2c78241b0fa9f762486fd"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"e25db2704d37ce2d8d6484dfa76ef17473d5fa38","unresolved":false,"context_lines":[{"line_number":61,"context_line":"        failure_reason \u003d _(\"Invalid connection type of %s\") % drv_type"},{"line_number":62,"context_line":"        raise exception.InvalidVolume(reason\u003dfailure_reason)"},{"line_number":63,"context_line":""},{"line_number":64,"context_line":"    return importutils.import_class(class_type)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"def get_hostname_for_volume(instance):"}],"source_content_type":"text/x-python","patch_set":8,"id":"3a461143_ccaa76d4","line":64,"range":{"start_line":64,"start_character":0,"end_line":64,"end_character":47},"in_reply_to":"5a3905b3_3bc7f596","updated":"2017-01-26 13:44:29.000000000","message":"They should never be spelling a class.  A developer maybe, but not an end user.  An end user should never do anything (except pick an FC_STRATEGY_MAPPING) that would impact this.\n\nI assert a developer should see an ImportError in that situation.","commit_id":"321f46217567738f77f2c78241b0fa9f762486fd"}],"nova_powervm/virt/powervm/volume/fileio.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":33,"context_line":"class FileIOVolumeAdapter(v_driver.PowerVMVolumeAdapter):"},{"line_number":34,"context_line":"    \"\"\"Base class for connecting file based Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":37,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_96975b8f","line":34,"range":{"start_line":34,"start_character":70,"end_line":34,"end_character":74},"updated":"2017-01-20 22:26:21.000000000","message":"VMs","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":31,"context_line":""},{"line_number":32,"context_line":"@six.add_metaclass(abc.ABCMeta)"},{"line_number":33,"context_line":"class FileIOVolumeAdapter(v_driver.PowerVMVolumeAdapter):"},{"line_number":34,"context_line":"    \"\"\"Base class for connecting file based Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":37,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_388bad69","line":34,"range":{"start_line":34,"start_character":70,"end_line":34,"end_character":74},"in_reply_to":"5a3905b3_96975b8f","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":33,"context_line":"class FileIOVolumeAdapter(v_driver.PowerVMVolumeAdapter):"},{"line_number":34,"context_line":"    \"\"\"Base class for connecting file based Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":37,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":38,"context_line":"        super(FileIOVolumeAdapter, self).__init__("},{"line_number":39,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    @classmethod"},{"line_number":42,"context_line":"    def min_xags(cls):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_432ff3f5","line":39,"range":{"start_line":36,"start_character":0,"end_line":39,"end_character":77},"updated":"2017-01-20 22:26:21.000000000","message":"Redundant - strike.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":33,"context_line":"class FileIOVolumeAdapter(v_driver.PowerVMVolumeAdapter):"},{"line_number":34,"context_line":"    \"\"\"Base class for connecting file based Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":37,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":38,"context_line":"        super(FileIOVolumeAdapter, self).__init__("},{"line_number":39,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"    @classmethod"},{"line_number":42,"context_line":"    def min_xags(cls):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_58ecf929","line":39,"range":{"start_line":36,"start_character":0,"end_line":39,"end_character":77},"in_reply_to":"5a3905b3_432ff3f5","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                self.host_uuid, vios_w, self.vm_uuid, fio)"},{"line_number":65,"context_line":"            return tsk_map.add_map(vios_w, mapping)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"        self.stg_ftsk.wrapper_tasks[vios_uuid].add_functor_subtask(add_func)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def _disconnect_volume(self, slot_mgr):"},{"line_number":70,"context_line":"        # Get the hosting UUID"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_f647bf48","line":67,"range":{"start_line":67,"start_character":8,"end_line":67,"end_character":76},"updated":"2017-01-20 22:26:21.000000000","message":"Accessing wrapper_tasks prematurely will cause the getter to fetch the VIOS feed before the FeedTask runs, which could lead to avoidable 412s.  Consider adding the subtask to the FeedTask and making add_func return False immediately if vios_w.uuid !\u003d vios_uuid.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                self.host_uuid, vios_w, self.vm_uuid, fio)"},{"line_number":65,"context_line":"            return tsk_map.add_map(vios_w, mapping)"},{"line_number":66,"context_line":""},{"line_number":67,"context_line":"        self.stg_ftsk.wrapper_tasks[vios_uuid].add_functor_subtask(add_func)"},{"line_number":68,"context_line":""},{"line_number":69,"context_line":"    def _disconnect_volume(self, slot_mgr):"},{"line_number":70,"context_line":"        # Get the hosting UUID"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_5866b92a","line":67,"range":{"start_line":67,"start_character":8,"end_line":67,"end_character":76},"in_reply_to":"5a3905b3_f647bf48","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            return tsk_map.remove_maps(vios_w, self.vm_uuid,"},{"line_number":84,"context_line":"                                       match_func\u003dmatch_func)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        self.stg_ftsk.wrapper_tasks[vios_uuid].add_functor_subtask(rm_func)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        # Find the disk directly."},{"line_number":89,"context_line":"        mappings \u003d tsk_map.find_maps(nl_vios_wrap.scsi_mappings,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_3678678f","line":86,"range":{"start_line":86,"start_character":0,"end_line":86,"end_character":75},"updated":"2017-01-20 22:26:21.000000000","message":"Ditto above.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":83,"context_line":"            return tsk_map.remove_maps(vios_w, self.vm_uuid,"},{"line_number":84,"context_line":"                                       match_func\u003dmatch_func)"},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"        self.stg_ftsk.wrapper_tasks[vios_uuid].add_functor_subtask(rm_func)"},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"        # Find the disk directly."},{"line_number":89,"context_line":"        mappings \u003d tsk_map.find_maps(nl_vios_wrap.scsi_mappings,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_38a56d46","line":86,"range":{"start_line":86,"start_character":0,"end_line":86,"end_character":75},"in_reply_to":"5a3905b3_3678678f","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        return [x.backing_storage for x in mappings]"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def _get_hosting_vios(self):"},{"line_number":96,"context_line":"        \"\"\"Returns the NovaLink VIOS LPAR from the feed task.\"\"\""},{"line_number":97,"context_line":"        for vios in self.stg_ftsk.feed:"},{"line_number":98,"context_line":"            if vios.is_mgmt_partition:"},{"line_number":99,"context_line":"                return vios"},{"line_number":100,"context_line":"        # Should never hit."},{"line_number":101,"context_line":"        return None"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_362a277f","line":101,"range":{"start_line":95,"start_character":0,"end_line":101,"end_character":19},"updated":"2017-01-20 22:26:21.000000000","message":"Is it important that you get this from the FeedTask?  Remember, accessing .feed prematurely will cause the getter to go fetch all the VIOSes, which could lead to avoidable 412s.  Consider using pypowervm.tasks.partition.get_this_partition instead.  (In which case you could inline that call and get rid of this method entirely.)","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":92,"context_line":""},{"line_number":93,"context_line":"        return [x.backing_storage for x in mappings]"},{"line_number":94,"context_line":""},{"line_number":95,"context_line":"    def _get_hosting_vios(self):"},{"line_number":96,"context_line":"        \"\"\"Returns the NovaLink VIOS LPAR from the feed task.\"\"\""},{"line_number":97,"context_line":"        for vios in self.stg_ftsk.feed:"},{"line_number":98,"context_line":"            if vios.is_mgmt_partition:"},{"line_number":99,"context_line":"                return vios"},{"line_number":100,"context_line":"        # Should never hit."},{"line_number":101,"context_line":"        return None"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_781e1571","line":101,"range":{"start_line":95,"start_character":0,"end_line":101,"end_character":19},"in_reply_to":"5a3905b3_362a277f","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"}],"nova_powervm/virt/powervm/volume/gpfs.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from nova_powervm.virt.powervm.volume import fileio"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class GPFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects GPFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_56a6d310","line":20,"range":{"start_line":20,"start_character":6,"end_line":20,"end_character":23},"updated":"2017-01-20 22:26:21.000000000","message":"As with LocalVolumeAdapter, if you put the _get_path code into the superclass, this guy could just `pass`.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":17,"context_line":"from nova_powervm.virt.powervm.volume import fileio"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class GPFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects GPFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_3b46474f","line":20,"range":{"start_line":20,"start_character":6,"end_line":20,"end_character":23},"in_reply_to":"5a3905b3_56a6d310","updated":"2017-01-23 17:09:19.000000000","message":"I know, but I wanted to match the libvirt model instead.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class GPFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects GPFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_2361073a","line":21,"range":{"start_line":21,"start_character":47,"end_line":21,"end_character":51},"updated":"2017-01-20 22:26:21.000000000","message":"VMs","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class GPFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects GPFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_db6b83b5","line":21,"range":{"start_line":21,"start_character":47,"end_line":21,"end_character":51},"in_reply_to":"5a3905b3_2361073a","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class GPFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects GPFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":25,"context_line":"        super(GPFSVolumeAdapter, self).__init__("},{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info.get(\"data\")[\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_c33be336","line":26,"range":{"start_line":23,"start_character":0,"end_line":26,"end_character":77},"updated":"2017-01-20 22:26:21.000000000","message":"Redundant - strike.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class GPFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects GPFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":25,"context_line":"        super(GPFSVolumeAdapter, self).__init__("},{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info.get(\"data\")[\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_1b626bd8","line":26,"range":{"start_line":23,"start_character":0,"end_line":26,"end_character":77},"in_reply_to":"5a3905b3_c33be336","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info.get(\"data\")[\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_e3945fe3","line":29,"range":{"start_line":29,"start_character":36,"end_line":29,"end_character":62},"updated":"2017-01-20 22:26:21.000000000","message":"Any reason for mixing double and single quotes?\n\nAlso, why bother with .get() here?  If that guy returns None, you\u0027ll blow up with the cryptic \"NoneType has no attribute \u0027__getitem__\u0027\" versus the (slightly) more sane \"KeyError: \u0027data\u0027\" if you just use square bracket indexing.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"b53d0ed940eef7a6305a559d41b18af3561096ec","unresolved":false,"context_lines":[{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info.get(\"data\")[\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_bb6f97fa","line":29,"range":{"start_line":29,"start_character":36,"end_line":29,"end_character":62},"in_reply_to":"5a3905b3_7ba1aff7","updated":"2017-01-23 17:35:00.000000000","message":"Boo.  No reason we can\u0027t be better than libvirt here.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info.get(\"data\")[\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_7ba1aff7","line":29,"range":{"start_line":29,"start_character":36,"end_line":29,"end_character":62},"in_reply_to":"5a3905b3_e3945fe3","updated":"2017-01-23 17:09:19.000000000","message":"Just matching what is written in the libvirt driver here.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"}],"nova_powervm/virt/powervm/volume/local.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class LocalVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects Local Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_f65edf10","line":21,"range":{"start_line":21,"start_character":48,"end_line":21,"end_character":52},"updated":"2017-01-20 22:26:21.000000000","message":"VMs","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":18,"context_line":""},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"class LocalVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects Local Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_7b88cf71","line":21,"range":{"start_line":21,"start_character":48,"end_line":21,"end_character":52},"in_reply_to":"5a3905b3_f65edf10","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class LocalVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects Local Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":25,"context_line":"        super(LocalVolumeAdapter, self).__init__("},{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info[\u0027data\u0027][\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_8310fba9","line":26,"range":{"start_line":23,"start_character":0,"end_line":26,"end_character":77},"updated":"2017-01-20 22:26:21.000000000","message":"Redundant - strike.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":20,"context_line":"class LocalVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":21,"context_line":"    \"\"\"Connects Local Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":24,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":25,"context_line":"        super(LocalVolumeAdapter, self).__init__("},{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info[\u0027data\u0027][\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_3bb48733","line":26,"range":{"start_line":23,"start_character":0,"end_line":26,"end_character":77},"in_reply_to":"5a3905b3_8310fba9","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        super(LocalVolumeAdapter, self).__init__("},{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info[\u0027data\u0027][\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_3686a765","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":58},"updated":"2017-01-20 22:26:21.000000000","message":"Could put this in the superclass and only override it in NFSVolumeAdapter.  Then LocalVolumeAdapter could just `pass`.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":25,"context_line":"        super(LocalVolumeAdapter, self).__init__("},{"line_number":26,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def _get_path(self):"},{"line_number":29,"context_line":"        return self.connection_info[\u0027data\u0027][\u0027device_path\u0027]"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_fbad9fe9","line":29,"range":{"start_line":28,"start_character":0,"end_line":29,"end_character":58},"in_reply_to":"5a3905b3_3686a765","updated":"2017-01-23 17:09:19.000000000","message":"See previous file.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"}],"nova_powervm/virt/powervm/volume/nfs.py":[{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class NFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":22,"context_line":"    \"\"\"Connects NFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":25,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_76802f47","line":22,"range":{"start_line":22,"start_character":46,"end_line":22,"end_character":50},"updated":"2017-01-20 22:26:21.000000000","message":"VMs","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"class NFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":22,"context_line":"    \"\"\"Connects NFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":25,"context_line":"                 stg_ftsk\u003dNone):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_db99c3c5","line":22,"range":{"start_line":22,"start_character":46,"end_line":22,"end_character":50},"in_reply_to":"5a3905b3_76802f47","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"4c6d157e141a333efbc87e069740cf8d369a8a64","unresolved":false,"context_lines":[{"line_number":21,"context_line":"class NFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":22,"context_line":"    \"\"\"Connects NFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":25,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":26,"context_line":"        super(NFSVolumeAdapter, self).__init__("},{"line_number":27,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _get_path(self):"},{"line_number":30,"context_line":"        return os.path.join(self.connection_info[\u0027data\u0027][\u0027export\u0027],"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_237ae7f1","line":27,"range":{"start_line":24,"start_character":0,"end_line":27,"end_character":77},"updated":"2017-01-20 22:26:21.000000000","message":"Redundant - strike.","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"91f8e211104b8a68e4dee5cd9b032edc5c6e76d9","unresolved":false,"context_lines":[{"line_number":21,"context_line":"class NFSVolumeAdapter(fileio.FileIOVolumeAdapter):"},{"line_number":22,"context_line":"    \"\"\"Connects NFS Cinder Volumes to PowerVM VM\u0027s.\"\"\""},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"    def __init__(self, adapter, host_uuid, instance, connection_info,"},{"line_number":25,"context_line":"                 stg_ftsk\u003dNone):"},{"line_number":26,"context_line":"        super(NFSVolumeAdapter, self).__init__("},{"line_number":27,"context_line":"            adapter, host_uuid, instance, connection_info, stg_ftsk\u003dstg_ftsk)"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"    def _get_path(self):"},{"line_number":30,"context_line":"        return os.path.join(self.connection_info[\u0027data\u0027][\u0027export\u0027],"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a3905b3_fb94bf8b","line":27,"range":{"start_line":24,"start_character":0,"end_line":27,"end_character":77},"in_reply_to":"5a3905b3_237ae7f1","updated":"2017-01-23 17:09:19.000000000","message":"Done","commit_id":"0e14e1bb5d2fd1742a2dff31939e920ddba09ae8"}]}
