)]}'
{"manila/share/drivers/netapp/dataontap/client/client_cmode.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"03c98b8b6c486334e74ef211aae094c7941b1439","unresolved":false,"context_lines":[{"line_number":919,"context_line":"    def unmount_volume(self, volume_name, force\u003dFalse, wait_seconds\u003d30):"},{"line_number":920,"context_line":"        \"\"\"Unmounts a volume, retrying if a clone split is ongoing."},{"line_number":921,"context_line":""},{"line_number":922,"context_line":"        NOTE(cknight): While unlikely to happen in the field, the Tempest"},{"line_number":923,"context_line":"        tests\u0027 cleanup logic tries to delete volumes immediately after creating"},{"line_number":924,"context_line":"        volume clones.  The volume unmount is the first operation in the delete"},{"line_number":925,"context_line":"        path that fails in this case, and there is no proactive check we can"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_6141680b","line":922,"updated":"2015-04-30 09:14:54.000000000","message":"I am not sure it is proper to mention \"Tempest\" in Manila, and, especially, in share driver. Tempest is not the blocker by itself, Tempest is one of things that discovered some kind of weakness of a share driver.\n\nSo, I propose you to mention here real problem - immediate attempt to delete something while some operations are executed over object that is being tried to be deleted.","commit_id":"7d1b0b516c1c379cabf206ade4241810e6dcd582"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"8917eae143e600dce8bea573b9cc41eea6cedc95","unresolved":false,"context_lines":[{"line_number":919,"context_line":"    def unmount_volume(self, volume_name, force\u003dFalse, wait_seconds\u003d30):"},{"line_number":920,"context_line":"        \"\"\"Unmounts a volume, retrying if a clone split is ongoing."},{"line_number":921,"context_line":""},{"line_number":922,"context_line":"        NOTE(cknight): While unlikely to happen in the field, the Tempest"},{"line_number":923,"context_line":"        tests\u0027 cleanup logic tries to delete volumes immediately after creating"},{"line_number":924,"context_line":"        volume clones.  The volume unmount is the first operation in the delete"},{"line_number":925,"context_line":"        path that fails in this case, and there is no proactive check we can"}],"source_content_type":"text/x-python","patch_set":1,"id":"3acd31a7_792b4d31","line":922,"in_reply_to":"3acd31a7_6141680b","updated":"2015-04-30 16:05:24.000000000","message":"OK, I removed the Tempest language.\n\nFWIW, to improve driver resiliency, we\u0027re considering using soft deletes as a fallback to share \u0026 snapshot deletion errors, which would let us revert this patch.  But that is a much larger effort, and this patch will let us get single-SVM cDOT CI reporting upstream in the short term.","commit_id":"7d1b0b516c1c379cabf206ade4241810e6dcd582"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"3daf699ca88b9bc8f7b27cfe32c1275087ab1a40","unresolved":false,"context_lines":[{"line_number":932,"context_line":""},{"line_number":933,"context_line":"        # Do the unmount, handling split-related errors with retries."},{"line_number":934,"context_line":"        retry_interval \u003d 3  # seconds"},{"line_number":935,"context_line":"        for retry in range(wait_seconds / retry_interval):"},{"line_number":936,"context_line":"            try:"},{"line_number":937,"context_line":"                self._unmount_volume(volume_name, force\u003dforce)"},{"line_number":938,"context_line":"                LOG.debug(\u0027Volume %s unmounted.\u0027, volume_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_76f8e849","line":935,"updated":"2015-05-01 04:52:14.000000000","message":"If I use wait_seconds\u003d32, it will for retry in range(10).  It will unmount 10 times in 27 seconds and then sleep 3s and quit.  So the final 3s sleep is wasted because there is no unmount attempt after it.  The rounding error is not a big deal unless you like math or care about those ignored 2s.  This is probably all fine for its use, but it could be better.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"349e8bc6addb4b85f6e9278c063de23f04a09227","unresolved":false,"context_lines":[{"line_number":932,"context_line":""},{"line_number":933,"context_line":"        # Do the unmount, handling split-related errors with retries."},{"line_number":934,"context_line":"        retry_interval \u003d 3  # seconds"},{"line_number":935,"context_line":"        for retry in range(wait_seconds / retry_interval):"},{"line_number":936,"context_line":"            try:"},{"line_number":937,"context_line":"                self._unmount_volume(volume_name, force\u003dforce)"},{"line_number":938,"context_line":"                LOG.debug(\u0027Volume %s unmounted.\u0027, volume_name)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_bc0737c9","line":935,"in_reply_to":"3acd31a7_76f8e849","updated":"2015-05-05 09:55:35.000000000","message":"This method definitely works improperly.\n\nIf volume is not unmounted in 30 seconds we will just leave cycle and end our attempts on line 947 if line 941 returns True.\n\nSo, after cycle we should perform last attempt to unmount and raise error in case of any exception.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"f270c1365a5ca0645f77f13f274ed0fa31083450","unresolved":false,"context_lines":[{"line_number":940,"context_line":"            except netapp_api.NaApiError as e:"},{"line_number":941,"context_line":"                if e.code \u003d\u003d netapp_api.EAPIERROR and \u0027job ID\u0027 in e.message:"},{"line_number":942,"context_line":"                    msg \u003d _LW(\u0027Could not unmount volume %(volume)s due to \u0027"},{"line_number":943,"context_line":"                              \u0027ongoing volume operation: %(exception)s\u0027)"},{"line_number":944,"context_line":"                    msg_args \u003d {\u0027volume\u0027: volume_name, \u0027exception\u0027: e}"},{"line_number":945,"context_line":"                    LOG.warning(msg, msg_args)"},{"line_number":946,"context_line":"                    time.sleep(retry_interval)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_ca4ed06e","line":943,"updated":"2015-05-04 04:36:28.000000000","message":"Suggest log the retry number here.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"349e8bc6addb4b85f6e9278c063de23f04a09227","unresolved":false,"context_lines":[{"line_number":940,"context_line":"            except netapp_api.NaApiError as e:"},{"line_number":941,"context_line":"                if e.code \u003d\u003d netapp_api.EAPIERROR and \u0027job ID\u0027 in e.message:"},{"line_number":942,"context_line":"                    msg \u003d _LW(\u0027Could not unmount volume %(volume)s due to \u0027"},{"line_number":943,"context_line":"                              \u0027ongoing volume operation: %(exception)s\u0027)"},{"line_number":944,"context_line":"                    msg_args \u003d {\u0027volume\u0027: volume_name, \u0027exception\u0027: e}"},{"line_number":945,"context_line":"                    LOG.warning(msg, msg_args)"},{"line_number":946,"context_line":"                    time.sleep(retry_interval)"}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_3cb2074d","line":943,"in_reply_to":"3acd31a7_ca4ed06e","updated":"2015-05-05 09:55:35.000000000","message":"Why? We see time for each attempt in logs. We do not need number of attempts indeed.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"f270c1365a5ca0645f77f13f274ed0fa31083450","unresolved":false,"context_lines":[{"line_number":943,"context_line":"                              \u0027ongoing volume operation: %(exception)s\u0027)"},{"line_number":944,"context_line":"                    msg_args \u003d {\u0027volume\u0027: volume_name, \u0027exception\u0027: e}"},{"line_number":945,"context_line":"                    LOG.warning(msg, msg_args)"},{"line_number":946,"context_line":"                    time.sleep(retry_interval)"},{"line_number":947,"context_line":"                    continue"},{"line_number":948,"context_line":"                raise"},{"line_number":949,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_8aa6980e","line":946,"updated":"2015-05-04 04:36:28.000000000","message":"Suggest using eventlet.sleep","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"349e8bc6addb4b85f6e9278c063de23f04a09227","unresolved":false,"context_lines":[{"line_number":943,"context_line":"                              \u0027ongoing volume operation: %(exception)s\u0027)"},{"line_number":944,"context_line":"                    msg_args \u003d {\u0027volume\u0027: volume_name, \u0027exception\u0027: e}"},{"line_number":945,"context_line":"                    LOG.warning(msg, msg_args)"},{"line_number":946,"context_line":"                    time.sleep(retry_interval)"},{"line_number":947,"context_line":"                    continue"},{"line_number":948,"context_line":"                raise"},{"line_number":949,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_9c2d9b97","line":946,"in_reply_to":"3acd31a7_8aa6980e","updated":"2015-05-05 09:55:35.000000000","message":"-1 for suggestion. In monkey-patched environment it will be the same. So, usage of \u0027time\u0027 in any share driver is OK.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"3daf699ca88b9bc8f7b27cfe32c1275087ab1a40","unresolved":false,"context_lines":[{"line_number":945,"context_line":"                    LOG.warning(msg, msg_args)"},{"line_number":946,"context_line":"                    time.sleep(retry_interval)"},{"line_number":947,"context_line":"                    continue"},{"line_number":948,"context_line":"                raise"},{"line_number":949,"context_line":""},{"line_number":950,"context_line":"    @na_utils.trace"},{"line_number":951,"context_line":"    def delete_volume(self, volume_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_165bf488","line":948,"updated":"2015-05-01 04:52:14.000000000","message":"else LOG failed to unmount X times... and gave up","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":7652,"name":"Luis Pabón","email":"lpabon@gmail.com","username":"lpabon"},"change_message_id":"390f2fa535dc802bc447ce759180d2c306f75da4","unresolved":false,"context_lines":[{"line_number":945,"context_line":"                    LOG.warning(msg, msg_args)"},{"line_number":946,"context_line":"                    time.sleep(retry_interval)"},{"line_number":947,"context_line":"                    continue"},{"line_number":948,"context_line":"                raise"},{"line_number":949,"context_line":""},{"line_number":950,"context_line":"    @na_utils.trace"},{"line_number":951,"context_line":"    def delete_volume(self, volume_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_a8e38a32","line":948,"in_reply_to":"3acd31a7_165bf488","updated":"2015-05-04 18:18:08.000000000","message":"+1 - Definitely","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"349e8bc6addb4b85f6e9278c063de23f04a09227","unresolved":false,"context_lines":[{"line_number":945,"context_line":"                    LOG.warning(msg, msg_args)"},{"line_number":946,"context_line":"                    time.sleep(retry_interval)"},{"line_number":947,"context_line":"                    continue"},{"line_number":948,"context_line":"                raise"},{"line_number":949,"context_line":""},{"line_number":950,"context_line":"    @na_utils.trace"},{"line_number":951,"context_line":"    def delete_volume(self, volume_name):"}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_dce2f32e","line":948,"in_reply_to":"3acd31a7_a8e38a32","updated":"2015-05-05 09:55:35.000000000","message":"+1 for logging in addition to mentioned above raise of error.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"}],"manila/tests/share/drivers/netapp/dataontap/client/test_client_cmode.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"f270c1365a5ca0645f77f13f274ed0fa31083450","unresolved":false,"context_lines":[{"line_number":1616,"context_line":"                          self.client.offline_volume,"},{"line_number":1617,"context_line":"                          fake.SHARE_NAME)"},{"line_number":1618,"context_line":""},{"line_number":1619,"context_line":"    def test__unmount_volume(self):"},{"line_number":1620,"context_line":""},{"line_number":1621,"context_line":"        self.mock_object(self.client, \u0027send_request\u0027)"},{"line_number":1622,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_ea474c49","line":1619,"updated":"2015-05-04 04:36:28.000000000","message":"What is the reason for changing from \"_\" to \"__\"?   \"_\" is usually used in function names.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"349e8bc6addb4b85f6e9278c063de23f04a09227","unresolved":false,"context_lines":[{"line_number":1616,"context_line":"                          self.client.offline_volume,"},{"line_number":1617,"context_line":"                          fake.SHARE_NAME)"},{"line_number":1618,"context_line":""},{"line_number":1619,"context_line":"    def test__unmount_volume(self):"},{"line_number":1620,"context_line":""},{"line_number":1621,"context_line":"        self.mock_object(self.client, \u0027send_request\u0027)"},{"line_number":1622,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3acd31a7_d9ed65b8","line":1619,"in_reply_to":"3acd31a7_ea474c49","updated":"2015-05-05 09:55:35.000000000","message":"Name of tested method has underscore. So, it is included in name of test to explicitly distinguish names w/o underscores in names of original methods. So, it is ok, IMHO.","commit_id":"6c9d01829afd086c6ffaa2206026e9bd5226b74b"}]}
