)]}'
{"manila/scheduler/filter_scheduler.py":[{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        config_options \u003d self._get_configuration_options()"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"        # If a consistency group is specified, pass the consistency group"},{"line_number":140,"context_line":"        # support level to the ConsistencyGroupFilter (host, pool, or False)"},{"line_number":141,"context_line":"        cg_support \u003d None"},{"line_number":142,"context_line":"        cg \u003d request_spec.get(\u0027consistency_group\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_432680cf","line":139,"updated":"2015-08-27 12:33:34.000000000","message":"Please add \u0027NOTE(xxxx):\u0027 here","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":138,"context_line":""},{"line_number":139,"context_line":"        # If a consistency group is specified, pass the consistency group"},{"line_number":140,"context_line":"        # support level to the ConsistencyGroupFilter (host, pool, or False)"},{"line_number":141,"context_line":"        cg_support \u003d None"},{"line_number":142,"context_line":"        cg \u003d request_spec.get(\u0027consistency_group\u0027)"},{"line_number":143,"context_line":"        if cg:"},{"line_number":144,"context_line":"            temp_hosts \u003d self.host_manager.get_all_host_states_share(elevated)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_cc5e3de9","line":141,"updated":"2015-08-27 12:33:34.000000000","message":"Code block (lines 143-149) not covered by unit tests","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        cg_support \u003d None"},{"line_number":142,"context_line":"        cg \u003d request_spec.get(\u0027consistency_group\u0027)"},{"line_number":143,"context_line":"        if cg:"},{"line_number":144,"context_line":"            temp_hosts \u003d self.host_manager.get_all_host_states_share(elevated)"},{"line_number":145,"context_line":"            for host in temp_hosts:"},{"line_number":146,"context_line":"                if host.host \u003d\u003d cg.get(\u0027host\u0027):"},{"line_number":147,"context_line":"                    cg_support \u003d host.consistency_group_support"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_e9521313","line":144,"updated":"2015-08-27 12:33:34.000000000","message":"Why do you need this? Just move statement from line 174 to line 139","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":141,"context_line":"        cg_support \u003d None"},{"line_number":142,"context_line":"        cg \u003d request_spec.get(\u0027consistency_group\u0027)"},{"line_number":143,"context_line":"        if cg:"},{"line_number":144,"context_line":"            temp_hosts \u003d self.host_manager.get_all_host_states_share(elevated)"},{"line_number":145,"context_line":"            for host in temp_hosts:"},{"line_number":146,"context_line":"                if host.host \u003d\u003d cg.get(\u0027host\u0027):"},{"line_number":147,"context_line":"                    cg_support \u003d host.consistency_group_support"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_a574379c","line":144,"in_reply_to":"da20952f_e9521313","updated":"2015-08-27 15:07:37.000000000","message":"The note says it\u0027s an iterator so we should traverse it once. As it stands right now, self.host_manager.get_filtered_hosts expects an iterator. I\u0027d love to improve all of this scheduler code in the future.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        cg \u003d request_spec.get(\u0027consistency_group\u0027)"},{"line_number":143,"context_line":"        if cg:"},{"line_number":144,"context_line":"            temp_hosts \u003d self.host_manager.get_all_host_states_share(elevated)"},{"line_number":145,"context_line":"            for host in temp_hosts:"},{"line_number":146,"context_line":"                if host.host \u003d\u003d cg.get(\u0027host\u0027):"},{"line_number":147,"context_line":"                    cg_support \u003d host.consistency_group_support"},{"line_number":148,"context_line":"                    break"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_49de9f6e","line":145,"updated":"2015-08-27 12:33:34.000000000","message":"Rewrite in pythonic (and more readable) way:\n\n\n\"\"\"\n        # Note: remember, we are using an iterator here. So only\n        # traverse this list once.\n        hosts \u003d self.host_manager.get_all_host_states_share(elevated)\n\n        # If a consistency group is specified, pass the consistency group\n        # support level to the ConsistencyGroupFilter (host, pool, or False)\n        cg_support \u003d None\n        cg \u003d request_spec.get(\u0027consistency_group\u0027)\n        if cg:\n            cg_support \u003d next((host for host in hosts\n                              if host.host \u003d\u003d cg.get(\u0027host\u0027)), None)\n\n\"\"\"","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        cg \u003d request_spec.get(\u0027consistency_group\u0027)"},{"line_number":143,"context_line":"        if cg:"},{"line_number":144,"context_line":"            temp_hosts \u003d self.host_manager.get_all_host_states_share(elevated)"},{"line_number":145,"context_line":"            for host in temp_hosts:"},{"line_number":146,"context_line":"                if host.host \u003d\u003d cg.get(\u0027host\u0027):"},{"line_number":147,"context_line":"                    cg_support \u003d host.consistency_group_support"},{"line_number":148,"context_line":"                    break"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_623b75ec","line":145,"in_reply_to":"da20952f_49de9f6e","updated":"2015-08-27 15:07:37.000000000","message":"This wont do exactly the same thing but i\u0027ll tweak it slightly","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":292,"context_line":""},{"line_number":293,"context_line":"        weighed_hosts \u003d []"},{"line_number":294,"context_line":"        iteration_count \u003d 0"},{"line_number":295,"context_line":"        for share_type in shr_types:"},{"line_number":296,"context_line":"            share_type[\u0027extra_specs\u0027] \u003d share_type.get(\u0027extra_specs\u0027, {})"},{"line_number":297,"context_line":"            extra_specs \u003d share_type[\u0027extra_specs\u0027]"},{"line_number":298,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_0977473b","line":295,"updated":"2015-08-27 12:33:34.000000000","message":"Please do it in pythonic way, replace lines 294-295 with:\n\n\"\"\"\nfor iteration_count, share_type in enumerate(shr_types):\n\"\"\"\n\nand remove line 357","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":292,"context_line":""},{"line_number":293,"context_line":"        weighed_hosts \u003d []"},{"line_number":294,"context_line":"        iteration_count \u003d 0"},{"line_number":295,"context_line":"        for share_type in shr_types:"},{"line_number":296,"context_line":"            share_type[\u0027extra_specs\u0027] \u003d share_type.get(\u0027extra_specs\u0027, {})"},{"line_number":297,"context_line":"            extra_specs \u003d share_type[\u0027extra_specs\u0027]"},{"line_number":298,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_85f813e7","line":295,"in_reply_to":"da20952f_0977473b","updated":"2015-08-27 15:07:37.000000000","message":"Sure I can do that","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":293,"context_line":"        weighed_hosts \u003d []"},{"line_number":294,"context_line":"        iteration_count \u003d 0"},{"line_number":295,"context_line":"        for share_type in shr_types:"},{"line_number":296,"context_line":"            share_type[\u0027extra_specs\u0027] \u003d share_type.get(\u0027extra_specs\u0027, {})"},{"line_number":297,"context_line":"            extra_specs \u003d share_type[\u0027extra_specs\u0027]"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"            if extra_specs:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_495f7f41","line":296,"updated":"2015-08-27 12:33:34.000000000","message":"It\u0027s better to move this extra_specs \u0027magic\u0027 to inline function with reasonable name to make the body of for statement more readable.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":296,"context_line":"            share_type[\u0027extra_specs\u0027] \u003d share_type.get(\u0027extra_specs\u0027, {})"},{"line_number":297,"context_line":"            extra_specs \u003d share_type[\u0027extra_specs\u0027]"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"            if extra_specs:"},{"line_number":300,"context_line":"                for extra_spec_name in share_types.get_required_extra_specs():"},{"line_number":301,"context_line":"                    extra_spec \u003d extra_specs.get(extra_spec_name)"},{"line_number":302,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_4940dfa5","line":299,"updated":"2015-08-27 12:33:34.000000000","message":"Please be consistent and use here share_type[\u0027extra_specs\u0027] too.\n\nAlso body of this \u0027if\u0027 statement is not covered by unit tests.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":297,"context_line":"            extra_specs \u003d share_type[\u0027extra_specs\u0027]"},{"line_number":298,"context_line":""},{"line_number":299,"context_line":"            if extra_specs:"},{"line_number":300,"context_line":"                for extra_spec_name in share_types.get_required_extra_specs():"},{"line_number":301,"context_line":"                    extra_spec \u003d extra_specs.get(extra_spec_name)"},{"line_number":302,"context_line":""},{"line_number":303,"context_line":"                    if extra_spec is not None:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_cd3160ee","line":300,"updated":"2015-08-27 10:45:45.000000000","message":"Maybe here should be used \"get_undeletable_extra_specs\" that includes \"required\" (dhss) and \"optional\" (snapshot_support) extra specs?\n\nSee: https://github.com/openstack/manila/blob/af6814f9/manila/share/share_types.py#L202","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":307,"context_line":"            share_type[\u0027extra_specs\u0027][\u0027consistency_group_support\u0027] \u003d ("},{"line_number":308,"context_line":"                \"\u003cor\u003e host \u003cor\u003e pool\")"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"            filter_properties \u003d {\u0027context\u0027: context,"},{"line_number":311,"context_line":"                                 \u0027request_spec\u0027: request_spec,"},{"line_number":312,"context_line":"                                 \u0027config_options\u0027: config_options,"},{"line_number":313,"context_line":"                                 \u0027share_type\u0027: share_type,"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_ed41c43a","line":310,"updated":"2015-08-27 10:45:45.000000000","message":"http://docs.openstack.org/developer/hacking/#dictionaries-lists","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":313,"context_line":"                                 \u0027share_type\u0027: share_type,"},{"line_number":314,"context_line":"                                 \u0027resource_type\u0027: share_type}"},{"line_number":315,"context_line":""},{"line_number":316,"context_line":"            # Find our local list of acceptable hosts by filtering and"},{"line_number":317,"context_line":"            # weighing our options. We virtually consume resources on"},{"line_number":318,"context_line":"            # it so subsequent selections can adjust accordingly."},{"line_number":319,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_26b7da3a","line":316,"updated":"2015-08-27 12:33:34.000000000","message":"Please add \u0027NOTE(xxxx):\u0027 here","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":317,"context_line":"            # weighing our options. We virtually consume resources on"},{"line_number":318,"context_line":"            # it so subsequent selections can adjust accordingly."},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"            # Note: remember, we are using an iterator here. So only"},{"line_number":321,"context_line":"            # traverse this list once."},{"line_number":322,"context_line":"            all_hosts \u003d self.host_manager.get_all_host_states_share(elevated)"},{"line_number":323,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_867ca673","line":320,"updated":"2015-08-27 12:33:34.000000000","message":"ditto","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":319,"context_line":""},{"line_number":320,"context_line":"            # Note: remember, we are using an iterator here. So only"},{"line_number":321,"context_line":"            # traverse this list once."},{"line_number":322,"context_line":"            all_hosts \u003d self.host_manager.get_all_host_states_share(elevated)"},{"line_number":323,"context_line":""},{"line_number":324,"context_line":"            if not all_hosts:"},{"line_number":325,"context_line":"                return []"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_899fd702","line":322,"updated":"2015-08-27 12:33:34.000000000","message":"Move lines 322-325 to line 296 to prevent unnecessary computations in case when all_hosts is empty","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":331,"context_line":"            if not hosts:"},{"line_number":332,"context_line":"                return []"},{"line_number":333,"context_line":""},{"line_number":334,"context_line":"            LOG.debug(\"Filtered %s\" % hosts)"},{"line_number":335,"context_line":""},{"line_number":336,"context_line":"            # weighted_host \u003d WeightedHost() ... the best host for the job."},{"line_number":337,"context_line":"            temp_weighed_hosts \u003d self.host_manager.get_weighed_hosts("}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_ac2bc92f","line":334,"updated":"2015-08-27 12:33:34.000000000","message":"Following code not covered by unit tests.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":340,"context_line":"            if not temp_weighed_hosts:"},{"line_number":341,"context_line":"                return []"},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"            # Take the intersection of hosts so we have one that can support"},{"line_number":344,"context_line":"            # all share types of the CG"},{"line_number":345,"context_line":"            if iteration_count \u003d\u003d 0:"},{"line_number":346,"context_line":"                weighed_hosts \u003d temp_weighed_hosts"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_a681aa4c","line":343,"updated":"2015-08-27 12:33:34.000000000","message":"Please add \u0027NOTE(xxxx):\u0027 here","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":365,"context_line":""},{"line_number":366,"context_line":"        if not weighed_hosts:"},{"line_number":367,"context_line":"            return None"},{"line_number":368,"context_line":"        return weighed_hosts[0].obj.host"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_6ce5b107","line":368,"updated":"2015-08-27 12:33:34.000000000","message":"This line not is covered by unit tests.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"}],"manila/scheduler/filters/consistency_group_filter.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        cg \u003d filter_properties.get(\u0027consistency_group\u0027)"},{"line_number":31,"context_line":"        cg_support \u003d filter_properties.get(\u0027cg_support\u0027)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        if not cg:"},{"line_number":34,"context_line":"            return True"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        # If the CG host can only support shares on the same pool, then"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_8d6368b1","line":33,"updated":"2015-08-27 10:45:45.000000000","message":"It should be sub-condition of line 38.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        cg \u003d filter_properties.get(\u0027consistency_group\u0027)"},{"line_number":31,"context_line":"        cg_support \u003d filter_properties.get(\u0027cg_support\u0027)"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"        if not cg:"},{"line_number":34,"context_line":"            return True"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        # If the CG host can only support shares on the same pool, then"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_009dd164","line":33,"in_reply_to":"da20952f_8d6368b1","updated":"2015-08-27 15:07:37.000000000","message":"I think this is easier to follow. I do need to add a NOTE here though","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"}],"manila/scheduler/host_manager.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":45,"context_line":"                    \u0027AvailabilityZoneFilter\u0027,"},{"line_number":46,"context_line":"                    \u0027CapacityFilter\u0027,"},{"line_number":47,"context_line":"                    \u0027CapabilitiesFilter\u0027,"},{"line_number":48,"context_line":"                    \u0027ConsistencyGroupFilter\u0027"},{"line_number":49,"context_line":"                ],"},{"line_number":50,"context_line":"                help\u003d\u0027Which filter class names to use for filtering hosts \u0027"},{"line_number":51,"context_line":"                     \u0027when not specified in the request.\u0027),"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_2ddd7c42","line":48,"updated":"2015-08-27 10:45:45.000000000","message":"Please, add comma at the end to avoid future update of additional lines as you do for line 47.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":278,"context_line":"                self.driver_handles_share_servers"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"        if not pool_cap.get(\u0027consistency_group_support\u0027):"},{"line_number":281,"context_line":"            pool_cap[\u0027consistency_group_support\u0027] \u003d \\"},{"line_number":282,"context_line":"                self.consistency_group_support"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def update_backend(self, capability):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_0d93d85c","line":281,"updated":"2015-08-27 10:45:45.000000000","message":"Some people prefer \"parenthesis\" in such cases.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":278,"context_line":"                self.driver_handles_share_servers"},{"line_number":279,"context_line":""},{"line_number":280,"context_line":"        if not pool_cap.get(\u0027consistency_group_support\u0027):"},{"line_number":281,"context_line":"            pool_cap[\u0027consistency_group_support\u0027] \u003d \\"},{"line_number":282,"context_line":"                self.consistency_group_support"},{"line_number":283,"context_line":""},{"line_number":284,"context_line":"    def update_backend(self, capability):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_c07ef9e3","line":281,"in_reply_to":"da20952f_0d93d85c","updated":"2015-08-27 15:07:37.000000000","message":"This is the same as the lines above.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":506,"context_line":"        For example:"},{"line_number":507,"context_line":"          {\u0027192.168.1.100\u0027: HostState(), ...}"},{"line_number":508,"context_line":"        \"\"\""},{"line_number":509,"context_line":"        self._update_host_state_map(context)"},{"line_number":510,"context_line":""},{"line_number":511,"context_line":"        # Build a pool_state map and return that map instead of host_state_map"},{"line_number":512,"context_line":"        all_pools \u003d {}"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_6dba94e3","line":509,"updated":"2015-08-27 10:45:45.000000000","message":"Looks like unrelated change.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"}],"manila/scheduler/manager.py":[{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        LOG.warning(_LW(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":126,"context_line":"                    {\"method\": method, \"ex\": ex})"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        cg_state \u003d {\u0027status\u0027: constants.STATUS_ERROR}"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        consistency_group_id \u003d request_spec.get(\u0027consistency_group_id\u0027, None)"},{"line_number":131,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_8cb045df","line":128,"updated":"2015-08-27 12:33:34.000000000","message":"Please remove this line and pass this dict directly on line 135","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":125,"context_line":"        LOG.warning(_LW(\"Failed to schedule_%(method)s: %(ex)s\"),"},{"line_number":126,"context_line":"                    {\"method\": method, \"ex\": ex})"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        cg_state \u003d {\u0027status\u0027: constants.STATUS_ERROR}"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        consistency_group_id \u003d request_spec.get(\u0027consistency_group_id\u0027, None)"},{"line_number":131,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_7b2560a9","line":128,"in_reply_to":"da20952f_8cb045df","updated":"2015-08-27 15:07:37.000000000","message":"That\u0027s less explicit IMO","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        cg_state \u003d {\u0027status\u0027: constants.STATUS_ERROR}"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        consistency_group_id \u003d request_spec.get(\u0027consistency_group_id\u0027, None)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        if consistency_group_id:"},{"line_number":133,"context_line":"            db.consistency_group_update(context,"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_0d7af824","line":130,"updated":"2015-08-27 10:45:45.000000000","message":"None is default value for \"get\" method.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        cg_state \u003d {\u0027status\u0027: constants.STATUS_ERROR}"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"        consistency_group_id \u003d request_spec.get(\u0027consistency_group_id\u0027, None)"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        if consistency_group_id:"},{"line_number":133,"context_line":"            db.consistency_group_update(context,"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_80400158","line":130,"in_reply_to":"da20952f_0d7af824","updated":"2015-08-27 15:07:37.000000000","message":"I\"ll remove it, although i was just being consistency with line 106","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":136,"context_line":""},{"line_number":137,"context_line":"        # TODO(ameade): add notifications"},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"    def create_consistency_group(self, context, topic, cg_id,"},{"line_number":140,"context_line":"                                 cgsnapshot_id\u003dNone,"},{"line_number":141,"context_line":"                                 request_spec\u003dNone, filter_properties\u003dNone):"},{"line_number":142,"context_line":"        try:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_2c47b9bc","line":139,"updated":"2015-08-27 12:33:34.000000000","message":"Please remove unused method parameters: topic and cgsnapshot_id","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"}],"manila/scheduler/rpcapi.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        return cctxt.call(ctxt, \u0027get_pools\u0027,"},{"line_number":75,"context_line":"                          filters\u003dfilters)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def create_consistency_group(self, ctxt, topic, cg_id, cgsnapshot_id\u003dNone,"},{"line_number":78,"context_line":"                                 request_spec\u003dNone, filter_properties\u003dNone):"},{"line_number":79,"context_line":"        request_spec_p \u003d jsonutils.to_primitive(request_spec)"},{"line_number":80,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.2\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_cdef20af","line":77,"updated":"2015-08-27 10:45:45.000000000","message":"Do you really need \"topic\" here?","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":74,"context_line":"        return cctxt.call(ctxt, \u0027get_pools\u0027,"},{"line_number":75,"context_line":"                          filters\u003dfilters)"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def create_consistency_group(self, ctxt, topic, cg_id, cgsnapshot_id\u003dNone,"},{"line_number":78,"context_line":"                                 request_spec\u003dNone, filter_properties\u003dNone):"},{"line_number":79,"context_line":"        request_spec_p \u003d jsonutils.to_primitive(request_spec)"},{"line_number":80,"context_line":"        cctxt \u003d self.client.prepare(version\u003d\u00271.2\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_4c278d12","line":77,"in_reply_to":"da20952f_cdef20af","updated":"2015-08-27 12:33:34.000000000","message":"+1\n\nPlease remove unused method parameters: topic and cgsnapshot_id here","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"}],"manila/share/driver.py":[{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":358,"context_line":"        :returns: share-server or None"},{"line_number":359,"context_line":"        \"\"\""},{"line_number":360,"context_line":"        # If creating in a consistency group, use its share server"},{"line_number":361,"context_line":"        if consistency_group:"},{"line_number":362,"context_line":"            for share_server in share_servers:"},{"line_number":363,"context_line":"                if (consistency_group.get(\u0027share_server_id\u0027) \u003d\u003d"},{"line_number":364,"context_line":"                        share_server[\u0027id\u0027]):"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_0c30b500","line":361,"updated":"2015-08-27 12:33:34.000000000","message":"Please do it in pythonic way:\n\n\"\"\"\n        if consistency_group:\n            cg_srv_id \u003d consistency_group.get(\u0027share_server_id\u0027)\n            return next(\n                (srv for srv in share_servers if cg_srv_id \u003d\u003d srv[\u0027id\u0027]),\n                None\n            )\n\n\"\"\"","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":370,"context_line":"    def choose_share_server_compatible_with_cg(self, context, share_servers,"},{"line_number":371,"context_line":"                                               cg_ref, cgsnapshot\u003dNone):"},{"line_number":372,"context_line":""},{"line_number":373,"context_line":"        return share_servers[0] if share_servers else None"},{"line_number":374,"context_line":""},{"line_number":375,"context_line":"    def setup_server(self, *args, **kwargs):"},{"line_number":376,"context_line":"        if self.driver_handles_share_servers:"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_57db9a7c","line":373,"updated":"2015-08-27 12:33:34.000000000","message":"Is it correct logic for this method?","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"}],"manila/share/manager.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                    }"},{"line_number":312,"context_line":"                )"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"            msg \u003d \"Using share server %(share_server)s for share %(share_id)s\""},{"line_number":315,"context_line":"            LOG.debug(msg, {"},{"line_number":316,"context_line":"                \u0027share_server\u0027: compatible_share_server[\u0027id\u0027],"},{"line_number":317,"context_line":"                \u0027share_id\u0027: share[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_ade50ca9","line":314,"updated":"2015-08-27 10:45:45.000000000","message":"Here you removed underscore","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":311,"context_line":"                    }"},{"line_number":312,"context_line":"                )"},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"            msg \u003d \"Using share server %(share_server)s for share %(share_id)s\""},{"line_number":315,"context_line":"            LOG.debug(msg, {"},{"line_number":316,"context_line":"                \u0027share_server\u0027: compatible_share_server[\u0027id\u0027],"},{"line_number":317,"context_line":"                \u0027share_id\u0027: share[\u0027id\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_b74d5674","line":314,"in_reply_to":"da20952f_ade50ca9","updated":"2015-08-27 12:33:34.000000000","message":"+1\n\nIt\u0027s unrelated change.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":340,"context_line":"                                     cg_ref, cgsnapshot\u003dNone):"},{"line_number":341,"context_line":"        \"\"\"Gets or creates share_server and updates share with its id."},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"        Active share_server can be deleted if there are no dependent shares"},{"line_number":344,"context_line":"        on it."},{"line_number":345,"context_line":"        So we need avoid possibility to delete share_server in time gap"},{"line_number":346,"context_line":"        between reaching active state for share_server and setting up"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_8df36873","line":343,"updated":"2015-08-27 10:45:45.000000000","message":"but here you use \"underscore\".","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":340,"context_line":"                                     cg_ref, cgsnapshot\u003dNone):"},{"line_number":341,"context_line":"        \"\"\"Gets or creates share_server and updates share with its id."},{"line_number":342,"context_line":""},{"line_number":343,"context_line":"        Active share_server can be deleted if there are no dependent shares"},{"line_number":344,"context_line":"        on it."},{"line_number":345,"context_line":"        So we need avoid possibility to delete share_server in time gap"},{"line_number":346,"context_line":"        between reaching active state for share_server and setting up"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_c20a81d2","line":343,"in_reply_to":"da20952f_8df36873","updated":"2015-08-27 15:07:37.000000000","message":"Ah this is copy paste i didnt update all the way","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"34bd19139faa131e3b0f9093d74176d3ad47ebc5","unresolved":false,"context_lines":[{"line_number":371,"context_line":"            self.db.consistency_group_update("},{"line_number":372,"context_line":"                context, cg_ref[\u0027id\u0027], {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"        @utils.synchronized(\"share_manager_%s\" % share_network_id)"},{"line_number":375,"context_line":"        def _provide_share_server_for_cg():"},{"line_number":376,"context_line":"            try:"},{"line_number":377,"context_line":"                available_share_servers \u003d \\"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_2db6dc8a","line":374,"updated":"2015-08-27 10:45:45.000000000","message":"Maybe it should be \"external\" lock?","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"5db5fa47967a734e73dffd45f9934499689b61e6","unresolved":false,"context_lines":[{"line_number":371,"context_line":"            self.db.consistency_group_update("},{"line_number":372,"context_line":"                context, cg_ref[\u0027id\u0027], {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":373,"context_line":""},{"line_number":374,"context_line":"        @utils.synchronized(\"share_manager_%s\" % share_network_id)"},{"line_number":375,"context_line":"        def _provide_share_server_for_cg():"},{"line_number":376,"context_line":"            try:"},{"line_number":377,"context_line":"                available_share_servers \u003d \\"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_22733d82","line":374,"in_reply_to":"da20952f_2db6dc8a","updated":"2015-08-27 15:07:37.000000000","message":"yeah probably should here and for the share method too","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":365,"context_line":"                                 should be found or created. If"},{"line_number":366,"context_line":"                                 share_network_id is None method use"},{"line_number":367,"context_line":"                                 share_network_id from provided snapshot."},{"line_number":368,"context_line":"        :param share: Share model"},{"line_number":369,"context_line":"        :param snapshot: Optional -- Snapshot model"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"        :returns: dict, dict -- first value is share_server, that"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_7ab8a775","line":368,"updated":"2015-09-04 04:23:25.000000000","message":"Wrong param.  Should be cg_ref.","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":365,"context_line":"                                 should be found or created. If"},{"line_number":366,"context_line":"                                 share_network_id is None method use"},{"line_number":367,"context_line":"                                 share_network_id from provided snapshot."},{"line_number":368,"context_line":"        :param share: Share model"},{"line_number":369,"context_line":"        :param snapshot: Optional -- Snapshot model"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"        :returns: dict, dict -- first value is share_server, that"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_797415fd","line":368,"in_reply_to":"da20952f_7ab8a775","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":366,"context_line":"                                 share_network_id is None method use"},{"line_number":367,"context_line":"                                 share_network_id from provided snapshot."},{"line_number":368,"context_line":"        :param share: Share model"},{"line_number":369,"context_line":"        :param snapshot: Optional -- Snapshot model"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"        :returns: dict, dict -- first value is share_server, that"},{"line_number":372,"context_line":"                  has been chosen for share schedule. Second value is"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_3aaf8f2b","line":369,"updated":"2015-09-04 04:23:25.000000000","message":"Should be cgsnapshot","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":366,"context_line":"                                 share_network_id is None method use"},{"line_number":367,"context_line":"                                 share_network_id from provided snapshot."},{"line_number":368,"context_line":"        :param share: Share model"},{"line_number":369,"context_line":"        :param snapshot: Optional -- Snapshot model"},{"line_number":370,"context_line":""},{"line_number":371,"context_line":"        :returns: dict, dict -- first value is share_server, that"},{"line_number":372,"context_line":"                  has been chosen for share schedule. Second value is"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_9971e90e","line":369,"in_reply_to":"da20952f_3aaf8f2b","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":375,"context_line":"        if not (share_network_id or cgsnapshot):"},{"line_number":376,"context_line":"            msg \u003d _(\"\u0027share_network_id\u0027 parameter or \u0027snapshot\u0027\""},{"line_number":377,"context_line":"                    \" should be provided. \")"},{"line_number":378,"context_line":"            raise ValueError(msg)"},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        def error(msg, *args):"},{"line_number":381,"context_line":"            LOG.error(msg, *args)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_5a6a83ee","line":378,"updated":"2015-09-04 04:23:25.000000000","message":"Should use a ManilaException such as InvalidInput.","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":375,"context_line":"        if not (share_network_id or cgsnapshot):"},{"line_number":376,"context_line":"            msg \u003d _(\"\u0027share_network_id\u0027 parameter or \u0027snapshot\u0027\""},{"line_number":377,"context_line":"                    \" should be provided. \")"},{"line_number":378,"context_line":"            raise ValueError(msg)"},{"line_number":379,"context_line":""},{"line_number":380,"context_line":"        def error(msg, *args):"},{"line_number":381,"context_line":"            LOG.error(msg, *args)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_3961bd39","line":378,"in_reply_to":"da20952f_5a6a83ee","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":386,"context_line":"                            external\u003dTrue)"},{"line_number":387,"context_line":"        def _provide_share_server_for_cg():"},{"line_number":388,"context_line":"            try:"},{"line_number":389,"context_line":"                available_share_servers \u003d \\"},{"line_number":390,"context_line":"                    self.db.share_server_get_all_by_host_and_share_net_valid("},{"line_number":391,"context_line":"                        context, self.host, share_network_id)"},{"line_number":392,"context_line":"            except exception.ShareServerNotFound:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_7a46677c","line":389,"updated":"2015-09-04 04:23:25.000000000","message":"Please use () instead of \\","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":386,"context_line":"                            external\u003dTrue)"},{"line_number":387,"context_line":"        def _provide_share_server_for_cg():"},{"line_number":388,"context_line":"            try:"},{"line_number":389,"context_line":"                available_share_servers \u003d \\"},{"line_number":390,"context_line":"                    self.db.share_server_get_all_by_host_and_share_net_valid("},{"line_number":391,"context_line":"                        context, self.host, share_network_id)"},{"line_number":392,"context_line":"            except exception.ShareServerNotFound:"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_5966f151","line":389,"in_reply_to":"da20952f_7a46677c","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":1200,"context_line":"        if share_network_id and not self.driver.driver_handles_share_servers:"},{"line_number":1201,"context_line":"            self.db.consistency_group_update("},{"line_number":1202,"context_line":"                context, cg_id, {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":1203,"context_line":"            raise exception.ManilaException("},{"line_number":1204,"context_line":"                _(\"Driver does not expect share-network to be provided \""},{"line_number":1205,"context_line":"                  \"with current configuration.\"))"},{"line_number":1206,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_fd2ef18a","line":1203,"updated":"2015-09-04 04:23:25.000000000","message":"Please use a more specific exception such as InvalidInput(reason\u003dmsg).","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":1200,"context_line":"        if share_network_id and not self.driver.driver_handles_share_servers:"},{"line_number":1201,"context_line":"            self.db.consistency_group_update("},{"line_number":1202,"context_line":"                context, cg_id, {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":1203,"context_line":"            raise exception.ManilaException("},{"line_number":1204,"context_line":"                _(\"Driver does not expect share-network to be provided \""},{"line_number":1205,"context_line":"                  \"with current configuration.\"))"},{"line_number":1206,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_794bb5b1","line":1203,"in_reply_to":"da20952f_fd2ef18a","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":1224,"context_line":""},{"line_number":1225,"context_line":"            group_ref[\u0027shares\u0027] \u003d shares"},{"line_number":1226,"context_line":"            if snap_ref:"},{"line_number":1227,"context_line":"                model_update, share_update_list \u003d \\"},{"line_number":1228,"context_line":"                    self.driver.create_consistency_group_from_cgsnapshot("},{"line_number":1229,"context_line":"                        context, group_ref, snap_ref,"},{"line_number":1230,"context_line":"                        share_server\u003dshare_server)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_5d6b5db9","line":1227,"updated":"2015-09-04 04:23:25.000000000","message":"()","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":1224,"context_line":""},{"line_number":1225,"context_line":"            group_ref[\u0027shares\u0027] \u003d shares"},{"line_number":1226,"context_line":"            if snap_ref:"},{"line_number":1227,"context_line":"                model_update, share_update_list \u003d \\"},{"line_number":1228,"context_line":"                    self.driver.create_consistency_group_from_cgsnapshot("},{"line_number":1229,"context_line":"                        context, group_ref, snap_ref,"},{"line_number":1230,"context_line":"                        share_server\u003dshare_server)"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_994809b5","line":1227,"in_reply_to":"da20952f_5d6b5db9","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":1331,"context_line":"            if snap_ref[\u0027consistency_group\u0027].get(\u0027share_server_id\u0027):"},{"line_number":1332,"context_line":"                share_server \u003d self.db.share_server_get("},{"line_number":1333,"context_line":"                    context, snap_ref[\u0027consistency_group\u0027][\u0027share_server_id\u0027])"},{"line_number":1334,"context_line":"            snapshot_update, member_update_list \u003d \\"},{"line_number":1335,"context_line":"                self.driver.create_cgsnapshot(context, snap_ref,"},{"line_number":1336,"context_line":"                                              share_server\u003dshare_server)"},{"line_number":1337,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_5d791d81","line":1334,"updated":"2015-09-04 04:23:25.000000000","message":"()","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":1331,"context_line":"            if snap_ref[\u0027consistency_group\u0027].get(\u0027share_server_id\u0027):"},{"line_number":1332,"context_line":"                share_server \u003d self.db.share_server_get("},{"line_number":1333,"context_line":"                    context, snap_ref[\u0027consistency_group\u0027][\u0027share_server_id\u0027])"},{"line_number":1334,"context_line":"            snapshot_update, member_update_list \u003d \\"},{"line_number":1335,"context_line":"                self.driver.create_cgsnapshot(context, snap_ref,"},{"line_number":1336,"context_line":"                                              share_server\u003dshare_server)"},{"line_number":1337,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_39c8dd21","line":1334,"in_reply_to":"da20952f_5d791d81","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":1388,"context_line":"                share_server \u003d self.db.share_server_get("},{"line_number":1389,"context_line":"                    context, snap_ref[\u0027consistency_group\u0027][\u0027share_server_id\u0027])"},{"line_number":1390,"context_line":""},{"line_number":1391,"context_line":"            snapshot_update, member_update_list \u003d \\"},{"line_number":1392,"context_line":"                self.driver.delete_cgsnapshot(context, snap_ref,"},{"line_number":1393,"context_line":"                                              share_server\u003dshare_server)"},{"line_number":1394,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_fd8a7163","line":1391,"updated":"2015-09-04 04:23:25.000000000","message":"()","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":1388,"context_line":"                share_server \u003d self.db.share_server_get("},{"line_number":1389,"context_line":"                    context, snap_ref[\u0027consistency_group\u0027][\u0027share_server_id\u0027])"},{"line_number":1390,"context_line":""},{"line_number":1391,"context_line":"            snapshot_update, member_update_list \u003d \\"},{"line_number":1392,"context_line":"                self.driver.delete_cgsnapshot(context, snap_ref,"},{"line_number":1393,"context_line":"                                              share_server\u003dshare_server)"},{"line_number":1394,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_f9cd8530","line":1391,"in_reply_to":"da20952f_fd8a7163","updated":"2015-09-04 19:36:01.000000000","message":"Done","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"40edadd427263b1f87ea3b8650ee8d1047971253","unresolved":false,"context_lines":[{"line_number":1277,"context_line":"        if share_network_id and not self.driver.driver_handles_share_servers:"},{"line_number":1278,"context_line":"            self.db.consistency_group_update("},{"line_number":1279,"context_line":"                context, cg_id, {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":1280,"context_line":"            raise exception.ManilaException("},{"line_number":1281,"context_line":"                _(\"Driver does not expect share-network to be provided \""},{"line_number":1282,"context_line":"                  \"with current configuration.\"))"},{"line_number":1283,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_655696cf","line":1280,"updated":"2015-09-05 20:14:01.000000000","message":"You replied done but looks like this one is missed.\n\nPlease use a more specific exception such as InvalidInput(reason\u003dmsg).","commit_id":"6fa2c4e861c0113d496ea04104ce08d52a32b061"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"01cf065f574fa335f9c2bc51aa37e1a20f133b8c","unresolved":false,"context_lines":[{"line_number":1277,"context_line":"        if share_network_id and not self.driver.driver_handles_share_servers:"},{"line_number":1278,"context_line":"            self.db.consistency_group_update("},{"line_number":1279,"context_line":"                context, cg_id, {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":1280,"context_line":"            raise exception.ManilaException("},{"line_number":1281,"context_line":"                _(\"Driver does not expect share-network to be provided \""},{"line_number":1282,"context_line":"                  \"with current configuration.\"))"},{"line_number":1283,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"da20952f_65dbf64f","line":1280,"in_reply_to":"da20952f_655696cf","updated":"2015-09-05 20:19:41.000000000","message":"ah you\u0027re right, changed it in the wrong place. Done","commit_id":"6fa2c4e861c0113d496ea04104ce08d52a32b061"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b1dd88d66c0b89f126ddcd78c78e4cd67f22c099","unresolved":false,"context_lines":[{"line_number":426,"context_line":"        if not (share_network_id or cgsnapshot):"},{"line_number":427,"context_line":"            msg \u003d _(\"\u0027share_network_id\u0027 parameter or \u0027snapshot\u0027\""},{"line_number":428,"context_line":"                    \" should be provided. \")"},{"line_number":429,"context_line":"            raise exception.InvalidInput(msg)"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        def error(msg, *args):"},{"line_number":432,"context_line":"            LOG.error(msg, *args)"}],"source_content_type":"text/x-python","patch_set":10,"id":"da20952f_a5dfce0b","line":429,"updated":"2015-09-05 20:42:28.000000000","message":"raise exception.InvalidInput(reason\u003dmsg)\n\nclass InvalidInput(Invalid):\n    message \u003d _(\"Invalid input received: %(reason)s.\")","commit_id":"ed6fed1b66664b423c83ba5310372ac1149213e4"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"0cb97238d1c84b31046696d58961f201e3aba1c9","unresolved":false,"context_lines":[{"line_number":426,"context_line":"        if not (share_network_id or cgsnapshot):"},{"line_number":427,"context_line":"            msg \u003d _(\"\u0027share_network_id\u0027 parameter or \u0027snapshot\u0027\""},{"line_number":428,"context_line":"                    \" should be provided. \")"},{"line_number":429,"context_line":"            raise exception.InvalidInput(msg)"},{"line_number":430,"context_line":""},{"line_number":431,"context_line":"        def error(msg, *args):"},{"line_number":432,"context_line":"            LOG.error(msg, *args)"}],"source_content_type":"text/x-python","patch_set":10,"id":"da20952f_45527268","line":429,"in_reply_to":"da20952f_a5dfce0b","updated":"2015-09-05 21:15:35.000000000","message":"Done. Thanks for the reviews, this is a good catch. I wish it would blow up in an obvious way in the unittests so this didnt happen. manilaexception just catches and throws them away. There is CONF.fatal_exception_format_errors which defaults to false though.","commit_id":"ed6fed1b66664b423c83ba5310372ac1149213e4"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"b1dd88d66c0b89f126ddcd78c78e4cd67f22c099","unresolved":false,"context_lines":[{"line_number":1279,"context_line":"                context, cg_id, {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":1280,"context_line":"            raise exception.InvalidInput("},{"line_number":1281,"context_line":"                _(\"Driver does not expect share-network to be provided \""},{"line_number":1282,"context_line":"                  \"with current configuration.\"))"},{"line_number":1283,"context_line":""},{"line_number":1284,"context_line":"        if not share_server and share_network_id:"},{"line_number":1285,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":10,"id":"da20952f_25d41eea","line":1282,"updated":"2015-09-05 20:42:28.000000000","message":"Same as above","commit_id":"ed6fed1b66664b423c83ba5310372ac1149213e4"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"0cb97238d1c84b31046696d58961f201e3aba1c9","unresolved":false,"context_lines":[{"line_number":1279,"context_line":"                context, cg_id, {\u0027status\u0027: constants.STATUS_ERROR})"},{"line_number":1280,"context_line":"            raise exception.InvalidInput("},{"line_number":1281,"context_line":"                _(\"Driver does not expect share-network to be provided \""},{"line_number":1282,"context_line":"                  \"with current configuration.\"))"},{"line_number":1283,"context_line":""},{"line_number":1284,"context_line":"        if not share_server and share_network_id:"},{"line_number":1285,"context_line":"            try:"}],"source_content_type":"text/x-python","patch_set":10,"id":"da20952f_25573e59","line":1282,"in_reply_to":"da20952f_25d41eea","updated":"2015-09-05 21:15:35.000000000","message":"Done","commit_id":"ed6fed1b66664b423c83ba5310372ac1149213e4"}],"manila/share/rpcapi.py":[{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"5cd3753278c073c7b95794465ab6d4774cf7a1e5","unresolved":false,"context_lines":[{"line_number":35,"context_line":"        1.1 - Add manage_share() and unmanage_share() methods"},{"line_number":36,"context_line":"        1.2 - Add extend_share() method"},{"line_number":37,"context_line":"        1.3 - Add shrink_share() method"},{"line_number":38,"context_line":"        1.4 - Add create_consistency_group() and delete_consistency_group"},{"line_number":39,"context_line":"                methods"},{"line_number":40,"context_line":"        1.5 - Add create_cgsnapshot and delete_cgsnapshot methods"},{"line_number":41,"context_line":"    \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"da20952f_57707a72","line":38,"updated":"2015-08-27 12:33:34.000000000","message":"Please use single version bump for this change.","commit_id":"597a370bd1802ff3786749d99faf9ab084cea718"}],"manila/tests/scheduler/test_host_manager.py":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"95be6a33a08ffa59a71941a1b9df4c584a808fd2","unresolved":false,"context_lines":[{"line_number":492,"context_line":"                        \u0027vendor_name\u0027: None,"},{"line_number":493,"context_line":"                        \u0027storage_protocol\u0027: None,"},{"line_number":494,"context_line":"                        \u0027consistency_group_support\u0027: False,"},{"line_number":495,"context_line":"                    },"},{"line_number":496,"context_line":"                },"},{"line_number":497,"context_line":"            ]"},{"line_number":498,"context_line":"            self.assertEqual(len(expected), len(res))"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_ddbbed0d","line":495,"updated":"2015-09-04 04:23:25.000000000","message":"I don\u0027t see any test for \u0027consistency_group_support\u0027 : True.","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"},{"author":{"_account_id":177,"name":"Alex Meade","email":"mr.alex.meade@gmail.com","username":"alex-meade"},"change_message_id":"a0b49fbb18aede62b9ac6bd5c5949983578aed4d","unresolved":false,"context_lines":[{"line_number":492,"context_line":"                        \u0027vendor_name\u0027: None,"},{"line_number":493,"context_line":"                        \u0027storage_protocol\u0027: None,"},{"line_number":494,"context_line":"                        \u0027consistency_group_support\u0027: False,"},{"line_number":495,"context_line":"                    },"},{"line_number":496,"context_line":"                },"},{"line_number":497,"context_line":"            ]"},{"line_number":498,"context_line":"            self.assertEqual(len(expected), len(res))"}],"source_content_type":"text/x-python","patch_set":4,"id":"da20952f_7955f51b","line":495,"in_reply_to":"da20952f_ddbbed0d","updated":"2015-09-04 19:36:01.000000000","message":"add for \u0027host\u0027 and \u0027pool\u0027","commit_id":"c3e9d0a12147e8c946c289ddf4c3c8645e740d25"}]}
