)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":28714,"name":"Adrian Chiris","email":"adrianc@nvidia.com","username":"adrianc"},"change_message_id":"e5beb506d91e3c48370e9281cb2754928ed32108","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hamdy Khader \u003chamdyk@mellanox.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-09-13 14:43:36 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Retry executing command \"nvme list\" when fail"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I6b70140be7023770b83603de723d6d2de3ebb747"},{"line_number":10,"context_line":"Closes-Bug: #1792313"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f79a3b5_e4d58a44","line":7,"updated":"2018-09-16 09:01:28.000000000","message":"please elaborate on what this commit is addressing and how it addresses the issue.","commit_id":"02be88d833b0bd745c10303055613de8a975b0e6"},{"author":{"_account_id":22948,"name":"Hamdy Khader","email":"hamdyk@mellanox.com","username":"hamdyk"},"change_message_id":"4a3df32c534293b1823be88551dc7b3cf1ddf971","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hamdy Khader \u003chamdyk@mellanox.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2018-09-13 14:43:36 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Retry executing command \"nvme list\" when fail"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change-Id: I6b70140be7023770b83603de723d6d2de3ebb747"},{"line_number":10,"context_line":"Closes-Bug: #1792313"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3f79a3b5_70833704","line":7,"in_reply_to":"3f79a3b5_e4d58a44","updated":"2018-09-19 09:23:44.000000000","message":"Done","commit_id":"02be88d833b0bd745c10303055613de8a975b0e6"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0133ea259d09f60d43ff39db27a4b69a3c7a9db3","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Only one NVMe connection can be active on the same Compute node, when"},{"line_number":10,"context_line":"initiator side has more than one connection then new connection is made,"},{"line_number":11,"context_line":"results of the new connected device is not instantaneous. "},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing this issue requires retry and sleep when executing command"},{"line_number":14,"context_line":"\"nvme list\" to retrieve the newly connected device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3f79a3b5_2b51d462","line":11,"range":{"start_line":11,"start_character":57,"end_line":11,"end_character":58},"updated":"2018-09-19 18:17:46.000000000","message":"remove whitespace","commit_id":"61a430ea0ecd203e67bc40d80cfdc1773b064443"},{"author":{"_account_id":22948,"name":"Hamdy Khader","email":"hamdyk@mellanox.com","username":"hamdyk"},"change_message_id":"0dcfc9c8e2ca1bf044d2061e4c9bcc081d3b7f25","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Only one NVMe connection can be active on the same Compute node, when"},{"line_number":10,"context_line":"initiator side has more than one connection then new connection is made,"},{"line_number":11,"context_line":"results of the new connected device is not instantaneous. "},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing this issue requires retry and sleep when executing command"},{"line_number":14,"context_line":"\"nvme list\" to retrieve the newly connected device."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3f79a3b5_f4360de9","line":11,"range":{"start_line":11,"start_character":57,"end_line":11,"end_character":58},"in_reply_to":"3f79a3b5_2b51d462","updated":"2018-09-23 11:09:06.000000000","message":"Done","commit_id":"61a430ea0ecd203e67bc40d80cfdc1773b064443"}],"os_brick/initiator/connectors/nvme.py":[{"author":{"_account_id":28714,"name":"Adrian Chiris","email":"adrianc@nvidia.com","username":"adrianc"},"change_message_id":"e5beb506d91e3c48370e9281cb2754928ed32108","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                LOG.warning("},{"line_number":77,"context_line":"                    \"Failed to list available NVMe connected controllers, \""},{"line_number":78,"context_line":"                    \"retrying.\")"},{"line_number":79,"context_line":"                time.sleep(retry ** 2)"},{"line_number":80,"context_line":"        else:"},{"line_number":81,"context_line":"            raise exception.CommandExecutionFailed("},{"line_number":82,"context_line":"                \"Failed to retrieve available connected NVMe controllers \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_2489426e","line":79,"updated":"2018-09-16 09:01:28.000000000","message":"why is exponential sleep required ?\n\nNVMeConnector may be initiated with any value of device_scan_attempts\n\ne.g a value of 10 will trigger a sleep of 17 minutes at the last iteration.","commit_id":"02be88d833b0bd745c10303055613de8a975b0e6"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0133ea259d09f60d43ff39db27a4b69a3c7a9db3","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                LOG.warning("},{"line_number":77,"context_line":"                    \"Failed to list available NVMe connected controllers, \""},{"line_number":78,"context_line":"                    \"retrying.\")"},{"line_number":79,"context_line":"                time.sleep(retry ** 2)"},{"line_number":80,"context_line":"        else:"},{"line_number":81,"context_line":"            raise exception.CommandExecutionFailed("},{"line_number":82,"context_line":"                \"Failed to retrieve available connected NVMe controllers \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_ab50840b","line":79,"in_reply_to":"3f79a3b5_2489426e","updated":"2018-09-19 18:17:46.000000000","message":"its retry ** 2 and not retry ** 3, so the last iteration will provide a sleep of 1 min 40 secs.","commit_id":"02be88d833b0bd745c10303055613de8a975b0e6"},{"author":{"_account_id":22948,"name":"Hamdy Khader","email":"hamdyk@mellanox.com","username":"hamdyk"},"change_message_id":"4a3df32c534293b1823be88551dc7b3cf1ddf971","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                LOG.warning("},{"line_number":77,"context_line":"                    \"Failed to list available NVMe connected controllers, \""},{"line_number":78,"context_line":"                    \"retrying.\")"},{"line_number":79,"context_line":"                time.sleep(retry ** 2)"},{"line_number":80,"context_line":"        else:"},{"line_number":81,"context_line":"            raise exception.CommandExecutionFailed("},{"line_number":82,"context_line":"                \"Failed to retrieve available connected NVMe controllers \""}],"source_content_type":"text/x-python","patch_set":1,"id":"3f79a3b5_f03f471f","line":79,"in_reply_to":"3f79a3b5_2489426e","updated":"2018-09-19 09:23:44.000000000","message":"retry iteration is highly likely to be low \u003c3 that would give the exponential sleep the advantage over linear.\nBut you have a point if we assume the worst cast scenario.\nWe\u0027ll think about it more and get back to you.","commit_id":"02be88d833b0bd745c10303055613de8a975b0e6"},{"author":{"_account_id":27615,"name":"Rajat Dhasmana","email":"rajatdhasmana@gmail.com","username":"whoami-rajat"},"change_message_id":"0133ea259d09f60d43ff39db27a4b69a3c7a9db3","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        nvme_devices \u003d []"},{"line_number":60,"context_line":"        pattern \u003d r\u0027/dev/nvme[0-9]n[0-9]\u0027"},{"line_number":61,"context_line":"        cmd \u003d [\u0027nvme\u0027, \u0027list\u0027]"},{"line_number":62,"context_line":"        for retry in range(1, self.device_scan_attempts + 1):"},{"line_number":63,"context_line":"            try:"},{"line_number":64,"context_line":"                (out, err) \u003d self._execute(*cmd,"},{"line_number":65,"context_line":"                                           root_helper\u003dself._root_helper,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_e952fa11","line":62,"updated":"2018-09-19 18:17:46.000000000","message":"any specific reason for moving the retries from the calling point to here? this func is being called from other place in code which doesn\u0027t seem to require the retries.","commit_id":"61a430ea0ecd203e67bc40d80cfdc1773b064443"},{"author":{"_account_id":22948,"name":"Hamdy Khader","email":"hamdyk@mellanox.com","username":"hamdyk"},"change_message_id":"1eff7a1f47ef9d5821c5e9dee788ce23e16500bd","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        nvme_devices \u003d []"},{"line_number":60,"context_line":"        pattern \u003d r\u0027/dev/nvme[0-9]n[0-9]\u0027"},{"line_number":61,"context_line":"        cmd \u003d [\u0027nvme\u0027, \u0027list\u0027]"},{"line_number":62,"context_line":"        for retry in range(1, self.device_scan_attempts + 1):"},{"line_number":63,"context_line":"            try:"},{"line_number":64,"context_line":"                (out, err) \u003d self._execute(*cmd,"},{"line_number":65,"context_line":"                                           root_helper\u003dself._root_helper,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3f79a3b5_ad8163c4","line":62,"in_reply_to":"3f79a3b5_e952fa11","updated":"2018-09-20 07:19:40.000000000","message":"the point is that we need to retry if self._execute raise exception, the old code doesn\u0027t do that.","commit_id":"61a430ea0ecd203e67bc40d80cfdc1773b064443"},{"author":{"_account_id":11904,"name":"Sean McGinnis","email":"sean.mcginnis@gmail.com","username":"SeanM"},"change_message_id":"0db208fc2f037b55b1465bfb8cf98e46148a78c8","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                time.sleep(retry ** 2)"},{"line_number":80,"context_line":"        else:"},{"line_number":81,"context_line":"            raise exception.CommandExecutionFailed("},{"line_number":82,"context_line":"                \"Failed to retrieve available connected NVMe controllers \""},{"line_number":83,"context_line":"                \"when running nvme list. Increasing num_nvme_discover_tries \""},{"line_number":84,"context_line":"                \"might fix this issue\")"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_de2c8b4b","line":82,"range":{"start_line":82,"start_character":16,"end_line":82,"end_character":17},"updated":"2018-10-02 21:20:43.000000000","message":"Please wrap the string in _() and add:\n\nfrom os_brick.i18n import _\n\nso that the exception message gets translated.","commit_id":"2419028ac573cccd0e6504ecf8b135fc42138f82"},{"author":{"_account_id":22948,"name":"Hamdy Khader","email":"hamdyk@mellanox.com","username":"hamdyk"},"change_message_id":"2ec7f1d558d3fdd8f0f219f5b2cf1ff82ad58778","unresolved":false,"context_lines":[{"line_number":79,"context_line":"                time.sleep(retry ** 2)"},{"line_number":80,"context_line":"        else:"},{"line_number":81,"context_line":"            raise exception.CommandExecutionFailed("},{"line_number":82,"context_line":"                \"Failed to retrieve available connected NVMe controllers \""},{"line_number":83,"context_line":"                \"when running nvme list. Increasing num_nvme_discover_tries \""},{"line_number":84,"context_line":"                \"might fix this issue\")"},{"line_number":85,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"3f79a3b5_b18c3cd8","line":82,"range":{"start_line":82,"start_character":16,"end_line":82,"end_character":17},"in_reply_to":"3f79a3b5_de2c8b4b","updated":"2018-10-04 08:20:01.000000000","message":"Done","commit_id":"2419028ac573cccd0e6504ecf8b135fc42138f82"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"ad7f80d3955b6771b6156753c007976aa5cab32e","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        else:"},{"line_number":82,"context_line":"            msg \u003d _(\"Failed to retrieve available connected NVMe controllers \""},{"line_number":83,"context_line":"                    \"when running nvme list. \""},{"line_number":84,"context_line":"                    \"Increasing num_nvme_discover_tries might fix this issue\")"},{"line_number":85,"context_line":"            raise exception.CommandExecutionFailed(message\u003dmsg)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    @utils.trace"}],"source_content_type":"text/x-python","patch_set":6,"id":"3f79a3b5_18b2ec96","line":84,"range":{"start_line":84,"start_character":75,"end_line":84,"end_character":77},"updated":"2018-10-04 14:05:05.000000000","message":"Suggest \u0027.\u0027 here.","commit_id":"256f989023e2dfa9517b43c5c9aa09fc19f29d3e"},{"author":{"_account_id":7198,"name":"Jay Bryant","email":"jungleboyj@electronicjungle.net","username":"jsbryant"},"change_message_id":"ad7f80d3955b6771b6156753c007976aa5cab32e","unresolved":false,"context_lines":[{"line_number":60,"context_line":"        nvme_devices \u003d []"},{"line_number":61,"context_line":"        pattern \u003d r\u0027/dev/nvme[0-9]n[0-9]\u0027"},{"line_number":62,"context_line":"        cmd \u003d [\u0027nvme\u0027, \u0027list\u0027]"},{"line_number":63,"context_line":"        for retry in range(1, self.device_scan_attempts + 1):"},{"line_number":64,"context_line":"            try:"},{"line_number":65,"context_line":"                (out, err) \u003d self._execute(*cmd,"},{"line_number":66,"context_line":"                                           root_helper\u003dself._root_helper,"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_33b3490b","line":63,"updated":"2018-10-04 14:05:05.000000000","message":"Fixed a nit and agree with Sean\u0027s comment that this could use a retry decorator.","commit_id":"de57bbbdc2cdcebbd617c33e95ebfc7152aa7af6"},{"author":{"_account_id":4523,"name":"Eric Harney","email":"eharney@redhat.com","username":"eharney"},"change_message_id":"c2eab546bf3108b6f86b6076a7fcae0e46106f91","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        else:"},{"line_number":82,"context_line":"            msg \u003d _(\"Failed to retrieve available connected NVMe controllers \""},{"line_number":83,"context_line":"                    \"when running nvme list. \""},{"line_number":84,"context_line":"                    \"Increasing num_nvme_discover_tries might fix this issue.\")"},{"line_number":85,"context_line":"            raise exception.CommandExecutionFailed(message\u003dmsg)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    @utils.trace"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_22adf231","line":84,"updated":"2018-10-08 18:38:20.000000000","message":"This is a fairly confusing message to issue from os-brick, since num_nvme_discover_tries is only in Nova and not applicable to other attach situations inside of Cinder (or Glance using the Cinder driver).  I\u0027m not sure we should advise this here.","commit_id":"de57bbbdc2cdcebbd617c33e95ebfc7152aa7af6"},{"author":{"_account_id":22948,"name":"Hamdy Khader","email":"hamdyk@mellanox.com","username":"hamdyk"},"change_message_id":"f64bffb1074b413d58675457fe3363dcf6e56bf9","unresolved":false,"context_lines":[{"line_number":81,"context_line":"        else:"},{"line_number":82,"context_line":"            msg \u003d _(\"Failed to retrieve available connected NVMe controllers \""},{"line_number":83,"context_line":"                    \"when running nvme list. \""},{"line_number":84,"context_line":"                    \"Increasing num_nvme_discover_tries might fix this issue.\")"},{"line_number":85,"context_line":"            raise exception.CommandExecutionFailed(message\u003dmsg)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    @utils.trace"}],"source_content_type":"text/x-python","patch_set":7,"id":"3f79a3b5_4ee84d7a","line":84,"in_reply_to":"3f79a3b5_22adf231","updated":"2018-10-09 09:20:58.000000000","message":"You are right, removed.","commit_id":"de57bbbdc2cdcebbd617c33e95ebfc7152aa7af6"}]}
