)]}'
{"manila/scheduler/host_manager.py":[{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"ebc6281d718defd6c6a1a19073fee6c95b36aece","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                 \u0027total_capacity_gb\u0027: 500,        #  mandatory stats for"},{"line_number":162,"context_line":"                 \u0027free_capacity_gb\u0027: 230,         #  pools"},{"line_number":163,"context_line":"                 \u0027allocated_capacity_gb\u0027: 270,    # |"},{"line_number":164,"context_line":"                 \u0027QoS_support\u0027: \u0027False\u0027,          # |"},{"line_number":165,"context_line":"                 \u0027reserved_percentage\u0027: 0,        #/"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"                 \u0027dying_disks\u0027: 100,              #\\"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_46aef8e6","line":164,"updated":"2015-08-31 14:45:48.000000000","message":"May be we should add the description of dedupe.","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"e8e12cb10286b85f4e90916fc8adce9ddd135958","unresolved":false,"context_lines":[{"line_number":161,"context_line":"                 \u0027total_capacity_gb\u0027: 500,        #  mandatory stats for"},{"line_number":162,"context_line":"                 \u0027free_capacity_gb\u0027: 230,         #  pools"},{"line_number":163,"context_line":"                 \u0027allocated_capacity_gb\u0027: 270,    # |"},{"line_number":164,"context_line":"                 \u0027QoS_support\u0027: \u0027False\u0027,          # |"},{"line_number":165,"context_line":"                 \u0027reserved_percentage\u0027: 0,        #/"},{"line_number":166,"context_line":""},{"line_number":167,"context_line":"                 \u0027dying_disks\u0027: 100,              #\\"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_3db3d251","line":164,"in_reply_to":"da20952f_46aef8e6","updated":"2015-08-31 15:07:25.000000000","message":"Common capabilities are described in documentation - no need to add desc here.","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"ebc6281d718defd6c6a1a19073fee6c95b36aece","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_a615949c","line":283,"updated":"2015-08-31 14:45:48.000000000","message":"This is backend level info, dedupe is the pool level info, so maybe dedupe should not be added in there.","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"8551ac03e6b2073f7ff292438f2ba00b50499f7a","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_87fb8e46","line":283,"in_reply_to":"da20952f_3d6c32cd","updated":"2015-09-01 07:41:45.000000000","message":"If it is set to \u0027False\u0027 in backend level info, The already exist pool \u0027dedupe\u0027 value will be overwritten(code line 211)， and if go to the branch of code line 329, then the \u0027dedupe\u0027 will be \u0027False\u0027, but maybe the actual is \u0027True\u0027. so we should revome \u0027dedupe\u0027 in there. :)\n\nSuch as \u0027self.thin_provisioning\u0027 is not set up here.","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"34c6cc7f52846d3b4146c87a7766e06eb4bbd3a4","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_a1700241","line":283,"in_reply_to":"da20952f_3d6c32cd","updated":"2015-09-01 02:45:35.000000000","message":"In https://github.com/openstack/manila/blob/master/doc/source/devref/capabilities_and_extra_specs.rst.\n\nDedupe does not belong to backend level info(code line 149~157), It is belong to \u0027pools\u0027, so revome \u0027dedupe\u0027 is better.","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":15100,"name":"zhongjun","email":"jun.zhongjun2@gmail.com","username":"zhongjun2"},"change_message_id":"7d0966aec983117b1a10ffdb8ed6669c0b0eb63e","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_c0c2c784","line":283,"in_reply_to":"da20952f_85c2a151","updated":"2015-09-01 07:57:35.000000000","message":"In other words, If it is absent, it will be set in code line 351 to \u0027false\u0027. \n\nIf capability is None(code line 327), the code line 351 can not be run. The result is the pool info keep the original attributes or the pool is can not be used(Because self.total_capacity_gb also can not be set).","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"b7c93e9c41ccd4c500c52a5982b0b821e6cb932c","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_de42a70e","line":283,"in_reply_to":"da20952f_87fb8e46","updated":"2015-09-01 09:03:33.000000000","message":"Your assumptions are not correct. self.dedupe and self.thin_provisioning - instance attributes of HostState/PoolState classes, but pool_cap[\u0027dedupe\u0027] is capabilities dictionary from PoolHost (self.capabilities) and now most important part - self.dedupe is NOT used in CapabilitiesFilter, this attribute was added only for consistency with \u0027self.thin_provisioning\u0027 which is used in CapacityFilter. \n\nPlease download this patch-set and debug code path.\n\nPS: from my perspective current code is confusing and should be refactored in future.","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"832b30fcbe7ed7c934b49baa6fe56f3bb932d8fb","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_85c2a151","line":283,"in_reply_to":"da20952f_a1700241","updated":"2015-09-01 07:31:01.000000000","message":"Dedupe does not belong to backend level info, but here I add this info to POOL capabilities if it\u0027s absent :)","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"e8e12cb10286b85f4e90916fc8adce9ddd135958","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_3d6c32cd","line":283,"in_reply_to":"da20952f_a615949c","updated":"2015-08-31 15:07:25.000000000","message":"Here I just set default value for \u0027dedupe\u0027 if driver doesn\u0027t report it. Isn\u0027t it?","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"2fd40c158e371c4934707a3cde224a468cb0e817","unresolved":false,"context_lines":[{"line_number":280,"context_line":"            pool_cap[\u0027snapshot_support\u0027] \u003d True"},{"line_number":281,"context_line":""},{"line_number":282,"context_line":"        if not pool_cap.get(\u0027dedupe\u0027):"},{"line_number":283,"context_line":"            pool_cap[\u0027dedupe\u0027] \u003d False"},{"line_number":284,"context_line":""},{"line_number":285,"context_line":"    def update_backend(self, capability):"},{"line_number":286,"context_line":"        self.share_backend_name \u003d capability.get(\u0027share_backend_name\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_7efcbbb7","line":283,"in_reply_to":"da20952f_de42a70e","updated":"2015-09-01 09:04:18.000000000","message":"s/PoolHost/PoolState","commit_id":"a39bb7501235cee23c3ea8a1551eb9dc46a8c525"}],"manila/tests/scheduler/test_filter_scheduler.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"b67ff1544e8327a7d0028cfd943a2617f0501cc8","unresolved":false,"context_lines":[{"line_number":186,"context_line":""},{"line_number":187,"context_line":"        self.assertIsNotNone(weighed_host)"},{"line_number":188,"context_line":"        self.assertIsNotNone(weighed_host.obj)"},{"line_number":189,"context_line":"        self.assertTrue(hasattr(weighed_host.obj, \u0027dedupe\u0027))"},{"line_number":190,"context_line":"        self.assertTrue(_mock_service_get_all_by_topic.called)"},{"line_number":191,"context_line":""},{"line_number":192,"context_line":"    @mock.patch(\u0027manila.db.service_get_all_by_topic\u0027)"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_4a8c8dd6","line":189,"updated":"2015-09-08 01:15:15.000000000","message":"How about also assert that the value is False.","commit_id":"d31565127184006f0efde3c2873c336ec6fc029d"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"b67ff1544e8327a7d0028cfd943a2617f0501cc8","unresolved":false,"context_lines":[{"line_number":193,"context_line":"    def test__schedule_share_with_default_dedupe_value_fail("},{"line_number":194,"context_line":"            self, _mock_service_get_all_by_topic):"},{"line_number":195,"context_line":"        sched, fake_context, request_spec \u003d self._setup_dedupe_fakes("},{"line_number":196,"context_line":"            {\u0027capabilities:dedupe\u0027: \u0027True\u0027})"},{"line_number":197,"context_line":"        fakes.mock_host_manager_db_calls(_mock_service_get_all_by_topic)"},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"        weighed_host \u003d sched._schedule_share(fake_context, request_spec, {})"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_8aadc532","line":196,"updated":"2015-09-08 01:15:15.000000000","message":"Need to test with \u0027\u003cis\u003e True\u0027.","commit_id":"d31565127184006f0efde3c2873c336ec6fc029d"}]}
