)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ab3b550bbce8c19c038e24f85ff2926fdd12bfc5","unresolved":false,"context_lines":[{"line_number":7,"context_line":"HNAS: Fix concurrency error when managing snapshots"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"During manage snapshot operation, if HNAS is already running a command"},{"line_number":10,"context_line":"\u0027path-to-object\u0027 it may cause concurrency issues, since HNAS can run only one"},{"line_number":11,"context_line":"\u0027path-to-object\u0027 command at a time."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing it by adding a retry when this message is returned."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a461143_41b41281","line":10,"range":{"start_line":10,"start_character":69,"end_line":10,"end_character":77},"updated":"2017-01-30 18:54:14.000000000","message":"don\u0027t go beyond 79","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ab3b550bbce8c19c038e24f85ff2926fdd12bfc5","unresolved":false,"context_lines":[{"line_number":7,"context_line":"HNAS: Fix concurrency error when managing snapshots"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"During manage snapshot operation, if HNAS is already running a command"},{"line_number":10,"context_line":"\u0027path-to-object\u0027 it may cause concurrency issues, since HNAS can run only one"},{"line_number":11,"context_line":"\u0027path-to-object\u0027 command at a time."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing it by adding a retry when this message is returned."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a461143_c1a80223","line":10,"range":{"start_line":10,"start_character":1,"end_line":10,"end_character":15},"updated":"2017-01-30 18:54:14.000000000","message":"path-to-object-number","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":7,"context_line":"HNAS: Fix concurrency error when managing snapshots"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"During manage snapshot operation, if HNAS is already running a command"},{"line_number":10,"context_line":"\u0027path-to-object\u0027 it may cause concurrency issues, since HNAS can run only one"},{"line_number":11,"context_line":"\u0027path-to-object\u0027 command at a time."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing it by adding a retry when this message is returned."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a461143_c5b5557e","line":10,"range":{"start_line":10,"start_character":69,"end_line":10,"end_character":77},"in_reply_to":"3a461143_41b41281","updated":"2017-01-31 11:55:03.000000000","message":"actually, the red line indicates 72 characters here. So \"dont go beyond 71\" :D","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":7,"context_line":"HNAS: Fix concurrency error when managing snapshots"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"During manage snapshot operation, if HNAS is already running a command"},{"line_number":10,"context_line":"\u0027path-to-object\u0027 it may cause concurrency issues, since HNAS can run only one"},{"line_number":11,"context_line":"\u0027path-to-object\u0027 command at a time."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing it by adding a retry when this message is returned."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a461143_05b4bd7d","line":10,"range":{"start_line":10,"start_character":1,"end_line":10,"end_character":15},"in_reply_to":"3a461143_c1a80223","updated":"2017-01-31 11:55:03.000000000","message":"Done","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ab3b550bbce8c19c038e24f85ff2926fdd12bfc5","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"During manage snapshot operation, if HNAS is already running a command"},{"line_number":10,"context_line":"\u0027path-to-object\u0027 it may cause concurrency issues, since HNAS can run only one"},{"line_number":11,"context_line":"\u0027path-to-object\u0027 command at a time."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing it by adding a retry when this message is returned."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a461143_0165aa1c","line":11,"range":{"start_line":11,"start_character":1,"end_line":11,"end_character":15},"updated":"2017-01-30 18:54:14.000000000","message":"path-to-object-number","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":8,"context_line":""},{"line_number":9,"context_line":"During manage snapshot operation, if HNAS is already running a command"},{"line_number":10,"context_line":"\u0027path-to-object\u0027 it may cause concurrency issues, since HNAS can run only one"},{"line_number":11,"context_line":"\u0027path-to-object\u0027 command at a time."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Fixing it by adding a retry when this message is returned."},{"line_number":14,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"3a461143_25aff92a","line":11,"range":{"start_line":11,"start_character":1,"end_line":11,"end_character":15},"in_reply_to":"3a461143_0165aa1c","updated":"2017-01-31 11:55:03.000000000","message":"Done","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"}],"manila/exception.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"45df72f89fc9e50432bc925cae57eecb88809df7","unresolved":false,"context_lines":[{"line_number":813,"context_line":""},{"line_number":814,"context_line":""},{"line_number":815,"context_line":"class HNASSSCIsBusy(ManilaException):"},{"line_number":816,"context_line":"    message \u003d _(\"HNAS SSC is busy to execute a command: %(msg)s\")"},{"line_number":817,"context_line":""},{"line_number":818,"context_line":""},{"line_number":819,"context_line":"class HNASItemNotFoundException(StorageResourceNotFound):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_b553346a","line":816,"range":{"start_line":816,"start_character":34,"end_line":816,"end_character":47},"updated":"2017-01-30 17:19:26.000000000","message":"wording seems a little off. Maybe s/to execute a/and cannot execute the/  (mine wording isn\u0027t great either  :(  ).","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ab3b550bbce8c19c038e24f85ff2926fdd12bfc5","unresolved":false,"context_lines":[{"line_number":813,"context_line":""},{"line_number":814,"context_line":""},{"line_number":815,"context_line":"class HNASSSCIsBusy(ManilaException):"},{"line_number":816,"context_line":"    message \u003d _(\"HNAS SSC is busy to execute a command: %(msg)s\")"},{"line_number":817,"context_line":""},{"line_number":818,"context_line":""},{"line_number":819,"context_line":"class HNASItemNotFoundException(StorageResourceNotFound):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_e1f7be56","line":816,"range":{"start_line":816,"start_character":34,"end_line":816,"end_character":47},"in_reply_to":"3a461143_b553346a","updated":"2017-01-30 18:54:14.000000000","message":"+1 looks good with \"... is busy and cannot execute the command\"","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":813,"context_line":""},{"line_number":814,"context_line":""},{"line_number":815,"context_line":"class HNASSSCIsBusy(ManilaException):"},{"line_number":816,"context_line":"    message \u003d _(\"HNAS SSC is busy to execute a command: %(msg)s\")"},{"line_number":817,"context_line":""},{"line_number":818,"context_line":""},{"line_number":819,"context_line":"class HNASItemNotFoundException(StorageResourceNotFound):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_eaf5c0ec","line":816,"range":{"start_line":816,"start_character":34,"end_line":816,"end_character":47},"in_reply_to":"3a461143_e1f7be56","updated":"2017-01-31 11:55:03.000000000","message":"Updated! :)","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"}],"manila/share/drivers/hitachi/hnas/ssh.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"45df72f89fc9e50432bc925cae57eecb88809df7","unresolved":false,"context_lines":[{"line_number":309,"context_line":"    def delete_directory(self, path):"},{"line_number":310,"context_line":"        self._locked_selectfs(\u0027delete\u0027, path)"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"    @mutils.retry(exception\u003dexception.HNASSSCIsBusy, wait_random\u003dTrue,"},{"line_number":313,"context_line":"                  retries\u003d5)"},{"line_number":314,"context_line":"    def check_snapshot(self, path):"},{"line_number":315,"context_line":"        command \u003d [\u0027path-to-object-number\u0027, \u0027-f\u0027, self.fs_name, path]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_b5a25497","line":312,"range":{"start_line":312,"start_character":53,"end_line":312,"end_character":65},"updated":"2017-01-30 17:19:26.000000000","message":"I suppose I wouldn\u0027t use random here, but it\u0027s your choice.","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":309,"context_line":"    def delete_directory(self, path):"},{"line_number":310,"context_line":"        self._locked_selectfs(\u0027delete\u0027, path)"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"    @mutils.retry(exception\u003dexception.HNASSSCIsBusy, wait_random\u003dTrue,"},{"line_number":313,"context_line":"                  retries\u003d5)"},{"line_number":314,"context_line":"    def check_snapshot(self, path):"},{"line_number":315,"context_line":"        command \u003d [\u0027path-to-object-number\u0027, \u0027-f\u0027, self.fs_name, path]"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_4a06d420","line":312,"range":{"start_line":312,"start_character":53,"end_line":312,"end_character":65},"in_reply_to":"3a461143_b5a25497","updated":"2017-01-31 11:55:03.000000000","message":"it can avoid an extra retry in case that 2 manilas trying to manage a snapshot at same time.","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14567,"name":"Rodrigo Barbieri","email":"rodrigo.barbieri2010@gmail.com","username":"ganso"},"change_message_id":"ab3b550bbce8c19c038e24f85ff2926fdd12bfc5","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            self._execute(command)"},{"line_number":319,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":320,"context_line":"            if \u0027path-to-object-number is currently running\u0027 in e.stdout:"},{"line_number":321,"context_line":"                msg \u003d _(\"SSC command path-to-object is currently busy.\")"},{"line_number":322,"context_line":"                raise exception.HNASSSCIsBusy(msg\u003dmsg)"},{"line_number":323,"context_line":"            if \u0027Unable to locate component:\u0027 in e.stdout:"},{"line_number":324,"context_line":"                LOG.debug(\"Cannot find %(path)s: %(out)s\","}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_21f54656","line":321,"range":{"start_line":321,"start_character":37,"end_line":321,"end_character":51},"updated":"2017-01-30 18:54:14.000000000","message":"path-to-object-number","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"45df72f89fc9e50432bc925cae57eecb88809df7","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            self._execute(command)"},{"line_number":319,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":320,"context_line":"            if \u0027path-to-object-number is currently running\u0027 in e.stdout:"},{"line_number":321,"context_line":"                msg \u003d _(\"SSC command path-to-object is currently busy.\")"},{"line_number":322,"context_line":"                raise exception.HNASSSCIsBusy(msg\u003dmsg)"},{"line_number":323,"context_line":"            if \u0027Unable to locate component:\u0027 in e.stdout:"},{"line_number":324,"context_line":"                LOG.debug(\"Cannot find %(path)s: %(out)s\","}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_d51e00ba","line":321,"updated":"2017-01-30 17:19:26.000000000","message":"you might like to include info about which command/path is stuck in a waiting loop.  And then of course you\u0027d want to log it. I\u0027m assuming from just looking at the diff, that the log won\u0027t show you much -- but perhaps higher-up logging handles that.","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            self._execute(command)"},{"line_number":319,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":320,"context_line":"            if \u0027path-to-object-number is currently running\u0027 in e.stdout:"},{"line_number":321,"context_line":"                msg \u003d _(\"SSC command path-to-object is currently busy.\")"},{"line_number":322,"context_line":"                raise exception.HNASSSCIsBusy(msg\u003dmsg)"},{"line_number":323,"context_line":"            if \u0027Unable to locate component:\u0027 in e.stdout:"},{"line_number":324,"context_line":"                LOG.debug(\"Cannot find %(path)s: %(out)s\","}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_6a6710b7","line":321,"range":{"start_line":321,"start_character":37,"end_line":321,"end_character":51},"in_reply_to":"3a461143_21f54656","updated":"2017-01-31 11:55:03.000000000","message":"Done","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":318,"context_line":"            self._execute(command)"},{"line_number":319,"context_line":"        except processutils.ProcessExecutionError as e:"},{"line_number":320,"context_line":"            if \u0027path-to-object-number is currently running\u0027 in e.stdout:"},{"line_number":321,"context_line":"                msg \u003d _(\"SSC command path-to-object is currently busy.\")"},{"line_number":322,"context_line":"                raise exception.HNASSSCIsBusy(msg\u003dmsg)"},{"line_number":323,"context_line":"            if \u0027Unable to locate component:\u0027 in e.stdout:"},{"line_number":324,"context_line":"                LOG.debug(\"Cannot find %(path)s: %(out)s\","}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_2af7c88b","line":321,"in_reply_to":"3a461143_d51e00ba","updated":"2017-01-31 11:55:03.000000000","message":"It logs all commands being executed that includes path, retries etc. But I agree that the path should be included in this raise.","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"cf56b7d9a02b571fe6f60d6a25d10e84da3778ea","unresolved":false,"context_lines":[{"line_number":309,"context_line":"    def delete_directory(self, path):"},{"line_number":310,"context_line":"        self._locked_selectfs(\u0027delete\u0027, path)"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"    @mutils.retry(exception\u003dexception.HNASSSCIsBusy, wait_random\u003dTrue,"},{"line_number":313,"context_line":"                  retries\u003d5)"},{"line_number":314,"context_line":"    def check_snapshot(self, path):"},{"line_number":315,"context_line":"        command \u003d [\u0027path-to-object-number\u0027, \u0027-f\u0027, self.fs_name, path]"},{"line_number":316,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a461143_00c82ba5","line":313,"range":{"start_line":312,"start_character":4,"end_line":313,"end_character":28},"updated":"2017-01-31 11:51:56.000000000","message":"Why \"retry\"? Why not proper lock based on snapshot name/path?","commit_id":"229515178494688f70f57d5ec29629ee3377373d"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"3d0bf30392c8e2def677ead69de90a56f4285b7d","unresolved":false,"context_lines":[{"line_number":309,"context_line":"    def delete_directory(self, path):"},{"line_number":310,"context_line":"        self._locked_selectfs(\u0027delete\u0027, path)"},{"line_number":311,"context_line":""},{"line_number":312,"context_line":"    @mutils.retry(exception\u003dexception.HNASSSCIsBusy, wait_random\u003dTrue,"},{"line_number":313,"context_line":"                  retries\u003d5)"},{"line_number":314,"context_line":"    def check_snapshot(self, path):"},{"line_number":315,"context_line":"        command \u003d [\u0027path-to-object-number\u0027, \u0027-f\u0027, self.fs_name, path]"},{"line_number":316,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a461143_09721711","line":313,"range":{"start_line":312,"start_character":4,"end_line":313,"end_character":28},"in_reply_to":"3a461143_00c82ba5","updated":"2017-01-31 12:50:09.000000000","message":"A lock here will not prevent failing when someone execute this command externally from manila, like executing it manually in backend","commit_id":"229515178494688f70f57d5ec29629ee3377373d"}],"manila/tests/share/drivers/hitachi/hnas/test_ssh.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"45df72f89fc9e50432bc925cae57eecb88809df7","unresolved":false,"context_lines":[{"line_number":953,"context_line":""},{"line_number":954,"context_line":"        out \u003d self._driver_ssh.check_snapshot(path)"},{"line_number":955,"context_line":""},{"line_number":956,"context_line":"        self.assertTrue(out)"},{"line_number":957,"context_line":"        self._driver_ssh._execute.assert_called_with(check_snap_args)"},{"line_number":958,"context_line":""},{"line_number":959,"context_line":"    def test_check_inexistent_snapshot(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_98982fc2","line":956,"range":{"start_line":956,"start_character":8,"end_line":956,"end_character":28},"updated":"2017-01-30 17:19:26.000000000","message":"self.assertIs(True, out) would more correctly test for an actual True returned instead of some other value that evaluates to true.","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"},{"author":{"_account_id":14907,"name":"Alyson","email":"alyson.rodrigues.rosa@gmail.com","username":"Alyson"},"change_message_id":"fadc83e7afcad8592dbed70e83a849e4096f1306","unresolved":false,"context_lines":[{"line_number":953,"context_line":""},{"line_number":954,"context_line":"        out \u003d self._driver_ssh.check_snapshot(path)"},{"line_number":955,"context_line":""},{"line_number":956,"context_line":"        self.assertTrue(out)"},{"line_number":957,"context_line":"        self._driver_ssh._execute.assert_called_with(check_snap_args)"},{"line_number":958,"context_line":""},{"line_number":959,"context_line":"    def test_check_inexistent_snapshot(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a461143_652f4188","line":956,"range":{"start_line":956,"start_character":8,"end_line":956,"end_character":28},"in_reply_to":"3a461143_98982fc2","updated":"2017-01-31 11:55:03.000000000","message":"Done","commit_id":"0d2b7865fd90e56153c315f71edfd8361092f551"}]}
