)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"52e0fcb5c697a2a7adddfd3ebfeeeeb2f6f83d91","unresolved":false,"context_lines":[{"line_number":17,"context_line":"is provided. This fix will do just that, for cases where we"},{"line_number":18,"context_line":"don\u0027t have enough other information we just use wildcards."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"In testing it seems like this happens on first-time connections"},{"line_number":21,"context_line":"to a target after the ACLs have been setup on the arrays for"},{"line_number":22,"context_line":"the initiator. After that we can get the HBA channel and SCSI"},{"line_number":23,"context_line":"target with the grep call in _get_hba_channel_scsi_target"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: I393a028457a162228666d8497b695984fefdfab4"},{"line_number":26,"context_line":"Closes-Bug: #1774283"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f7c97a3_414dfc38","line":23,"range":{"start_line":20,"start_character":0,"end_line":23,"end_character":57},"updated":"2018-05-31 07:59:03.000000000","message":"Have you figured out why is that the case?","commit_id":"5a013d1187d3a7372c22152fb2735f5d039ef168"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"5afa28064f1a48bdd6e89086baf094fa05af1cf7","unresolved":false,"context_lines":[{"line_number":17,"context_line":"is provided. This fix will do just that, for cases where we"},{"line_number":18,"context_line":"don\u0027t have enough other information we just use wildcards."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"In testing it seems like this happens on first-time connections"},{"line_number":21,"context_line":"to a target after the ACLs have been setup on the arrays for"},{"line_number":22,"context_line":"the initiator. After that we can get the HBA channel and SCSI"},{"line_number":23,"context_line":"target with the grep call in _get_hba_channel_scsi_target"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: I393a028457a162228666d8497b695984fefdfab4"},{"line_number":26,"context_line":"Closes-Bug: #1774283"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"5f7c97a3_d4321ea7","line":23,"range":{"start_line":20,"start_character":0,"end_line":23,"end_character":57},"in_reply_to":"5f7c97a3_414dfc38","updated":"2018-05-31 22:59:17.000000000","message":"Not yet, still digging around to see why.","commit_id":"5a013d1187d3a7372c22152fb2735f5d039ef168"},{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"350260dc1f10d38f0ee2908599500cedeae00d3d","unresolved":false,"context_lines":[{"line_number":11,"context_line":"wwns per connections. There is need to support multiple luns"},{"line_number":12,"context_line":"per multipath device, similar to how the iSCSI volumes work."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"What we do is allow a list for \u0027target_luns\u0027 and \u0027target_wwns\u0027"},{"line_number":15,"context_line":"in the connection properties, similar to how the iSCSI connector"},{"line_number":16,"context_line":"treats things like \u0027target_portals\u0027, \u0027target_luns\u0027, etc. we"},{"line_number":17,"context_line":"then group together \u0027targets\u0027 as combination of wwpns and the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f7c97a3_5a7b9079","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":62},"updated":"2018-06-01 08:31:56.000000000","message":"?: I see the appeal of making this like the iSCSI case, but I think that ship sailed when we accepted lists in target_wwn for FC.  Should we just accept lists in target_lun as well?\n\nIf we add target_luns and target_wwns we have more possible combinations:\n\n target_lun: #, target_wwn: string\n target_lun: #, target_wwn: list\n\n target_lun: #, target_wwn: string, target_wwns: list, target_luns: list\n target_lun: #, target_wwn: list, target_wwns: list, target_luns: list\n\n target_lun: #, target_wwn: list, target_luns: list\n target_lun: #, target_wwn: string, target_luns: list\n\nNot sure that\u0027s too good...","commit_id":"3839a464a9d07866d01def2da53ebaa5b37c18c2"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"92caa49dd246fd7088604b6bfd566766cafebac1","unresolved":false,"context_lines":[{"line_number":11,"context_line":"wwns per connections. There is need to support multiple luns"},{"line_number":12,"context_line":"per multipath device, similar to how the iSCSI volumes work."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"What we do is allow a list for \u0027target_luns\u0027 and \u0027target_wwns\u0027"},{"line_number":15,"context_line":"in the connection properties, similar to how the iSCSI connector"},{"line_number":16,"context_line":"treats things like \u0027target_portals\u0027, \u0027target_luns\u0027, etc. we"},{"line_number":17,"context_line":"then group together \u0027targets\u0027 as combination of wwpns and the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f7c97a3_02e846df","line":14,"range":{"start_line":14,"start_character":0,"end_line":14,"end_character":62},"in_reply_to":"5f7c97a3_5a7b9079","updated":"2018-06-01 17:06:21.000000000","message":"The problem then is drivers don\u0027t have a very safe upgrade path (unless I\u0027m missing something). If we merge this change, and I update say the PureFCDriver to return a list of LUN\u0027s in target_lun (even if they are all the same one) any n-cpu nodes that haven\u0027t been updated yet will start to choke on attach requests. Its essentially a breaking API change in my mind.\n\nYou are correct that we have many combinations, but its exactly the same as for iSCSI. We take priority with the plural versions, and use the single-ones just like we have in the past. Drivers can opt in to using the newer keys as they need and otherwise nothing changes for them.\n\nIdeally we have the drivers just return the \"targets\" list since we *really* care about those.. even for iSCSI it is kinda silly that we have multiple lists that get zipped together instead of a single object grouped together by the driver. I opted away from this initially because it is a much larger change IMO. This starts to introduce that concept in the FC connector, and if we like it we can spread it further later on.","commit_id":"3839a464a9d07866d01def2da53ebaa5b37c18c2"},{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"350260dc1f10d38f0ee2908599500cedeae00d3d","unresolved":false,"context_lines":[{"line_number":29,"context_line":"we can do targeted rescans with different LUN values."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I393a028457a162228666d8497b695984fefdfab4"},{"line_number":32,"context_line":"Closes-Bug: #1774283"},{"line_number":33,"context_line":"Closes-Bug: #1774293"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f7c97a3_3aab34d6","line":33,"range":{"start_line":32,"start_character":0,"end_line":33,"end_character":20},"updated":"2018-06-01 08:31:56.000000000","message":"-1: Please don\u0027t mix the 2 fixes.  One is a fix for my mistake (which is a quick review with no required discussion), and the other could be considered as a new feature (something we didn\u0027t support before) and there may be some discussion on the patch.","commit_id":"3839a464a9d07866d01def2da53ebaa5b37c18c2"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"92caa49dd246fd7088604b6bfd566766cafebac1","unresolved":false,"context_lines":[{"line_number":29,"context_line":"we can do targeted rescans with different LUN values."},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"Change-Id: I393a028457a162228666d8497b695984fefdfab4"},{"line_number":32,"context_line":"Closes-Bug: #1774283"},{"line_number":33,"context_line":"Closes-Bug: #1774293"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"5f7c97a3_42c95ea9","line":33,"range":{"start_line":32,"start_character":0,"end_line":33,"end_character":20},"in_reply_to":"5f7c97a3_3aab34d6","updated":"2018-06-01 17:06:21.000000000","message":"Sure, I can split them up.","commit_id":"3839a464a9d07866d01def2da53ebaa5b37c18c2"}],"os_brick/initiator/connectors/fibre_channel.py":[{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"350260dc1f10d38f0ee2908599500cedeae00d3d","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            wwpn_lun_map[wwpn] \u003d lun"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        # If there is an initiator_target_map we can update it too"},{"line_number":117,"context_line":"        if \u0027initiator_target_map\u0027 in connection_properties:"},{"line_number":118,"context_line":"            itmap \u003d connection_properties[\u0027initiator_target_map\u0027]"},{"line_number":119,"context_line":"            new_itmap \u003d dict()"},{"line_number":120,"context_line":"            for init_wwpn in itmap:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_1a6bd8b6","line":117,"range":{"start_line":117,"start_character":10,"end_line":117,"end_character":59},"updated":"2018-06-01 08:31:56.000000000","message":"-1: There was a bug around about some driver passing initiator_target_map value set to None or empty list and thus making os-brick not behave as expected, we should avoid that issue here.\n\nProbably best doing:\n\n if connection_properties.get(\u0027initiator_target_map\u0027):","commit_id":"3839a464a9d07866d01def2da53ebaa5b37c18c2"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"92caa49dd246fd7088604b6bfd566766cafebac1","unresolved":false,"context_lines":[{"line_number":114,"context_line":"            wwpn_lun_map[wwpn] \u003d lun"},{"line_number":115,"context_line":""},{"line_number":116,"context_line":"        # If there is an initiator_target_map we can update it too"},{"line_number":117,"context_line":"        if \u0027initiator_target_map\u0027 in connection_properties:"},{"line_number":118,"context_line":"            itmap \u003d connection_properties[\u0027initiator_target_map\u0027]"},{"line_number":119,"context_line":"            new_itmap \u003d dict()"},{"line_number":120,"context_line":"            for init_wwpn in itmap:"}],"source_content_type":"text/x-python","patch_set":2,"id":"5f7c97a3_c2c6ce68","line":117,"range":{"start_line":117,"start_character":10,"end_line":117,"end_character":59},"in_reply_to":"5f7c97a3_1a6bd8b6","updated":"2018-06-01 17:06:21.000000000","message":"Good to know, will change it.","commit_id":"3839a464a9d07866d01def2da53ebaa5b37c18c2"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"3625490eb4167aa97bb8955c0b4d38720861e5d1","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                targets.append((wwn, luns[0]))"},{"line_number":103,"context_line":"        else:"},{"line_number":104,"context_line":"            # Something is wrong, this shouldn\u0027t happen"},{"line_number":105,"context_line":"            msg \u003d (\"Unable to find potential volume paths for FC device with \""},{"line_number":106,"context_line":"                   + \"lun: %s and wwn: %s\") % (target_lun, target_wwn)"},{"line_number":107,"context_line":"            LOG.error(msg)"},{"line_number":108,"context_line":"            raise exception.VolumePathsNotFound(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_185fd2e4","line":105,"updated":"2018-07-16 16:40:23.000000000","message":"Needs _()","commit_id":"e6d5556dd14350f36b2b7c5e7c63bd5e643426a8"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"bd26a8c8a7d733fbaf0c2470ccbb2af7f1b760f2","unresolved":false,"context_lines":[{"line_number":102,"context_line":"                targets.append((wwn, luns[0]))"},{"line_number":103,"context_line":"        else:"},{"line_number":104,"context_line":"            # Something is wrong, this shouldn\u0027t happen"},{"line_number":105,"context_line":"            msg \u003d (\"Unable to find potential volume paths for FC device with \""},{"line_number":106,"context_line":"                   + \"lun: %s and wwn: %s\") % (target_lun, target_wwn)"},{"line_number":107,"context_line":"            LOG.error(msg)"},{"line_number":108,"context_line":"            raise exception.VolumePathsNotFound(msg)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_9b8bdc20","line":105,"in_reply_to":"5f7c97a3_185fd2e4","updated":"2018-07-16 17:31:59.000000000","message":"Done","commit_id":"e6d5556dd14350f36b2b7c5e7c63bd5e643426a8"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"3625490eb4167aa97bb8955c0b4d38720861e5d1","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        else:"},{"line_number":104,"context_line":"            # Something is wrong, this shouldn\u0027t happen"},{"line_number":105,"context_line":"            msg \u003d (\"Unable to find potential volume paths for FC device with \""},{"line_number":106,"context_line":"                   + \"lun: %s and wwn: %s\") % (target_lun, target_wwn)"},{"line_number":107,"context_line":"            LOG.error(msg)"},{"line_number":108,"context_line":"            raise exception.VolumePathsNotFound(msg)"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_f85bf6f5","line":106,"range":{"start_line":106,"start_character":19,"end_line":106,"end_character":21},"updated":"2018-07-16 16:40:23.000000000","message":"Get rid of unnecessary string concatenation.","commit_id":"e6d5556dd14350f36b2b7c5e7c63bd5e643426a8"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"bd26a8c8a7d733fbaf0c2470ccbb2af7f1b760f2","unresolved":false,"context_lines":[{"line_number":103,"context_line":"        else:"},{"line_number":104,"context_line":"            # Something is wrong, this shouldn\u0027t happen"},{"line_number":105,"context_line":"            msg \u003d (\"Unable to find potential volume paths for FC device with \""},{"line_number":106,"context_line":"                   + \"lun: %s and wwn: %s\") % (target_lun, target_wwn)"},{"line_number":107,"context_line":"            LOG.error(msg)"},{"line_number":108,"context_line":"            raise exception.VolumePathsNotFound(msg)"},{"line_number":109,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_7b904050","line":106,"range":{"start_line":106,"start_character":19,"end_line":106,"end_character":21},"in_reply_to":"5f7c97a3_f85bf6f5","updated":"2018-07-16 17:31:59.000000000","message":"Done","commit_id":"e6d5556dd14350f36b2b7c5e7c63bd5e643426a8"}],"os_brick/tests/initiator/test_linuxfc.py":[{"author":{"_account_id":9535,"name":"Gorka Eguileor","email":"geguileo@redhat.com","username":"Gorka"},"change_message_id":"170f17b3ca804b1ce228351195a2d81ee39447ff","unresolved":false,"context_lines":[{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        hbas, con_props \u003d self.__get_rescan_info(zone_manager\u003dTrue)"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # This HBA is not in the initiator map, so we should not scan it or try"},{"line_number":185,"context_line":"        # to get the channel and target"},{"line_number":186,"context_line":"        hbas.append({\u0027device_path\u0027: (\u0027/sys/devices/pci0000:00/0000:00:02.0/\u0027"},{"line_number":187,"context_line":"                                     \u00270000:04:00.2/host8/fc_host/host8\u0027),"},{"line_number":188,"context_line":"                     \u0027host_device\u0027: \u0027host8\u0027,"},{"line_number":189,"context_line":"                     \u0027node_name\u0027: \u002750014380186af83g\u0027,"},{"line_number":190,"context_line":"                     \u0027port_name\u0027: \u002750014380186af83h\u0027})"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        with mock.patch.object(self.lfc, \u0027_execute\u0027,"},{"line_number":193,"context_line":"                               return_value\u003dNone) as execute_mock, \\"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_41b89c0f","line":190,"range":{"start_line":184,"start_character":0,"end_line":190,"end_character":54},"updated":"2018-05-31 07:57:47.000000000","message":"nit: This is unnecessary for this test.","commit_id":"5a013d1187d3a7372c22152fb2735f5d039ef168"},{"author":{"_account_id":12924,"name":"Patrick East","email":"east.patrick@gmail.com","username":"patrick.east"},"change_message_id":"5afa28064f1a48bdd6e89086baf094fa05af1cf7","unresolved":false,"context_lines":[{"line_number":181,"context_line":""},{"line_number":182,"context_line":"        hbas, con_props \u003d self.__get_rescan_info(zone_manager\u003dTrue)"},{"line_number":183,"context_line":""},{"line_number":184,"context_line":"        # This HBA is not in the initiator map, so we should not scan it or try"},{"line_number":185,"context_line":"        # to get the channel and target"},{"line_number":186,"context_line":"        hbas.append({\u0027device_path\u0027: (\u0027/sys/devices/pci0000:00/0000:00:02.0/\u0027"},{"line_number":187,"context_line":"                                     \u00270000:04:00.2/host8/fc_host/host8\u0027),"},{"line_number":188,"context_line":"                     \u0027host_device\u0027: \u0027host8\u0027,"},{"line_number":189,"context_line":"                     \u0027node_name\u0027: \u002750014380186af83g\u0027,"},{"line_number":190,"context_line":"                     \u0027port_name\u0027: \u002750014380186af83h\u0027})"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"        with mock.patch.object(self.lfc, \u0027_execute\u0027,"},{"line_number":193,"context_line":"                               return_value\u003dNone) as execute_mock, \\"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_54f5aec9","line":190,"range":{"start_line":184,"start_character":0,"end_line":190,"end_character":54},"in_reply_to":"5f7c97a3_41b89c0f","updated":"2018-05-31 22:59:17.000000000","message":"Done","commit_id":"5a013d1187d3a7372c22152fb2735f5d039ef168"}]}
