)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"526d4f96312f519d509eb7d4c5925dfa88eb7ff3","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add HGST volume type Connector"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adds a HGSTConnector class and hooks it up to allow \"HGST\" volume"},{"line_number":10,"context_line":"types to be used.  Depends on the HGST Cinder driver before it can"},{"line_number":11,"context_line":"be used (but the changes are no-ops unless that volume type is"},{"line_number":12,"context_line":"passed in)."},{"line_number":13,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"7a016987_f09a4913","line":10,"updated":"2015-05-29 16:15:52.000000000","message":"I\u0027m not sure why you are mentioning Cinder Volume Types here, as os-brick connectors don\u0027t have anything to do with Cinder volume types.   The os-brick connectors are used to discover volumes showing up on a host.   The connector object is determined based upon the transport type that is returned by the caller, which can be a cinder volume driver.   \n\nAlso, os-brick Connectors are used outside of Cinder as well.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4404cf6471fee3b97b2aae094b94854080664fb6","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Earle F. Philhower, III \u003cearle.philhower.iii@hgst.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-06-02 09:44:09 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add HGST volume type Connector"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adds a HGSTConnector class and hooks it up to allow \"HGST\" volume"},{"line_number":10,"context_line":"types to be used.  Depends on the HGST Cinder driver before it can"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5afe65bd_e09552e4","line":7,"updated":"2015-06-02 16:54:25.000000000","message":"Add HGST volume connector. \n\nusing the term type might be confusing for cinder.","commit_id":"736fe3277a09d4c31876af81de9384c036c02463"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"4404cf6471fee3b97b2aae094b94854080664fb6","unresolved":false,"context_lines":[{"line_number":9,"context_line":"Adds a HGSTConnector class and hooks it up to allow \"HGST\" volume"},{"line_number":10,"context_line":"types to be used.  Depends on the HGST Cinder driver before it can"},{"line_number":11,"context_line":"be used (but the changes are no-ops unless that volume type is"},{"line_number":12,"context_line":"passed in)."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"Added testcase (add\u0027l forthcoming) and reworked to work outside"},{"line_number":15,"context_line":"of Cinder-specific host configurations automatically."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"5afe65bd_20fdaa3a","line":12,"updated":"2015-06-02 16:54:25.000000000","message":"I think it can be quite confusing to continue to use the term volume type here, as that has a very specific meaning in Cinder, which is not what you are trying to portray here.\n\nWhat you are adding is a Connector to handle the HGST volume transport protocol.","commit_id":"736fe3277a09d4c31876af81de9384c036c02463"}],"os_brick/initiator/connector.py":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"526d4f96312f519d509eb7d4c5925dfa88eb7ff3","unresolved":false,"context_lines":[{"line_number":1297,"context_line":"                                            device_scan_attempts,"},{"line_number":1298,"context_line":"                                            *args, **kwargs)"},{"line_number":1299,"context_line":""},{"line_number":1300,"context_line":"    @lockutils.synchronized(\u0027devices\u0027, \u0027cinder-hgst-\u0027)"},{"line_number":1301,"context_line":"    def connect_volume(self, connection_properties):"},{"line_number":1302,"context_line":"        \"\"\"Attach a Space volume to running host."},{"line_number":1303,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_705c194b","line":1300,"updated":"2015-05-29 16:15:52.000000000","message":"1) Do we really need a local file lock here?\n\n2) Please don\u0027t name anything in brick specific to Cinder.   os-brick is used outside of Cinder as well.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"250e14f08b1ed321c87a36c8e05aa41761ea70b1","unresolved":false,"context_lines":[{"line_number":1297,"context_line":"                                            device_scan_attempts,"},{"line_number":1298,"context_line":"                                            *args, **kwargs)"},{"line_number":1299,"context_line":""},{"line_number":1300,"context_line":"    @lockutils.synchronized(\u0027devices\u0027, \u0027cinder-hgst-\u0027)"},{"line_number":1301,"context_line":"    def connect_volume(self, connection_properties):"},{"line_number":1302,"context_line":"        \"\"\"Attach a Space volume to running host."},{"line_number":1303,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_c83fa1b2","line":1300,"in_reply_to":"7a016987_705c194b","updated":"2015-05-29 17:45:48.000000000","message":"Thanks, this is a cut-and-paste error from a while back.  The actual volume connect/disconnect command line utility \"vgc-cluster\" did need to be serialized.  Our current software doesn\u0027t need this so the locks should go.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"526d4f96312f519d509eb7d4c5925dfa88eb7ff3","unresolved":false,"context_lines":[{"line_number":1304,"context_line":"        connection_properties for HGST must include:"},{"line_number":1305,"context_line":"        net - Space network name"},{"line_number":1306,"context_line":"        name - Name of space to attach"},{"line_number":1307,"context_line":"        cinderhost - Cinder host, should never be removed"},{"line_number":1308,"context_line":"        \"\"\""},{"line_number":1309,"context_line":"        LOG.debug(\u0027hgst-connect_volume\u0027)"},{"line_number":1310,"context_line":"        device_info \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_707539c9","line":1307,"updated":"2015-05-29 16:15:52.000000000","message":"Why are we referencing cinder here?   os-brick can/will be used outside of Cinder, ie. Nova, etc.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"250e14f08b1ed321c87a36c8e05aa41761ea70b1","unresolved":false,"context_lines":[{"line_number":1304,"context_line":"        connection_properties for HGST must include:"},{"line_number":1305,"context_line":"        net - Space network name"},{"line_number":1306,"context_line":"        name - Name of space to attach"},{"line_number":1307,"context_line":"        cinderhost - Cinder host, should never be removed"},{"line_number":1308,"context_line":"        \"\"\""},{"line_number":1309,"context_line":"        LOG.debug(\u0027hgst-connect_volume\u0027)"},{"line_number":1310,"context_line":"        device_info \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_abd8df1e","line":1307,"in_reply_to":"7a016987_707539c9","updated":"2015-05-29 17:45:48.000000000","message":"My understanding is that these connection_properties structures are going to come from a driver.VolumeDriver.initialize_connection(), no?  For volumes which need metadata like this one, where there is a mapping from VolumeID\u003c-\u003eLUN name (space limitations in filenames in devfs), isn\u0027t that a requirement?  Maybe I\u0027m using \"Cinder\" where I should be saying \"volumedriver\"?\n\nThe specific reason I\u0027m referencing the cinderhost here is that to minimize clusterwide locking the architecture is to keep all LUNs connected to the union of (requestors, volume host).\n\nGiven the multi-host capability, though, this is a bug and I need to ensure the localhost is also added.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"6cbf79af9a797086b75faaaa0436943284a4885a","unresolved":false,"context_lines":[{"line_number":1304,"context_line":"        connection_properties for HGST must include:"},{"line_number":1305,"context_line":"        net - Space network name"},{"line_number":1306,"context_line":"        name - Name of space to attach"},{"line_number":1307,"context_line":"        cinderhost - Cinder host, should never be removed"},{"line_number":1308,"context_line":"        \"\"\""},{"line_number":1309,"context_line":"        LOG.debug(\u0027hgst-connect_volume\u0027)"},{"line_number":1310,"context_line":"        device_info \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_fd21f99e","line":1307,"in_reply_to":"7a016987_abd8df1e","updated":"2015-05-29 20:36:08.000000000","message":"In all fairness the connection properties currently does come from Cinder.  But, since this is a general purpose pypi library now, we should make params and comments that are more generic.   We shouldn\u0027t rely upon entries being called cinder* or references to cinder specifically.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"526d4f96312f519d509eb7d4c5925dfa88eb7ff3","unresolved":false,"context_lines":[{"line_number":1327,"context_line":"        connection_properties for HGST must include:"},{"line_number":1328,"context_line":"        net - Space network name"},{"line_number":1329,"context_line":"        name - Name of space to detach"},{"line_number":1330,"context_line":"        cinderhost - Cinder host, should never be removed"},{"line_number":1331,"context_line":""},{"line_number":1332,"context_line":"        Because this is always run on the cinderhost, and the Cinder node"},{"line_number":1333,"context_line":"        must always be connected to all created spaces, this is a noop."}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_f01da973","line":1330,"updated":"2015-05-29 16:15:52.000000000","message":"os-brick runs outside of cinder, and is/will be used by Nova and other projects.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"250e14f08b1ed321c87a36c8e05aa41761ea70b1","unresolved":false,"context_lines":[{"line_number":1327,"context_line":"        connection_properties for HGST must include:"},{"line_number":1328,"context_line":"        net - Space network name"},{"line_number":1329,"context_line":"        name - Name of space to detach"},{"line_number":1330,"context_line":"        cinderhost - Cinder host, should never be removed"},{"line_number":1331,"context_line":""},{"line_number":1332,"context_line":"        Because this is always run on the cinderhost, and the Cinder node"},{"line_number":1333,"context_line":"        must always be connected to all created spaces, this is a noop."}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_cbcf9b54","line":1330,"in_reply_to":"7a016987_f01da973","updated":"2015-05-29 17:45:48.000000000","message":"Cinder host needed for reasons detailed above","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"526d4f96312f519d509eb7d4c5925dfa88eb7ff3","unresolved":false,"context_lines":[{"line_number":1330,"context_line":"        cinderhost - Cinder host, should never be removed"},{"line_number":1331,"context_line":""},{"line_number":1332,"context_line":"        Because this is always run on the cinderhost, and the Cinder node"},{"line_number":1333,"context_line":"        must always be connected to all created spaces, this is a noop."},{"line_number":1334,"context_line":"        \"\"\""},{"line_number":1335,"context_line":"        LOG.debug(\u0027hgst-disconnect_volume\u0027)"},{"line_number":1336,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_2b175246","line":1333,"updated":"2015-05-29 16:15:52.000000000","message":"os-brick isn\u0027t just used by Cinder.   what happens if this is code is running on Nova?  does this disconnect_volume code work?","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"250e14f08b1ed321c87a36c8e05aa41761ea70b1","unresolved":false,"context_lines":[{"line_number":1330,"context_line":"        cinderhost - Cinder host, should never be removed"},{"line_number":1331,"context_line":""},{"line_number":1332,"context_line":"        Because this is always run on the cinderhost, and the Cinder node"},{"line_number":1333,"context_line":"        must always be connected to all created spaces, this is a noop."},{"line_number":1334,"context_line":"        \"\"\""},{"line_number":1335,"context_line":"        LOG.debug(\u0027hgst-disconnect_volume\u0027)"},{"line_number":1336,"context_line":"        pass"}],"source_content_type":"text/x-python","patch_set":1,"id":"7a016987_ebd257ff","line":1333,"in_reply_to":"7a016987_2b175246","updated":"2015-05-29 17:45:48.000000000","message":"Nope, given the above discussion I need to remove the local host from the existing hosts here.","commit_id":"08fff5daf93cc29d3cc71a3da9b5309b3433e269"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"ad69c9c031c6a7092245c0daca5fbaf468e6ea13","unresolved":false,"context_lines":[{"line_number":1298,"context_line":"                                            *args, **kwargs)"},{"line_number":1299,"context_line":"        self._vgc_host \u003d None"},{"line_number":1300,"context_line":""},{"line_number":1301,"context_line":"    def _log_pee(self, pee):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.debug(_LE(\"CLI fail: %(code)d\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\") %"}],"source_content_type":"text/x-python","patch_set":6,"id":"5afe65bd_60b1628f","line":1301,"updated":"2015-06-02 16:54:13.000000000","message":"pee ?  lol.   Can we change this name to error, or info, or something other than pee ?\n\nhow about _log_error() ?","commit_id":"9c09ecdd1aeab93713fc0bf42e08b22b3f7b5984"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"2347fd0f0a44ce95d1efe9be519944ff81150282","unresolved":false,"context_lines":[{"line_number":1298,"context_line":"                                            *args, **kwargs)"},{"line_number":1299,"context_line":"        self._vgc_host \u003d None"},{"line_number":1300,"context_line":""},{"line_number":1301,"context_line":"    def _log_pee(self, pee):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.debug(_LE(\"CLI fail: %(code)d\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\") %"}],"source_content_type":"text/x-python","patch_set":6,"id":"5afe65bd_4b21e74c","line":1301,"in_reply_to":"5afe65bd_60b1628f","updated":"2015-06-02 17:06:24.000000000","message":"ProcessExecutionException...P.E.E. Never actually say it the other way before, but yeah I get your point now.  s/pee/err/g","commit_id":"9c09ecdd1aeab93713fc0bf42e08b22b3f7b5984"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"ad69c9c031c6a7092245c0daca5fbaf468e6ea13","unresolved":false,"context_lines":[{"line_number":1300,"context_line":""},{"line_number":1301,"context_line":"    def _log_pee(self, pee):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.debug(_LE(\"CLI fail: %(code)d\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\") %"},{"line_number":1305,"context_line":"                  {\u0027code\u0027: pee.exit_code, \u0027stdout\u0027: pee.stdout,"},{"line_number":1306,"context_line":"                   \u0027stderr\u0027: pee.stderr})"}],"source_content_type":"text/x-python","patch_set":6,"id":"5afe65bd_00562e29","line":1303,"updated":"2015-06-02 16:54:13.000000000","message":"We shouldn\u0027t be doing _LE() for a LOG.debug()\n\nShouldn\u0027t this be a LOG.error() ?","commit_id":"9c09ecdd1aeab93713fc0bf42e08b22b3f7b5984"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"2347fd0f0a44ce95d1efe9be519944ff81150282","unresolved":false,"context_lines":[{"line_number":1300,"context_line":""},{"line_number":1301,"context_line":"    def _log_pee(self, pee):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.debug(_LE(\"CLI fail: %(code)d\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\") %"},{"line_number":1305,"context_line":"                  {\u0027code\u0027: pee.exit_code, \u0027stdout\u0027: pee.stdout,"},{"line_number":1306,"context_line":"                   \u0027stderr\u0027: pee.stderr})"}],"source_content_type":"text/x-python","patch_set":6,"id":"5afe65bd_6bb023f5","line":1303,"in_reply_to":"5afe65bd_00562e29","updated":"2015-06-02 17:06:24.000000000","message":"Yes, mybad, these are errors which should show in the logs as such for a sysadmin w/more info.","commit_id":"9c09ecdd1aeab93713fc0bf42e08b22b3f7b5984"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"198035d9ee1b0f57c9600647d4f3f44880520974","unresolved":false,"context_lines":[{"line_number":1349,"context_line":""},{"line_number":1350,"context_line":"        connection_properties for HGST must include:"},{"line_number":1351,"context_line":"        name - Name of space to attach"},{"line_number":1352,"context_line":"        noremovehost - Host which should never be removed"},{"line_number":1353,"context_line":"        \"\"\""},{"line_number":1354,"context_line":"        device_info \u003d {"},{"line_number":1355,"context_line":"            \u0027type\u0027: \u0027block\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"5afe65bd_8f3122a5","line":1352,"updated":"2015-06-02 20:20:07.000000000","message":"Since these guys are required, shouldn\u0027t we do a test for them, before we try and use them?\n\nIf they aren\u0027t in connection_properties[], then this will bail with a KeyError currently.","commit_id":"c6d4b79c6268a2c301a0548b3799e12a430261e4"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"198035d9ee1b0f57c9600647d4f3f44880520974","unresolved":false,"context_lines":[{"line_number":1376,"context_line":""},{"line_number":1377,"context_line":"        connection_properties for HGST must include:"},{"line_number":1378,"context_line":"        name - Name of space to detach"},{"line_number":1379,"context_line":"        noremovehost - Host which should never be removed"},{"line_number":1380,"context_line":"        \"\"\""},{"line_number":1381,"context_line":"        if connection_properties[\u0027noremovehost\u0027] !\u003d self._hostname():"},{"line_number":1382,"context_line":"            params \u003d [self.VGCCLUSTER, \u0027space-set-apphosts\u0027]"}],"source_content_type":"text/x-python","patch_set":7,"id":"5afe65bd_0f93f25c","line":1379,"updated":"2015-06-02 20:20:07.000000000","message":"same here.","commit_id":"c6d4b79c6268a2c301a0548b3799e12a430261e4"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"0a6f0622cf2283dca8d7b3b2f82ad399d4d18fbd","unresolved":false,"context_lines":[{"line_number":1301,"context_line":"    def _log_cli_err(self, err):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.error(_LE(\"CLI fail: %(code)d\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\") %"},{"line_number":1305,"context_line":"                  {\u0027code\u0027: err.exit_code, \u0027stdout\u0027: err.stdout,"},{"line_number":1306,"context_line":"                   \u0027stderr\u0027: err.stderr})"},{"line_number":1307,"context_line":""}],"source_content_type":"text/x-python","patch_set":10,"id":"5afe65bd_d03e9ad9","line":1304,"updated":"2015-06-02 22:40:32.000000000","message":"replace the % with , after the close of _LE()\n\nLOG.error(_LE(\"......\"),\n                 {stuffs here})\n\nsorry I didn\u0027t catch that earlier.","commit_id":"cf84507b9a12b7c7cfc5617a5d168785826ede5f"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"3fe4c22b03610de066f28b28a4a80fb92c12d2ee","unresolved":false,"context_lines":[{"line_number":1301,"context_line":"    def _log_cli_err(self, err):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.error(_LE(\"CLI fail: %(code)d\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\") %"},{"line_number":1305,"context_line":"                  {\u0027code\u0027: err.exit_code, \u0027stdout\u0027: err.stdout,"},{"line_number":1306,"context_line":"                   \u0027stderr\u0027: err.stderr})"},{"line_number":1307,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"5afe65bd_65df026a","line":1304,"updated":"2015-06-03 15:22:17.000000000","message":"still have that % at the end of this line instead of the ,","commit_id":"e054414f74ade568e62b01e612d8533caa927969"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"360fe7f442931895f3a72ff92b6aa1daf19d906b","unresolved":false,"context_lines":[{"line_number":1301,"context_line":"    def _log_cli_err(self, err):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.error(_LE(\"CLI fail: %(code)d\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\") %"},{"line_number":1305,"context_line":"                  {\u0027code\u0027: err.exit_code, \u0027stdout\u0027: err.stdout,"},{"line_number":1306,"context_line":"                   \u0027stderr\u0027: err.stderr})"},{"line_number":1307,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"5afe65bd_9a93784f","line":1304,"in_reply_to":"5afe65bd_65df026a","updated":"2015-06-03 16:58:26.000000000","message":"Sorry for this.  I think commit 11 got out-of-sync somehow.  It looks to be identical to the prior upload (which should have caused gerrit to barf in any case).  My local GIT is showing the correct update (I swapped the comma and added the .cmd as well):\nroot@tm23:/opt/stack/os-brick_hgst# git fetch\nroot@tm23:/opt/stack/os-brick_hgst# git rebase origin/master\nCurrent branch bug/1459853 is up to date.\nroot@tm23:/opt/stack/os-brick_hgst# git status\nOn branch bug/1459853\nnothing to commit, working directory clean\nroot@tm23:/opt/stack/os-brick_hgst# head -1310 os_brick/initiator/connector.py | tail -10\n    def _log_cli_err(self, err):\n        \"\"\"Dumps the full command output to a logfile in error cases\"\"\"\n        LOG.error(_LE(\"CLI fail: \u0027%(cmd)s\u0027 \u003d %(code)s\\nout: %(stdout)s\\n\"\n                      \"err: %(stderr)s\"),\n                  {\u0027cmd\u0027: str(err.cmd), \u0027code\u0027: str(err.exit_code),\n                   \u0027stdout\u0027: str(err.stdout), \u0027stderr\u0027: str(err.stderr)})","commit_id":"e054414f74ade568e62b01e612d8533caa927969"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"c8a6c709fe1a086c09b01c34872455fbd7fb2fa8","unresolved":false,"context_lines":[{"line_number":1301,"context_line":"    def _log_cli_err(self, err):"},{"line_number":1302,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1303,"context_line":"        LOG.error(_LE(\"CLI fail: \u0027%(cmd)s\u0027 \u003d %(code)s\\nout: %(stdout)s\\n\""},{"line_number":1304,"context_line":"                      \"err: %(stderr)s\"),"},{"line_number":1305,"context_line":"                  {\u0027cmd\u0027: str(err.cmd), \u0027code\u0027: str(err.exit_code),"},{"line_number":1306,"context_line":"                   \u0027stdout\u0027: str(err.stdout), \u0027stderr\u0027: str(err.stderr)})"},{"line_number":1307,"context_line":""}],"source_content_type":"text/x-python","patch_set":12,"id":"5afe65bd_f04a8dc4","line":1304,"updated":"2015-06-03 17:42:11.000000000","message":"OK, looks like a redo of \"git review\" got things cleared up here.  Introduction by fire to GIT for me.","commit_id":"cede75e1ae7327af1acdf032486c776e36c97f3a"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"6c629b4fe43c7a0520692547eed90638c617e5b6","unresolved":false,"context_lines":[{"line_number":1306,"context_line":"        self._vgc_host \u003d None"},{"line_number":1307,"context_line":""},{"line_number":1308,"context_line":"    def _log_cli_err(self, err):"},{"line_number":1309,"context_line":"        \"\"\"Dumps the full command output to a logfile in error cases\"\"\""},{"line_number":1310,"context_line":"        LOG.error(_LE(\"CLI fail: \u0027%(cmd)s\u0027 \u003d %(code)s\\nout: %(stdout)s\\n\""},{"line_number":1311,"context_line":"                      \"err: %(stderr)s\"),"},{"line_number":1312,"context_line":"                  {\u0027cmd\u0027: str(err.cmd), \u0027code\u0027: str(err.exit_code),"}],"source_content_type":"text/x-python","patch_set":18,"id":"3afb71cf_e6dededb","line":1309,"updated":"2015-06-10 22:01:30.000000000","message":"Docstring 1-lines should have terminal periods.","commit_id":"541fd0cd50cbb87a9e077d9a2a79f58bd11d46ad"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"6c629b4fe43c7a0520692547eed90638c617e5b6","unresolved":false,"context_lines":[{"line_number":1310,"context_line":"        LOG.error(_LE(\"CLI fail: \u0027%(cmd)s\u0027 \u003d %(code)s\\nout: %(stdout)s\\n\""},{"line_number":1311,"context_line":"                      \"err: %(stderr)s\"),"},{"line_number":1312,"context_line":"                  {\u0027cmd\u0027: str(err.cmd), \u0027code\u0027: str(err.exit_code),"},{"line_number":1313,"context_line":"                   \u0027stdout\u0027: str(err.stdout), \u0027stderr\u0027: str(err.stderr)})"},{"line_number":1314,"context_line":""},{"line_number":1315,"context_line":"    def _find_vgc_host(self):"},{"line_number":1316,"context_line":"        \"\"\"Finds vgc-cluster hostname for this box\"\"\""}],"source_content_type":"text/x-python","patch_set":18,"id":"3afb71cf_c6d9a2f4","line":1313,"updated":"2015-06-10 22:01:30.000000000","message":"Should not str() these, the logger can handle appropriately.","commit_id":"541fd0cd50cbb87a9e077d9a2a79f58bd11d46ad"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"454885f7da99e8d7ac9f63750671008d957e4e54","unresolved":false,"context_lines":[{"line_number":1367,"context_line":"        \"\"\"Finds vgc-cluster hostname for this box.\"\"\""},{"line_number":1368,"context_line":"        params \u003d [self.VGCCLUSTER, \"domain-list\", \"-1\"]"},{"line_number":1369,"context_line":"        try:"},{"line_number":1370,"context_line":"            out, unused \u003d self._execute(*params, run_as_root\u003dTrue,"},{"line_number":1371,"context_line":"                                        root_helper\u003dself._root_helper)"},{"line_number":1372,"context_line":"        except putils.ProcessExecutionError as err:"},{"line_number":1373,"context_line":"            self._log_cli_err(err)"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_12bcbfda","line":1370,"updated":"2015-06-17 22:36:59.000000000","message":"So, in one of the other vendor specific connector reviews, I realized that vendor specific command line apps are being used which are not listed in Cinder and Nova\u0027s rootwrap filters.   So, once Nova and Cinder use this vendor specific connector, I believe they won\u0027t work out of the box.   \n\nI suppose we can deal with that later, but it\u0027s something that we need to talk about in channel.","commit_id":"dc4628f972ce44ad0e63426b31f012e838760a4a"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"7c7c1686f050258d3ce88a6e901f464e144d5924","unresolved":false,"context_lines":[{"line_number":1431,"context_line":"            self._log_cli_err(err)"},{"line_number":1432,"context_line":"            msg \u003d (_(\"Unable to set apphost for space %s\") % volname)"},{"line_number":1433,"context_line":"            raise exception.BrickException(message\u003dmsg)"},{"line_number":1434,"context_line":""},{"line_number":1435,"context_line":"        return device_info"},{"line_number":1436,"context_line":""},{"line_number":1437,"context_line":"    def disconnect_volume(self, connection_properties, device_info):"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_869ad56c","line":1434,"updated":"2015-06-17 21:01:22.000000000","message":"Do you need to check if the device path exists before returning?  Is it expected to be available right after you run the command?","commit_id":"dc4628f972ce44ad0e63426b31f012e838760a4a"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"3f34f3240203c68fab08e5f5aaf9511b098c002b","unresolved":false,"context_lines":[{"line_number":1431,"context_line":"            self._log_cli_err(err)"},{"line_number":1432,"context_line":"            msg \u003d (_(\"Unable to set apphost for space %s\") % volname)"},{"line_number":1433,"context_line":"            raise exception.BrickException(message\u003dmsg)"},{"line_number":1434,"context_line":""},{"line_number":1435,"context_line":"        return device_info"},{"line_number":1436,"context_line":""},{"line_number":1437,"context_line":"    def disconnect_volume(self, connection_properties, device_info):"}],"source_content_type":"text/x-python","patch_set":20,"id":"fa32b979_864975b9","line":1434,"in_reply_to":"fa32b979_869ad56c","updated":"2015-06-17 21:07:26.000000000","message":"The CLI contract for the \"set-apphosts\" command is that when it returns the devnode and all associated work behind-the-scenes is done and you can immediately use it.  So we should be good.  If the CLI can\u0027t make the devnode for any reason it\u0027ll return an error and be caught directly above.","commit_id":"dc4628f972ce44ad0e63426b31f012e838760a4a"}],"os_brick/tests/initiator/test_connector.py":[{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"198035d9ee1b0f57c9600647d4f3f44880520974","unresolved":false,"context_lines":[{"line_number":91,"context_line":"    def test_brick_connector_properties_override_hostname(self):"},{"line_number":92,"context_line":"        override_host \u003d \u0027myhostname\u0027"},{"line_number":93,"context_line":"        self._test_brick_get_connector_properties(False, False, False,"},{"line_number":94,"context_line":"                                                  host\u003doverride_host)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"class ConnectorTestCase(base.TestCase):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5afe65bd_2f7d8e1c","side":"PARENT","line":94,"updated":"2015-06-02 20:20:07.000000000","message":"This needs to stay in here. Please don\u0027t remove this test.","commit_id":"13b842ca4a7c199624c35cda26539ba896d2ee1a"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"198035d9ee1b0f57c9600647d4f3f44880520974","unresolved":false,"context_lines":[{"line_number":724,"context_line":""},{"line_number":725,"context_line":"            # we don\u0027t care what the log message is, we just want to make sure"},{"line_number":726,"context_line":"            # our stub method is called which asserts the password is scrubbed"},{"line_number":727,"context_line":"            self.assertTrue(debug_mock.called)"},{"line_number":728,"context_line":""},{"line_number":729,"context_line":""},{"line_number":730,"context_line":"class FibreChannelConnectorTestCase(ConnectorTestCase):"}],"source_content_type":"text/x-python","patch_set":7,"id":"5afe65bd_af885e23","side":"PARENT","line":727,"updated":"2015-06-02 20:20:07.000000000","message":"This needs to stay in here.   Please don\u0027t remove this test.","commit_id":"13b842ca4a7c199624c35cda26539ba896d2ee1a"},{"author":{"_account_id":5997,"name":"Walt","display_name":"Hemna","email":"waboring@hemna.com","username":"walter-boring","status":"SAP"},"change_message_id":"198035d9ee1b0f57c9600647d4f3f44880520974","unresolved":false,"context_lines":[{"line_number":108,"context_line":"        self.connector \u003d connector.InitiatorConnector(None)"},{"line_number":109,"context_line":"        self.assertRaises(NotImplementedError,"},{"line_number":110,"context_line":"                          self.connector.disconnect_volume, None, None)"},{"line_number":111,"context_line":""},{"line_number":112,"context_line":"    def test_factory(self):"},{"line_number":113,"context_line":"        obj \u003d connector.InitiatorConnector.factory(\u0027iscsi\u0027, None)"},{"line_number":114,"context_line":"        self.assertEqual(obj.__class__.__name__, \"ISCSIConnector\")"}],"source_content_type":"text/x-python","patch_set":7,"id":"5afe65bd_6fb026de","line":111,"updated":"2015-06-02 20:20:07.000000000","message":"Need to add a test here for the new HGST connector","commit_id":"c6d4b79c6268a2c301a0548b3799e12a430261e4"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"c082a974dc3d2ee1a08950e82e342340be83db83","unresolved":false,"context_lines":[{"line_number":1291,"context_line":"        self._fail_domain_list \u003d False"},{"line_number":1292,"context_line":"        cprops \u003d {\u0027name\u0027: \u0027space\u0027, \u0027noremovehost\u0027: \u0027stor1\u0027}"},{"line_number":1293,"context_line":"        dev_info \u003d self.connector.connect_volume(cprops)"},{"line_number":1294,"context_line":"        self.assertEqual(dev_info[\u0027type\u0027], \u0027block\u0027)"},{"line_number":1295,"context_line":"        self.assertEqual(dev_info[\u0027device\u0027], \u0027space\u0027)"},{"line_number":1296,"context_line":"        self.assertEqual(dev_info[\u0027path\u0027], \u0027/dev/space\u0027)"},{"line_number":1297,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_e475e797","line":1294,"updated":"2015-06-17 16:56:52.000000000","message":"Should be (EXPECTED, ACTUAL)","commit_id":"bc6af02184db9e0c0df3f893509e474533d52054"},{"author":{"_account_id":15903,"name":"Earle F. Philhower, III","email":"earle.philhower.iii@hgst.com","username":"earlephilhower"},"change_message_id":"889e3259b85ef955ea193e732aee8ff4b7418d8f","unresolved":false,"context_lines":[{"line_number":1291,"context_line":"        self._fail_domain_list \u003d False"},{"line_number":1292,"context_line":"        cprops \u003d {\u0027name\u0027: \u0027space\u0027, \u0027noremovehost\u0027: \u0027stor1\u0027}"},{"line_number":1293,"context_line":"        dev_info \u003d self.connector.connect_volume(cprops)"},{"line_number":1294,"context_line":"        self.assertEqual(dev_info[\u0027type\u0027], \u0027block\u0027)"},{"line_number":1295,"context_line":"        self.assertEqual(dev_info[\u0027device\u0027], \u0027space\u0027)"},{"line_number":1296,"context_line":"        self.assertEqual(dev_info[\u0027path\u0027], \u0027/dev/space\u0027)"},{"line_number":1297,"context_line":""}],"source_content_type":"text/x-python","patch_set":19,"id":"fa32b979_c579bac9","line":1294,"in_reply_to":"fa32b979_e475e797","updated":"2015-06-17 19:02:38.000000000","message":"I always mix expected/actual order, sorry!  Updating this and the other instances on next patch.","commit_id":"bc6af02184db9e0c0df3f893509e474533d52054"}]}
