)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"ebbaa47f2a34dcafb84be9fd83068df282380236","unresolved":false,"context_lines":[{"line_number":10,"context_line":"without specifying a share type and a default_share_type"},{"line_number":11,"context_line":"option is set to None."},{"line_number":12,"context_line":"I\u0027ve modified so that scheduler check a share_type"},{"line_number":13,"context_line":"and log a exception."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Closes-Bug: #1477789"},{"line_number":16,"context_line":"Change-Id: I6cdf3ce3940af4095b8e6afca4861ad1c2fc4795"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"3a50d1a3_dc5aa2f2","line":13,"updated":"2015-07-30 06:20:55.000000000","message":"s/log/raise/","commit_id":"8f908bcd6f5952bc5a5f963522de241eef900992"},{"author":{"_account_id":17444,"name":"Jay.Shen","email":"shenhong09@huawei.com","username":"Jay.Shen"},"change_message_id":"3fc8cf5e64425696674124f1998a88828e13cf9a","unresolved":false,"context_lines":[{"line_number":10,"context_line":"without specifying a share type and a default_share_type"},{"line_number":11,"context_line":"option is set to None."},{"line_number":12,"context_line":"I\u0027ve modified so that scheduler check a share_type"},{"line_number":13,"context_line":"and raise a exception."},{"line_number":14,"context_line":"The raised error is logged finally."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1477789"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_8824ed0c","line":13,"updated":"2015-08-07 14:11:54.000000000","message":"S/a/an","commit_id":"ee2e69959307b7f697129b8e89118092d3b06052"},{"author":{"_account_id":7121,"name":"Hiroyuki Eguchi","email":"h-eguchi@az.jp.nec.com","username":"HiroyukiEguchi"},"change_message_id":"7b4d3f9eb94d8e590ea982bf51177442c3ac9cfd","unresolved":false,"context_lines":[{"line_number":10,"context_line":"without specifying a share type and a default_share_type"},{"line_number":11,"context_line":"option is set to None."},{"line_number":12,"context_line":"I\u0027ve modified so that scheduler check a share_type"},{"line_number":13,"context_line":"and raise a exception."},{"line_number":14,"context_line":"The raised error is logged finally."},{"line_number":15,"context_line":""},{"line_number":16,"context_line":"Closes-Bug: #1477789"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":3,"id":"1a4dcd0f_653ba39d","line":13,"in_reply_to":"1a4dcd0f_8824ed0c","updated":"2015-08-09 05:22:31.000000000","message":"sorry.\nI\u0027ll modify this.","commit_id":"ee2e69959307b7f697129b8e89118092d3b06052"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c1378bc6531ff0e5b0c553c93b10955d8cae8c60","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hiroyuki Eguchi \u003ch-eguchi@az.jp.nec.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-08-09 14:27:33 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"AttributeError when creating a new share"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A share_type is set to None, when creating a new share"},{"line_number":10,"context_line":"without specifying a share type and a default_share_type"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a4dcd0f_a672faab","line":7,"updated":"2015-08-10 10:33:40.000000000","message":"Fix AttributeError creating a share without share type provided","commit_id":"77a4dc0ef4f5da4cc1c1ad94c28dbcab366f6172"},{"author":{"_account_id":7121,"name":"Hiroyuki Eguchi","email":"h-eguchi@az.jp.nec.com","username":"HiroyukiEguchi"},"change_message_id":"af841b1cb69366f9c51eea701f8a363ba8ff1f4e","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hiroyuki Eguchi \u003ch-eguchi@az.jp.nec.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-08-09 14:27:33 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"AttributeError when creating a new share"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A share_type is set to None, when creating a new share"},{"line_number":10,"context_line":"without specifying a share type and a default_share_type"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a4dcd0f_d64b0158","line":7,"in_reply_to":"1a4dcd0f_a672faab","updated":"2015-08-11 07:11:45.000000000","message":"I get the point.\nI will modify this.","commit_id":"77a4dc0ef4f5da4cc1c1ad94c28dbcab366f6172"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c1378bc6531ff0e5b0c553c93b10955d8cae8c60","unresolved":false,"context_lines":[{"line_number":9,"context_line":"A share_type is set to None, when creating a new share"},{"line_number":10,"context_line":"without specifying a share type and a default_share_type"},{"line_number":11,"context_line":"option is set to None."},{"line_number":12,"context_line":"I\u0027ve modified so that scheduler check a share_type"},{"line_number":13,"context_line":"and raise an exception."},{"line_number":14,"context_line":"The raised error is logged finally."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a4dcd0f_66acf2ed","line":12,"updated":"2015-08-10 10:33:40.000000000","message":"\"I\" and \"We\" should not be used. Instead, should be used imperative mood:\n\n\"\"\"\n\nMake scheduler check presense of a share type and raise error if it is absent.\n\n\"\"\"","commit_id":"77a4dc0ef4f5da4cc1c1ad94c28dbcab366f6172"},{"author":{"_account_id":7121,"name":"Hiroyuki Eguchi","email":"h-eguchi@az.jp.nec.com","username":"HiroyukiEguchi"},"change_message_id":"af841b1cb69366f9c51eea701f8a363ba8ff1f4e","unresolved":false,"context_lines":[{"line_number":9,"context_line":"A share_type is set to None, when creating a new share"},{"line_number":10,"context_line":"without specifying a share type and a default_share_type"},{"line_number":11,"context_line":"option is set to None."},{"line_number":12,"context_line":"I\u0027ve modified so that scheduler check a share_type"},{"line_number":13,"context_line":"and raise an exception."},{"line_number":14,"context_line":"The raised error is logged finally."},{"line_number":15,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"1a4dcd0f_d6aa2119","line":12,"in_reply_to":"1a4dcd0f_66acf2ed","updated":"2015-08-11 07:11:45.000000000","message":"I understood your indications.\nI will modify this.","commit_id":"77a4dc0ef4f5da4cc1c1ad94c28dbcab366f6172"},{"author":{"_account_id":16883,"name":"huyang","email":"huyang1@huawei.com","username":"huyang"},"change_message_id":"e6e1ef6247e7261a758a271bcefca62bf2c35058","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hiroyuki Eguchi \u003ch-eguchi@az.jp.nec.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-08-11 16:18:13 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix AttributeError creating a share without share type provided"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A share_type is set to None, when creating a new share"},{"line_number":10,"context_line":"without specifying a share type and a default_share_type"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a4dcd0f_cf1d9f67","line":7,"updated":"2015-08-11 10:01:50.000000000","message":"The first line should be limited to 50 characters, see https://wiki.openstack.org/wiki/GitCommitMessages#Summary_of_Git_commit_message_structure","commit_id":"05c40ddb37a5c3c968310429bfb2fdbd6f108efd"},{"author":{"_account_id":7121,"name":"Hiroyuki Eguchi","email":"h-eguchi@az.jp.nec.com","username":"HiroyukiEguchi"},"change_message_id":"6e8496de660cbb9e264ff538416b040916210048","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Hiroyuki Eguchi \u003ch-eguchi@az.jp.nec.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-08-11 16:18:13 +0900"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Fix AttributeError creating a share without share type provided"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"A share_type is set to None, when creating a new share"},{"line_number":10,"context_line":"without specifying a share type and a default_share_type"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"1a4dcd0f_b29baa16","line":7,"in_reply_to":"1a4dcd0f_cf1d9f67","updated":"2015-08-12 02:46:02.000000000","message":"sorry.\n\nI will modify this as follows:\n\nFix AttributeError without share type provided","commit_id":"05c40ddb37a5c3c968310429bfb2fdbd6f108efd"}],"manila/scheduler/filter_scheduler.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"a759cf8c0d036cb3c9d522c241298a85eb014428","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # \u0027volume_XX\u0027 to \u0027resource_XX\u0027 will make both filters happy."},{"line_number":121,"context_line":"        resource_properties \u003d share_properties.copy()"},{"line_number":122,"context_line":"        share_type \u003d request_spec.get(\"share_type\", {})"},{"line_number":123,"context_line":"        if share_type is None:"},{"line_number":124,"context_line":"            share_type \u003d {}"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        extra_specs \u003d share_type.get(\u0027extra_specs\u0027, {})"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_a2952889","line":123,"updated":"2015-07-24 06:42:53.000000000","message":"Previous line with number 122 sets empty dict by default. So, if you get None here, then it \"was provided\" as None somehow. In that case it is unexpected behaviour in another place, not here.\n\nMoreover, each share has share type always. It is not allowed to create shares without it.\n\nIn summary - current change is not appropriate.","commit_id":"b3955c6d01006b070f95954d237a67663a969e06"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"3c742674aca77ee854601c5db817dc7c6807aecd","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # \u0027volume_XX\u0027 to \u0027resource_XX\u0027 will make both filters happy."},{"line_number":121,"context_line":"        resource_properties \u003d share_properties.copy()"},{"line_number":122,"context_line":"        share_type \u003d request_spec.get(\"share_type\", {})"},{"line_number":123,"context_line":"        if share_type is None:"},{"line_number":124,"context_line":"            share_type \u003d {}"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        extra_specs \u003d share_type.get(\u0027extra_specs\u0027, {})"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_9d0bad2b","line":123,"in_reply_to":"3a50d1a3_1dc6bd16","updated":"2015-07-24 07:37:45.000000000","message":"Share type is mandatory, it just can be set by default using config option \"default_share_type\".\n\nAnd creation of shares with command:\n\n$ manila create --name test_share --share-network xxxxx NFS 1\n\nis common approach that works on my LAB as well as in CI. That is why I asked about reproducing steps and \"changed\" code base.","commit_id":"b3955c6d01006b070f95954d237a67663a969e06"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"8552bf001108066aa547bd0ba83cf604dba6e8ff","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # \u0027volume_XX\u0027 to \u0027resource_XX\u0027 will make both filters happy."},{"line_number":121,"context_line":"        resource_properties \u003d share_properties.copy()"},{"line_number":122,"context_line":"        share_type \u003d request_spec.get(\"share_type\", {})"},{"line_number":123,"context_line":"        if share_type is None:"},{"line_number":124,"context_line":"            share_type \u003d {}"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        extra_specs \u003d share_type.get(\u0027extra_specs\u0027, {})"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_c847351c","line":123,"in_reply_to":"3a50d1a3_9d0bad2b","updated":"2015-07-24 07:44:22.000000000","message":"Agree with Valeriy, but we could log here exception instead of fall into AttributeError without any harm to existing code. So it\u0027s better to replace proposed code with check and logging exception in a case of error and find out \"real\" root cause of the problem.","commit_id":"b3955c6d01006b070f95954d237a67663a969e06"},{"author":{"_account_id":7121,"name":"Hiroyuki Eguchi","email":"h-eguchi@az.jp.nec.com","username":"HiroyukiEguchi"},"change_message_id":"e3ef04e3b10e29755318728728f3b79543168430","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # \u0027volume_XX\u0027 to \u0027resource_XX\u0027 will make both filters happy."},{"line_number":121,"context_line":"        resource_properties \u003d share_properties.copy()"},{"line_number":122,"context_line":"        share_type \u003d request_spec.get(\"share_type\", {})"},{"line_number":123,"context_line":"        if share_type is None:"},{"line_number":124,"context_line":"            share_type \u003d {}"},{"line_number":125,"context_line":""},{"line_number":126,"context_line":"        extra_specs \u003d share_type.get(\u0027extra_specs\u0027, {})"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_1dc6bd16","line":123,"in_reply_to":"3a50d1a3_a2952889","updated":"2015-07-24 07:33:35.000000000","message":"An AttributeError will be reproduced in this command.\n\n$ manila create --name test_share --share-network xxxxx NFS 1\n\nA share type option is not mandatory, so user can create a share vm without specifying share type.\n\nAt this time, the value of request_spec is as follows.\n\n{u\u0027share_id\u0027: u\u0027534c3009-d16c-4c3b-ba10-2a6ba26a8518\u0027, \n u\u0027share_proto\u0027: u\u0027NFS\u0027, \n u\u0027share_type\u0027: None, \n u\u0027snapshot_id\u0027: None ....\n\nSo, request_spec.get(\"share_type\", {}) returns None.","commit_id":"b3955c6d01006b070f95954d237a67663a969e06"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"ebbaa47f2a34dcafb84be9fd83068df282380236","unresolved":false,"context_lines":[{"line_number":122,"context_line":"        share_type \u003d request_spec.get(\"share_type\", {})"},{"line_number":123,"context_line":"        if share_type is None:"},{"line_number":124,"context_line":"            msg \u003d _(\"You must create a share type in advance,\""},{"line_number":125,"context_line":"                    \" and specify in requrest body or\""},{"line_number":126,"context_line":"                    \" set default_share_type in manila.conf.\")"},{"line_number":127,"context_line":"            raise exception.InvalidParameterValue(err\u003dmsg)"},{"line_number":128,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_dcf5c2ed","line":125,"updated":"2015-07-30 06:20:55.000000000","message":"s/requrest/request/","commit_id":"8f908bcd6f5952bc5a5f963522de241eef900992"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"c1378bc6531ff0e5b0c553c93b10955d8cae8c60","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            msg \u003d _(\"You must create a share type in advance,\""},{"line_number":125,"context_line":"                    \" and specify in request body or\""},{"line_number":126,"context_line":"                    \" set default_share_type in manila.conf.\")"},{"line_number":127,"context_line":"            raise exception.InvalidParameterValue(err\u003dmsg)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"        extra_specs \u003d share_type.get(\u0027extra_specs\u0027, {})"},{"line_number":130,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_66f632d9","line":127,"updated":"2015-08-10 10:33:40.000000000","message":"Add logging of error before raising exception?\n\n\"\"\"\n\nLOG.error(msg)\n\n\"\"\"","commit_id":"77a4dc0ef4f5da4cc1c1ad94c28dbcab366f6172"},{"author":{"_account_id":7121,"name":"Hiroyuki Eguchi","email":"h-eguchi@az.jp.nec.com","username":"HiroyukiEguchi"},"change_message_id":"af841b1cb69366f9c51eea701f8a363ba8ff1f4e","unresolved":false,"context_lines":[{"line_number":124,"context_line":"            msg \u003d _(\"You must create a share type in advance,\""},{"line_number":125,"context_line":"                    \" and specify in request body or\""},{"line_number":126,"context_line":"                    \" set default_share_type in manila.conf.\")"},{"line_number":127,"context_line":"            raise exception.InvalidParameterValue(err\u003dmsg)"},{"line_number":128,"context_line":""},{"line_number":129,"context_line":"        extra_specs \u003d share_type.get(\u0027extra_specs\u0027, {})"},{"line_number":130,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"1a4dcd0f_d63461df","line":127,"in_reply_to":"1a4dcd0f_66f632d9","updated":"2015-08-11 07:11:45.000000000","message":"I get the point.\nI will modify this.","commit_id":"77a4dc0ef4f5da4cc1c1ad94c28dbcab366f6172"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"361fdccc02ba056edea1c631dff1e6f56dbb632c","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # \u0027volume_XX\u0027 to \u0027resource_XX\u0027 will make both filters happy."},{"line_number":121,"context_line":"        resource_properties \u003d share_properties.copy()"},{"line_number":122,"context_line":"        share_type \u003d request_spec.get(\"share_type\", {})"},{"line_number":123,"context_line":"        if share_type is None:"},{"line_number":124,"context_line":"            msg \u003d _(\"You must create a share type in advance,\""},{"line_number":125,"context_line":"                    \" and specify in request body or\""},{"line_number":126,"context_line":"                    \" set default_share_type in manila.conf.\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_62289de2","line":123,"updated":"2015-08-13 14:01:43.000000000","message":"If it is not set, you\u0027ll get {} instead of None.  So here it should be:\n\nif not share_type:\n\nThis will cover None and {}, etc.","commit_id":"35ba43d2c49e9405460d53cddd131d2723af89b5"},{"author":{"_account_id":7121,"name":"Hiroyuki Eguchi","email":"h-eguchi@az.jp.nec.com","username":"HiroyukiEguchi"},"change_message_id":"423b41c035f4b64a863049bca2945aeccc765337","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # \u0027volume_XX\u0027 to \u0027resource_XX\u0027 will make both filters happy."},{"line_number":121,"context_line":"        resource_properties \u003d share_properties.copy()"},{"line_number":122,"context_line":"        share_type \u003d request_spec.get(\"share_type\", {})"},{"line_number":123,"context_line":"        if share_type is None:"},{"line_number":124,"context_line":"            msg \u003d _(\"You must create a share type in advance,\""},{"line_number":125,"context_line":"                    \" and specify in request body or\""},{"line_number":126,"context_line":"                    \" set default_share_type in manila.conf.\")"}],"source_content_type":"text/x-python","patch_set":6,"id":"1a4dcd0f_6c15d099","line":123,"in_reply_to":"1a4dcd0f_62289de2","updated":"2015-08-14 03:42:28.000000000","message":"I get the point.\nI will modify this.\nThanks.","commit_id":"35ba43d2c49e9405460d53cddd131d2723af89b5"}],"manila/tests/scheduler/test_filter_scheduler.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"ebbaa47f2a34dcafb84be9fd83068df282380236","unresolved":false,"context_lines":[{"line_number":84,"context_line":"        self.assertIsNotNone(weighed_host.obj)"},{"line_number":85,"context_line":"        self.assertTrue(_mock_service_get_all_by_topic.called)"},{"line_number":86,"context_line":""},{"line_number":87,"context_line":"    def test_schedule_share_type_is_None(self):"},{"line_number":88,"context_line":"        sched \u003d fakes.FakeFilterScheduler()"},{"line_number":89,"context_line":"        request_spec \u003d {"},{"line_number":90,"context_line":"            \u0027share_type\u0027: None,"}],"source_content_type":"text/x-python","patch_set":2,"id":"3a50d1a3_9cd89a81","line":87,"updated":"2015-07-30 06:20:55.000000000","message":"s/None/none/","commit_id":"8f908bcd6f5952bc5a5f963522de241eef900992"}]}
