)]}'
{"manila/scheduler/host_manager.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"71b5f78db09bea3fd841f1e87d56cbebf2df629c","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        if (isinstance(self.free_capacity_gb, six.string_types)"},{"line_number":290,"context_line":"                and self.free_capacity_gb !\u003d \u0027unknown\u0027):"},{"line_number":291,"context_line":"            raise exception.InvalidCapacity("},{"line_number":292,"context_line":"                capacity\u003dsix.text_type(self.free_capacity_gb))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        if self.free_capacity_gb !\u003d \u0027unknown\u0027:"},{"line_number":295,"context_line":"            self.free_capacity_gb -\u003d share[\u0027size\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_5a6c5536","line":292,"updated":"2015-08-21 16:31:52.000000000","message":"There needs to be something that says which capacity this value came from (free/total/...etc)","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a601aee83f3ea87a7ee6d02d7d0ef768e7518850","unresolved":false,"context_lines":[{"line_number":289,"context_line":"        if (isinstance(self.free_capacity_gb, six.string_types)"},{"line_number":290,"context_line":"                and self.free_capacity_gb !\u003d \u0027unknown\u0027):"},{"line_number":291,"context_line":"            raise exception.InvalidCapacity("},{"line_number":292,"context_line":"                capacity\u003dsix.text_type(self.free_capacity_gb))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        if self.free_capacity_gb !\u003d \u0027unknown\u0027:"},{"line_number":295,"context_line":"            self.free_capacity_gb -\u003d share[\u0027size\u0027]"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_30ebf9e0","line":292,"in_reply_to":"fa1b9901_5a6c5536","updated":"2015-08-31 16:11:17.000000000","message":"Done","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"71b5f78db09bea3fd841f1e87d56cbebf2df629c","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                capacity\u003dsix.text_type(self.free_capacity_gb))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        if self.free_capacity_gb !\u003d \u0027unknown\u0027:"},{"line_number":295,"context_line":"            self.free_capacity_gb -\u003d share[\u0027size\u0027]"},{"line_number":296,"context_line":"        self.updated \u003d timeutils.utcnow()"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    def __repr__(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_ba47b176","line":295,"updated":"2015-08-21 16:31:52.000000000","message":"Just a note... For thin this is not necessarily correct, but it is safer to do it this way.  Maybe add a note?","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a601aee83f3ea87a7ee6d02d7d0ef768e7518850","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                capacity\u003dsix.text_type(self.free_capacity_gb))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        if self.free_capacity_gb !\u003d \u0027unknown\u0027:"},{"line_number":295,"context_line":"            self.free_capacity_gb -\u003d share[\u0027size\u0027]"},{"line_number":296,"context_line":"        self.updated \u003d timeutils.utcnow()"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    def __repr__(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_695d0846","line":295,"in_reply_to":"da20952f_fa1c806b","updated":"2015-08-31 16:11:17.000000000","message":"Changing this calculation is out of the scope of this commit. Please fill bug on launchpad.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":11865,"name":"Clinton Knight","email":"cknight@netapp.com","username":"cknight"},"change_message_id":"d26f2630c3e81817a24f87f1a0a0a45908f0b633","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                capacity\u003dsix.text_type(self.free_capacity_gb))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        if self.free_capacity_gb !\u003d \u0027unknown\u0027:"},{"line_number":295,"context_line":"            self.free_capacity_gb -\u003d share[\u0027size\u0027]"},{"line_number":296,"context_line":"        self.updated \u003d timeutils.utcnow()"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    def __repr__(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_fa1c806b","line":295,"in_reply_to":"fa1b9901_57bae30b","updated":"2015-08-31 14:51:48.000000000","message":"Why can\u0027t we do a weighted deduction based on the oversubscription ratio?","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"6e63fb119b6ec84708b9f7117cf00adea14a00b6","unresolved":false,"context_lines":[{"line_number":292,"context_line":"                capacity\u003dsix.text_type(self.free_capacity_gb))"},{"line_number":293,"context_line":""},{"line_number":294,"context_line":"        if self.free_capacity_gb !\u003d \u0027unknown\u0027:"},{"line_number":295,"context_line":"            self.free_capacity_gb -\u003d share[\u0027size\u0027]"},{"line_number":296,"context_line":"        self.updated \u003d timeutils.utcnow()"},{"line_number":297,"context_line":""},{"line_number":298,"context_line":"    def __repr__(self):"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_57bae30b","line":295,"in_reply_to":"fa1b9901_ba47b176","updated":"2015-08-21 19:40:14.000000000","message":"I had back and forth discussions with Winston on this one regarding thin.  He wants to keep this deduction for thin as well because there\u0027s a chance that space will be consumed until the next status update.  There\u0027s trade off either way.  It\u0027s safer to do it this way to prevent potential infinite provisioning, but you could end up having problems creating multiple thin shares at the same time because of this deduction.  It\u0027s nearly impossible to find a perfect solution for thin.  Some note will be good.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"}],"manila/scheduler/weights/capacity.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"71b5f78db09bea3fd841f1e87d56cbebf2df629c","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        reserved \u003d float(host_state.reserved_percentage) / 100"},{"line_number":56,"context_line":"        free_space \u003d host_state.free_capacity_gb"},{"line_number":57,"context_line":"        total_space \u003d host_state.total_capacity_gb"},{"line_number":58,"context_line":"        if {\u0027unknown\u0027}.intersection({total_space, free_space}):"},{"line_number":59,"context_line":"            # NOTE(u_glide): \"unknown\" capacity always sorts to the bottom"},{"line_number":60,"context_line":"            free \u003d float(\u0027-inf\u0027)"},{"line_number":61,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_3a2ba196","line":58,"updated":"2015-08-21 16:31:52.000000000","message":"this can be done with \u0027in\u0027 instead of intersection now.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a601aee83f3ea87a7ee6d02d7d0ef768e7518850","unresolved":false,"context_lines":[{"line_number":55,"context_line":"        reserved \u003d float(host_state.reserved_percentage) / 100"},{"line_number":56,"context_line":"        free_space \u003d host_state.free_capacity_gb"},{"line_number":57,"context_line":"        total_space \u003d host_state.total_capacity_gb"},{"line_number":58,"context_line":"        if {\u0027unknown\u0027}.intersection({total_space, free_space}):"},{"line_number":59,"context_line":"            # NOTE(u_glide): \"unknown\" capacity always sorts to the bottom"},{"line_number":60,"context_line":"            free \u003d float(\u0027-inf\u0027)"},{"line_number":61,"context_line":"        else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_9084450b","line":58,"in_reply_to":"fa1b9901_3a2ba196","updated":"2015-08-31 16:11:17.000000000","message":"Done","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"71b5f78db09bea3fd841f1e87d56cbebf2df629c","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        total_space \u003d host_state.total_capacity_gb"},{"line_number":58,"context_line":"        if {\u0027unknown\u0027}.intersection({total_space, free_space}):"},{"line_number":59,"context_line":"            # NOTE(u_glide): \"unknown\" capacity always sorts to the bottom"},{"line_number":60,"context_line":"            free \u003d float(\u0027-inf\u0027)"},{"line_number":61,"context_line":"        else:"},{"line_number":62,"context_line":"            total \u003d float(total_space)"},{"line_number":63,"context_line":"            if host_state.thin_provisioning:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_7d64b3e4","line":60,"updated":"2015-08-21 16:31:52.000000000","message":"free \u003d float(\u0027-inf\u0027) if CONF.capacity_weight_multiplier \u003e 0 else float(\u0027inf\u0027)","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"a601aee83f3ea87a7ee6d02d7d0ef768e7518850","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        total_space \u003d host_state.total_capacity_gb"},{"line_number":58,"context_line":"        if {\u0027unknown\u0027}.intersection({total_space, free_space}):"},{"line_number":59,"context_line":"            # NOTE(u_glide): \"unknown\" capacity always sorts to the bottom"},{"line_number":60,"context_line":"            free \u003d float(\u0027-inf\u0027)"},{"line_number":61,"context_line":"        else:"},{"line_number":62,"context_line":"            total \u003d float(total_space)"},{"line_number":63,"context_line":"            if host_state.thin_provisioning:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_f0c34136","line":60,"in_reply_to":"fa1b9901_7d64b3e4","updated":"2015-08-31 16:11:17.000000000","message":"Done","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"6e63fb119b6ec84708b9f7117cf00adea14a00b6","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        total_space \u003d host_state.total_capacity_gb"},{"line_number":58,"context_line":"        if {\u0027unknown\u0027}.intersection({total_space, free_space}):"},{"line_number":59,"context_line":"            # NOTE(u_glide): \"unknown\" capacity always sorts to the bottom"},{"line_number":60,"context_line":"            free \u003d float(\u0027-inf\u0027)"},{"line_number":61,"context_line":"        else:"},{"line_number":62,"context_line":"            total \u003d float(total_space)"},{"line_number":63,"context_line":"            if host_state.thin_provisioning:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_b7aedf7f","line":60,"in_reply_to":"fa1b9901_7d64b3e4","updated":"2015-08-21 19:40:14.000000000","message":"Hmm, this will take care of both positive and negative multiplier.  Sounds good.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"71b5f78db09bea3fd841f1e87d56cbebf2df629c","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            return weights"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        # NOTE(u_glide): Replace -inf with (minimum - 1) to avoid errors in"},{"line_number":84,"context_line":"        # manila.openstack.common.scheduler.base_weight.normalize() method"},{"line_number":85,"context_line":"        self.minval \u003d self.maxval"},{"line_number":86,"context_line":"        for val in weights:"},{"line_number":87,"context_line":"            if float(\u0027-inf\u0027) \u003c val \u003c self.minval:"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_40c4625e","line":84,"updated":"2015-08-21 16:31:52.000000000","message":"Fix normalize instead.  Also make sure it handle both min and max and inf and -inf correctly.  I don\u0027t think it does today.  How would that work?  Maybe normalize all the numbers and then use -1/+2 fo -inf/inf?  or maybe just normalize the numbers and leave -inf/inf alone.  I\u0027d think the later, but I\u0027m not sure I\u0027m seeing the whole situation here.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"626ce0b49215526106d23a52e96d4b53d42d8c39","unresolved":false,"context_lines":[{"line_number":81,"context_line":"            return weights"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"        # NOTE(u_glide): Replace -inf with (minimum - 1) to avoid errors in"},{"line_number":84,"context_line":"        # manila.openstack.common.scheduler.base_weight.normalize() method"},{"line_number":85,"context_line":"        self.minval \u003d self.maxval"},{"line_number":86,"context_line":"        for val in weights:"},{"line_number":87,"context_line":"            if float(\u0027-inf\u0027) \u003c val \u003c self.minval:"}],"source_content_type":"text/x-python","patch_set":3,"id":"da20952f_49122d64","line":84,"in_reply_to":"fa1b9901_40c4625e","updated":"2015-08-31 12:41:42.000000000","message":"We cannot directly modify openstack common code (which includes manila.openstack.common.scheduler.base_weight.normalize) so this functionality should be implemented here.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"805a4d4febe66f558d11eb785fb3c4c779969a1d","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                    self.minval \u003d val"},{"line_number":90,"context_line":"            self.minval -\u003d 1"},{"line_number":91,"context_line":"            return [self.minval if w \u003d\u003d float(\u0027-inf\u0027) else w for w in weights]"},{"line_number":92,"context_line":"        elif self.maxval \u003d\u003d float(\u0027inf\u0027):"},{"line_number":93,"context_line":"            self.maxval \u003d self.minval"},{"line_number":94,"context_line":"            for val in weights:"},{"line_number":95,"context_line":"                if self.maxval \u003c val \u003c float(\u0027inf\u0027):"}],"source_content_type":"text/x-python","patch_set":5,"id":"da20952f_48259459","line":92,"updated":"2015-08-31 20:14:08.000000000","message":"Seems like this should be if instead of elif.  Is it right for this particular code to assume that you can never have both a -inf and an inf?","commit_id":"762efd1ed749ac35de6f9f3c61fd20ff804b07c0"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"1909de87e9c8870e5289f85345df36dfbbe51269","unresolved":false,"context_lines":[{"line_number":89,"context_line":"                    self.minval \u003d val"},{"line_number":90,"context_line":"            self.minval -\u003d 1"},{"line_number":91,"context_line":"            return [self.minval if w \u003d\u003d float(\u0027-inf\u0027) else w for w in weights]"},{"line_number":92,"context_line":"        elif self.maxval \u003d\u003d float(\u0027inf\u0027):"},{"line_number":93,"context_line":"            self.maxval \u003d self.minval"},{"line_number":94,"context_line":"            for val in weights:"},{"line_number":95,"context_line":"                if self.maxval \u003c val \u003c float(\u0027inf\u0027):"}],"source_content_type":"text/x-python","patch_set":5,"id":"da20952f_858aa162","line":92,"in_reply_to":"da20952f_48259459","updated":"2015-09-01 07:24:14.000000000","message":"elif is correct choice here because we should have only -inf for minval or inf for maxval (lines 59-63)","commit_id":"762efd1ed749ac35de6f9f3c61fd20ff804b07c0"}],"manila/tests/scheduler/fakes.py":[{"author":{"_account_id":11047,"name":"Mark Sturdevant","email":"mark.sturdevant@ibm.com","username":"markstur"},"change_message_id":"71b5f78db09bea3fd841f1e87d56cbebf2df629c","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                                  total_capacity_gb\u003d\u0027unknown\u0027,"},{"line_number":144,"context_line":"                                  free_capacity_gb\u003d\u0027unknown\u0027,"},{"line_number":145,"context_line":"                                  reserved_percentage\u003d0,"},{"line_number":146,"context_line":"                                  provisioned_capacity_gb\u003d100,"},{"line_number":147,"context_line":"                                  max_over_subscription_ratio\u003d1.0,"},{"line_number":148,"context_line":"                                  thin_provisioning\u003dFalse),"},{"line_number":149,"context_line":"                             dict(pool_name\u003d\u0027pool6b\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_0093ca50","line":146,"updated":"2015-08-21 16:31:52.000000000","message":"This is good, but do we also need an unkown for provisioned_cap? I don\u0027t recall if that is allowed.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"},{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"6e63fb119b6ec84708b9f7117cf00adea14a00b6","unresolved":false,"context_lines":[{"line_number":143,"context_line":"                                  total_capacity_gb\u003d\u0027unknown\u0027,"},{"line_number":144,"context_line":"                                  free_capacity_gb\u003d\u0027unknown\u0027,"},{"line_number":145,"context_line":"                                  reserved_percentage\u003d0,"},{"line_number":146,"context_line":"                                  provisioned_capacity_gb\u003d100,"},{"line_number":147,"context_line":"                                  max_over_subscription_ratio\u003d1.0,"},{"line_number":148,"context_line":"                                  thin_provisioning\u003dFalse),"},{"line_number":149,"context_line":"                             dict(pool_name\u003d\u0027pool6b\u0027,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_172f8bf7","line":146,"in_reply_to":"fa1b9901_0093ca50","updated":"2015-08-21 19:40:14.000000000","message":"No, provisioned_cap should be a solid number.  A backend knows how much is provisioned, but just doesn\u0027t know what is the upper limit.","commit_id":"7932cdaf8e68b8a39133e5ac0e2359ff33818c95"}],"manila/tests/scheduler/test_host_manager.py":[{"author":{"_account_id":8851,"name":"Valeriy Ponomaryov","email":"kiparis.kh@gmail.com","username":"vponomaryov"},"change_message_id":"aa1ea66b35964742cdc8dae00b44b6346c2f1640","unresolved":false,"context_lines":[{"line_number":614,"context_line":""},{"line_number":615,"context_line":"        self.assertEqual(10000, fake_host.pools[\u0027pool3\u0027].total_capacity_gb)"},{"line_number":616,"context_line":"        self.assertEqual(10000, fake_host.pools[\u0027pool3\u0027].free_capacity_gb)"},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"    def test_update_from_share_unknown_capability(self):"},{"line_number":619,"context_line":"        share_capability \u003d {"},{"line_number":620,"context_line":"            \u0027total_capacity_gb\u0027: \u0027unknown\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa1b9901_b5522512","line":617,"updated":"2015-08-18 12:35:11.000000000","message":"No test case for situation when capacity is set as string and it is not equal to \"unknown\".","commit_id":"f11e8b83f8296a142836821f7598389c5fdcacf6"},{"author":{"_account_id":14232,"name":"Igor Malinovskiy","email":"u.glide@gmail.com","username":"imalinovskiy"},"change_message_id":"e542bb11318486ca722088456f0330182ae156cb","unresolved":false,"context_lines":[{"line_number":614,"context_line":""},{"line_number":615,"context_line":"        self.assertEqual(10000, fake_host.pools[\u0027pool3\u0027].total_capacity_gb)"},{"line_number":616,"context_line":"        self.assertEqual(10000, fake_host.pools[\u0027pool3\u0027].free_capacity_gb)"},{"line_number":617,"context_line":""},{"line_number":618,"context_line":"    def test_update_from_share_unknown_capability(self):"},{"line_number":619,"context_line":"        share_capability \u003d {"},{"line_number":620,"context_line":"            \u0027total_capacity_gb\u0027: \u0027unknown\u0027,"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa1b9901_198fd275","line":617,"in_reply_to":"fa1b9901_b5522512","updated":"2015-08-21 14:05:10.000000000","message":"Done","commit_id":"f11e8b83f8296a142836821f7598389c5fdcacf6"}]}
