)]}'
{"nova/scheduler/filters/core_filter.py":[{"author":{"_account_id":688,"name":"Sandy Walsh","email":"sandy.walsh@rackspace.com","username":"sandy-walsh"},"change_message_id":"c6815be0efc221dc6757455dc21ef75fdf373902","unresolved":false,"context_lines":[{"line_number":31,"context_line":"    \"\"\"CoreFilter filters based on CPU core utilization.\"\"\""},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def host_passes(self, host_state, filter_properties):"},{"line_number":34,"context_line":"        \"\"\"Return a list of hosts that can create instance_type.\"\"\""},{"line_number":35,"context_line":"        instance_type \u003d filter_properties.get(\u0027instance_type\u0027)"},{"line_number":36,"context_line":"        if host_state.topic !\u003d \u0027compute\u0027 or not instance_type:"},{"line_number":37,"context_line":"            return True"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAD3%2F%2F8IQ%3D","line":34,"updated":"2012-01-20 14:45:18.000000000","message":"Returns True/False if host has sufficient CPU.","commit_id":"eb938ab79b3f2e15e9c4a814a0714a2f934b2eaf"},{"author":{"_account_id":688,"name":"Sandy Walsh","email":"sandy.walsh@rackspace.com","username":"sandy-walsh"},"change_message_id":"c6815be0efc221dc6757455dc21ef75fdf373902","unresolved":false,"context_lines":[{"line_number":33,"context_line":"    def host_passes(self, host_state, filter_properties):"},{"line_number":34,"context_line":"        \"\"\"Return a list of hosts that can create instance_type.\"\"\""},{"line_number":35,"context_line":"        instance_type \u003d filter_properties.get(\u0027instance_type\u0027)"},{"line_number":36,"context_line":"        if host_state.topic !\u003d \u0027compute\u0027 or not instance_type:"},{"line_number":37,"context_line":"            return True"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"        if not host_state.vcpus_total:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAD3%2F%2F8IM%3D","line":36,"updated":"2012-01-20 14:45:18.000000000","message":"do we still need this? I thought we dropped volume/network support in filters?","commit_id":"eb938ab79b3f2e15e9c4a814a0714a2f934b2eaf"},{"author":{"_account_id":688,"name":"Sandy Walsh","email":"sandy.walsh@rackspace.com","username":"sandy-walsh"},"change_message_id":"c6815be0efc221dc6757455dc21ef75fdf373902","unresolved":false,"context_lines":[{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        instance_vcpus \u003d instance_type[\u0027vcpus\u0027]"},{"line_number":45,"context_line":"        vcpus_total \u003d host_state.vcpus_total * FLAGS.cpu_allocation_ratio"},{"line_number":46,"context_line":"        if (vcpus_total - host_state.vcpus_used) \u003c instance_vcpus:"},{"line_number":47,"context_line":"            return False"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAD3%2F%2F8II%3D","line":46,"updated":"2012-01-20 14:45:18.000000000","message":"return (vcpus_total - host_state.vcpus_used) \u003e\u003d instance_vcpus","commit_id":"eb938ab79b3f2e15e9c4a814a0714a2f934b2eaf"}]}
