)]}'
{"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":"61b1bc49eae15791d387464a81c1d5f388809d66","unresolved":false,"context_lines":[{"line_number":1000,"context_line":"        self.send_request(\u0027export-rule-modify\u0027, api_args)"},{"line_number":1001,"context_line":""},{"line_number":1002,"context_line":"    @na_utils.trace"},{"line_number":1003,"context_line":"    def _get_nfs_export_rule_indices(self, policy_name, rule):"},{"line_number":1004,"context_line":"        api_args \u003d {"},{"line_number":1005,"context_line":"            \u0027query\u0027: {"},{"line_number":1006,"context_line":"                \u0027export-rule-info\u0027: {"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_d356f405","line":1003,"updated":"2015-04-06 14:08:07.000000000","message":"Where this one is used? And unit tests where you mock it do not make assertions on it.","commit_id":"8dfbcb5b4d62d70adfb3a9f235390a148e8fd7c8"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"4afaff1c7b4fee46aeadaae8f79737084f535a3f","unresolved":false,"context_lines":[{"line_number":1000,"context_line":"        self.send_request(\u0027export-rule-modify\u0027, api_args)"},{"line_number":1001,"context_line":""},{"line_number":1002,"context_line":"    @na_utils.trace"},{"line_number":1003,"context_line":"    def _get_nfs_export_rule_indices(self, policy_name, rule):"},{"line_number":1004,"context_line":"        api_args \u003d {"},{"line_number":1005,"context_line":"            \u0027query\u0027: {"},{"line_number":1006,"context_line":"                \u0027export-rule-info\u0027: {"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_4b69088b","line":1003,"in_reply_to":"9aa53dc9_d356f405","updated":"2015-04-06 22:03:12.000000000","message":"This is called by add_nfs_export_rule and remove_nfs_export_rule.  It is necessary because cDOT allows duplicate rules in each export policy, and the cDOT driver should remove such duplicates.\n\nI added assertions to each test that mocks _get_nfs_export_rule_indices.","commit_id":"8dfbcb5b4d62d70adfb3a9f235390a148e8fd7c8"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"636e0f4181d20a12f24731b9a0c7348fd2bfb036","unresolved":false,"context_lines":[{"line_number":1151,"context_line":""},{"line_number":1152,"context_line":"    @na_utils.trace"},{"line_number":1153,"context_line":"    def create_nfs_export_policy(self, policy_name):"},{"line_number":1154,"context_line":"        api_args \u003d {\u0027policy-name\u0027: policy_name}"},{"line_number":1155,"context_line":"        try:"},{"line_number":1156,"context_line":"            self.send_request(\u0027export-policy-create\u0027, api_args)"},{"line_number":1157,"context_line":"        except netapp_api.NaApiError as e:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_9c5b7d87","line":1154,"updated":"2015-04-08 13:16:47.000000000","message":"You should check here that the policy_name doesn\u0027t start with DELETED_PREFIX . Or am I missing something?","commit_id":"9b6771a58086fff150acb9913b847e61e9641874"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"175302d8042513eeb5a83b9898f6b4d09fc165b7","unresolved":false,"context_lines":[{"line_number":1151,"context_line":""},{"line_number":1152,"context_line":"    @na_utils.trace"},{"line_number":1153,"context_line":"    def create_nfs_export_policy(self, policy_name):"},{"line_number":1154,"context_line":"        api_args \u003d {\u0027policy-name\u0027: policy_name}"},{"line_number":1155,"context_line":"        try:"},{"line_number":1156,"context_line":"            self.send_request(\u0027export-policy-create\u0027, api_args)"},{"line_number":1157,"context_line":"        except netapp_api.NaApiError as e:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_e2642423","line":1154,"in_reply_to":"9aa53dc9_9c5b7d87","updated":"2015-04-08 14:25:03.000000000","message":"I think this is extremely unlikely.  This method is called from one place, in nfs_cmode.py, where the policy name is defined.  DELETED_PREFIX doesn\u0027t exist outside of this client_cmode.py file.","commit_id":"9b6771a58086fff150acb9913b847e61e9641874"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"636e0f4181d20a12f24731b9a0c7348fd2bfb036","unresolved":false,"context_lines":[{"line_number":1164,"context_line":"            self.delete_nfs_export_policy(policy_name)"},{"line_number":1165,"context_line":"        except netapp_api.NaApiError:"},{"line_number":1166,"context_line":"            # NOTE(cknight): Policy deletion can fail if called too soon after"},{"line_number":1167,"context_line":"            # removing from a flexvol.  So rename for later harvesting."},{"line_number":1168,"context_line":"            self.rename_nfs_export_policy(policy_name,"},{"line_number":1169,"context_line":"                                          DELETED_PREFIX + policy_name)"},{"line_number":1170,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_bc7d21e9","line":1167,"updated":"2015-04-08 13:16:47.000000000","message":"Just for my understanding: what means \"to soon\" here? Do we need to wait milliseconds, seconds, minutes?","commit_id":"9b6771a58086fff150acb9913b847e61e9641874"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"175302d8042513eeb5a83b9898f6b4d09fc165b7","unresolved":false,"context_lines":[{"line_number":1164,"context_line":"            self.delete_nfs_export_policy(policy_name)"},{"line_number":1165,"context_line":"        except netapp_api.NaApiError:"},{"line_number":1166,"context_line":"            # NOTE(cknight): Policy deletion can fail if called too soon after"},{"line_number":1167,"context_line":"            # removing from a flexvol.  So rename for later harvesting."},{"line_number":1168,"context_line":"            self.rename_nfs_export_policy(policy_name,"},{"line_number":1169,"context_line":"                                          DELETED_PREFIX + policy_name)"},{"line_number":1170,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_4d10a14e","line":1167,"in_reply_to":"9aa53dc9_bc7d21e9","updated":"2015-04-08 14:25:03.000000000","message":"It depends!  I\u0027ve never seen this occur on a single-node cluster, such as a simulator, but it can take time for policy changes like this one to propagate around a multi-node cluster.  With more nodes, it could take several seconds, but probably not minutes.  We have seen this issue in tempest tests, and moving to the rename/harvest model resolved the issue.  We had to do the same thing with cDOT QoS policies in Cinder.","commit_id":"9b6771a58086fff150acb9913b847e61e9641874"},{"author":{"_account_id":7102,"name":"Thomas Bechtold","email":"thomas.bechtold@chainguard.dev","username":"toabctl"},"change_message_id":"636e0f4181d20a12f24731b9a0c7348fd2bfb036","unresolved":false,"context_lines":[{"line_number":1182,"context_line":"    def rename_nfs_export_policy(self, policy_name, new_policy_name):"},{"line_number":1183,"context_line":"        api_args \u003d {"},{"line_number":1184,"context_line":"            \u0027policy-name\u0027: policy_name,"},{"line_number":1185,"context_line":"            \u0027new-policy-name\u0027: new_policy_name"},{"line_number":1186,"context_line":"        }"},{"line_number":1187,"context_line":"        self.send_request(\u0027export-policy-rename\u0027, api_args)"},{"line_number":1188,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_7cec398f","line":1185,"updated":"2015-04-08 13:16:47.000000000","message":"new_policy_name shouldn\u0027t start with DELETED_PREFIX","commit_id":"9b6771a58086fff150acb9913b847e61e9641874"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"175302d8042513eeb5a83b9898f6b4d09fc165b7","unresolved":false,"context_lines":[{"line_number":1182,"context_line":"    def rename_nfs_export_policy(self, policy_name, new_policy_name):"},{"line_number":1183,"context_line":"        api_args \u003d {"},{"line_number":1184,"context_line":"            \u0027policy-name\u0027: policy_name,"},{"line_number":1185,"context_line":"            \u0027new-policy-name\u0027: new_policy_name"},{"line_number":1186,"context_line":"        }"},{"line_number":1187,"context_line":"        self.send_request(\u0027export-policy-rename\u0027, api_args)"},{"line_number":1188,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa53dc9_7c0af422","line":1185,"in_reply_to":"9aa53dc9_7cec398f","updated":"2015-04-08 14:25:03.000000000","message":"No, it shouldn\u0027t.  And by all rights it never will.  This name is supplied by the driver, not a user.","commit_id":"9b6771a58086fff150acb9913b847e61e9641874"}],"manila/share/drivers/netapp/dataontap/protocols/nfs_cmode.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"29f84f50305927d6ac9d133fa3db2043ff16e8e4","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self._ensure_export_policy(share, share_name)"},{"line_number":56,"context_line":"        export_policy_name \u003d self._get_export_policy_name(share)"},{"line_number":57,"context_line":"        rule \u003d access[\u0027access_to\u0027]"},{"line_number":58,"context_line":"        readonly \u003d access[\u0027access_level\u0027] !\u003d \u0027rw\u0027"},{"line_number":59,"context_line":"        self._client.add_nfs_export_rule(export_policy_name, rule, readonly)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @na_utils.trace"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_f1e54ea8","line":58,"updated":"2015-04-02 11:06:10.000000000","message":"s/\u0027rw\u0027/constants.ACCESS_LEVEL_RW/\n\nhttps://github.com/openstack/manila/blob/a0703047/manila/common/constants.py#L71","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f2b8f980c7d719a90d229062eea75628f5ae6638","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        self._ensure_export_policy(share, share_name)"},{"line_number":56,"context_line":"        export_policy_name \u003d self._get_export_policy_name(share)"},{"line_number":57,"context_line":"        rule \u003d access[\u0027access_to\u0027]"},{"line_number":58,"context_line":"        readonly \u003d access[\u0027access_level\u0027] !\u003d \u0027rw\u0027"},{"line_number":59,"context_line":"        self._client.add_nfs_export_rule(export_policy_name, rule, readonly)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"    @na_utils.trace"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_b81d5875","line":58,"in_reply_to":"baa041b7_f1e54ea8","updated":"2015-04-03 14:47:26.000000000","message":"Definitely better, thanks.  Done.","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"}],"manila/tests/share/drivers/netapp/dataontap/protocols/fakes.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"29f84f50305927d6ac9d133fa3db2043ff16e8e4","unresolved":false,"context_lines":[{"line_number":35,"context_line":"IP_ACCESS \u003d {"},{"line_number":36,"context_line":"    \u0027access_type\u0027: \u0027ip\u0027,"},{"line_number":37,"context_line":"    \u0027access_to\u0027: CLIENT_ADDRESS_1,"},{"line_number":38,"context_line":"    \u0027access_level\u0027: \u0027rw\u0027,"},{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"USER_ACCESS \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_112312bf","line":38,"updated":"2015-04-02 11:06:10.000000000","message":"Same here:\n\ns/\u0027rw\u0027/constants.ACCESS_LEVEL_RW/\n\nhttps://github.com/openstack/manila/blob/a0703047/manila/common/constants.py#L71\n\nVerification of \"read-only\"?","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f2b8f980c7d719a90d229062eea75628f5ae6638","unresolved":false,"context_lines":[{"line_number":35,"context_line":"IP_ACCESS \u003d {"},{"line_number":36,"context_line":"    \u0027access_type\u0027: \u0027ip\u0027,"},{"line_number":37,"context_line":"    \u0027access_to\u0027: CLIENT_ADDRESS_1,"},{"line_number":38,"context_line":"    \u0027access_level\u0027: \u0027rw\u0027,"},{"line_number":39,"context_line":"}"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":"USER_ACCESS \u003d {"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_2b11f452","line":38,"in_reply_to":"baa041b7_112312bf","updated":"2015-04-03 14:47:26.000000000","message":"Done.\n\nThe read-only case is handled in test_nfs_cmode.py where two separate tests (test_allow_access_readonly, test_allow_access_invalid_level) modify the fake IP_ACCESS structure with \u0027ro\u0027 (now using the constant) as well as a fake value.","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"29f84f50305927d6ac9d133fa3db2043ff16e8e4","unresolved":false,"context_lines":[{"line_number":41,"context_line":"USER_ACCESS \u003d {"},{"line_number":42,"context_line":"    \u0027access_type\u0027: \u0027user\u0027,"},{"line_number":43,"context_line":"    \u0027access_to\u0027: \u0027fake_user\u0027,"},{"line_number":44,"context_line":"    \u0027access_level\u0027: \u0027rw\u0027,"},{"line_number":45,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_f12f8e9f","line":44,"updated":"2015-04-02 11:06:10.000000000","message":"and here.","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f2b8f980c7d719a90d229062eea75628f5ae6638","unresolved":false,"context_lines":[{"line_number":41,"context_line":"USER_ACCESS \u003d {"},{"line_number":42,"context_line":"    \u0027access_type\u0027: \u0027user\u0027,"},{"line_number":43,"context_line":"    \u0027access_to\u0027: \u0027fake_user\u0027,"},{"line_number":44,"context_line":"    \u0027access_level\u0027: \u0027rw\u0027,"},{"line_number":45,"context_line":"}"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_0b1e3063","line":44,"in_reply_to":"baa041b7_f12f8e9f","updated":"2015-04-03 14:47:26.000000000","message":"Done.","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"}],"manila/tests/share/drivers/netapp/dataontap/protocols/test_nfs_cmode.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"29f84f50305927d6ac9d133fa3db2043ff16e8e4","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            fake.EXPORT_POLICY_NAME, fake.CLIENT_ADDRESS_1, False)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    @ddt.data(\u0027ro\u0027, \u0027fake\u0027)"},{"line_number":97,"context_line":"    def test_allow_access_readonly(self, access_level):"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        ip_access \u003d copy.deepcopy(fake.IP_ACCESS)"},{"line_number":100,"context_line":"        ip_access[\u0027access_level\u0027] \u003d access_level"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_e310e550","line":97,"updated":"2015-04-02 11:06:10.000000000","message":"name of test is not correct. Only one of two cases is \"read-only\". Second is \"unsupported\" level of access.","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"f2b8f980c7d719a90d229062eea75628f5ae6638","unresolved":false,"context_lines":[{"line_number":94,"context_line":"            fake.EXPORT_POLICY_NAME, fake.CLIENT_ADDRESS_1, False)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    @ddt.data(\u0027ro\u0027, \u0027fake\u0027)"},{"line_number":97,"context_line":"    def test_allow_access_readonly(self, access_level):"},{"line_number":98,"context_line":""},{"line_number":99,"context_line":"        ip_access \u003d copy.deepcopy(fake.IP_ACCESS)"},{"line_number":100,"context_line":"        ip_access[\u0027access_level\u0027] \u003d access_level"}],"source_content_type":"text/x-python","patch_set":1,"id":"baa041b7_295c5c4a","line":97,"in_reply_to":"baa041b7_e310e550","updated":"2015-04-03 14:47:26.000000000","message":"So after discussing with Ben, I\u0027ve changed the code to accept only \u0027rw\u0027 and \u0027ro\u0027, instead of defaulting everything except \u0027rw\u0027 to read-only.\n\nI then split this test into two separate tests with appropriate names.","commit_id":"a9140eb9fdfed1dbda6e52e588e48b5ed7919565"}]}
