)]}'
{"doc/source/devref/filter_scheduler.rst":[{"author":{"_account_id":91,"name":"Alvaro","email":"aloga@ifca.unican.es","username":"aloga"},"change_message_id":"d2cf952b0da63b0e86948b19a21892602aebcc38","unresolved":false,"context_lines":[{"line_number":79,"context_line":"* |RamFilter| - filters hosts by their RAM. Only hosts with sufficient RAM"},{"line_number":80,"context_line":"  to host the instance are passed."},{"line_number":81,"context_line":"* |AggregateRamFilter| - filters hosts by RAM with per-aggregate"},{"line_number":82,"context_line":"  ram_allocation_ratio setting. If no per-aggregate value found, it will fall"},{"line_number":83,"context_line":"  back to the global default ram_allocation_ratio. If more than one value"},{"line_number":84,"context_line":"  found for a host (meaning the host is in two differenet aggregate with"},{"line_number":85,"context_line":"  different ratio settings, which should be avoid by administrator), the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAPn%2F%2Fx%2B8%3D","line":82,"updated":"2013-06-21 12:21:55.000000000","message":"nit: is found","commit_id":"87bf224afd6970eedba73c1ca5d6a5ea56315241"},{"author":{"_account_id":2468,"name":"unicell","email":"unicell@gmail.com","username":"unicell"},"change_message_id":"a9bbe967b2ac7d8e160c96eae783b3f910eacae5","unresolved":false,"context_lines":[{"line_number":79,"context_line":"* |RamFilter| - filters hosts by their RAM. Only hosts with sufficient RAM"},{"line_number":80,"context_line":"  to host the instance are passed."},{"line_number":81,"context_line":"* |AggregateRamFilter| - filters hosts by RAM with per-aggregate"},{"line_number":82,"context_line":"  ram_allocation_ratio setting. If no per-aggregate value found, it will fall"},{"line_number":83,"context_line":"  back to the global default ram_allocation_ratio. If more than one value"},{"line_number":84,"context_line":"  found for a host (meaning the host is in two differenet aggregate with"},{"line_number":85,"context_line":"  different ratio settings, which should be avoid by administrator), the"}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAPn%2F%2Fxuw%3D","line":82,"in_reply_to":"AAAAPn%2F%2Fx%2B8%3D","updated":"2013-06-21 13:57:56.000000000","message":"Done","commit_id":"87bf224afd6970eedba73c1ca5d6a5ea56315241"},{"author":{"_account_id":91,"name":"Alvaro","email":"aloga@ifca.unican.es","username":"aloga"},"change_message_id":"d2cf952b0da63b0e86948b19a21892602aebcc38","unresolved":false,"context_lines":[{"line_number":81,"context_line":"* |AggregateRamFilter| - filters hosts by RAM with per-aggregate"},{"line_number":82,"context_line":"  ram_allocation_ratio setting. If no per-aggregate value found, it will fall"},{"line_number":83,"context_line":"  back to the global default ram_allocation_ratio. If more than one value"},{"line_number":84,"context_line":"  found for a host (meaning the host is in two differenet aggregate with"},{"line_number":85,"context_line":"  different ratio settings, which should be avoid by administrator), the"},{"line_number":86,"context_line":"  minimum value will be used."},{"line_number":87,"context_line":"* |SimpleCIDRAffinityFilter| - allows to put a new instance on a host within"}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAPn%2F%2Fx%2B4%3D","line":84,"updated":"2013-06-21 12:21:55.000000000","message":"nit: is found\n\ntypo: different","commit_id":"87bf224afd6970eedba73c1ca5d6a5ea56315241"},{"author":{"_account_id":2468,"name":"unicell","email":"unicell@gmail.com","username":"unicell"},"change_message_id":"a9bbe967b2ac7d8e160c96eae783b3f910eacae5","unresolved":false,"context_lines":[{"line_number":81,"context_line":"* |AggregateRamFilter| - filters hosts by RAM with per-aggregate"},{"line_number":82,"context_line":"  ram_allocation_ratio setting. If no per-aggregate value found, it will fall"},{"line_number":83,"context_line":"  back to the global default ram_allocation_ratio. If more than one value"},{"line_number":84,"context_line":"  found for a host (meaning the host is in two differenet aggregate with"},{"line_number":85,"context_line":"  different ratio settings, which should be avoid by administrator), the"},{"line_number":86,"context_line":"  minimum value will be used."},{"line_number":87,"context_line":"* |SimpleCIDRAffinityFilter| - allows to put a new instance on a host within"}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAPn%2F%2Fxus%3D","line":84,"in_reply_to":"AAAAPn%2F%2Fx%2B4%3D","updated":"2013-06-21 13:57:56.000000000","message":"Done","commit_id":"87bf224afd6970eedba73c1ca5d6a5ea56315241"},{"author":{"_account_id":91,"name":"Alvaro","email":"aloga@ifca.unican.es","username":"aloga"},"change_message_id":"d2cf952b0da63b0e86948b19a21892602aebcc38","unresolved":false,"context_lines":[{"line_number":82,"context_line":"  ram_allocation_ratio setting. If no per-aggregate value found, it will fall"},{"line_number":83,"context_line":"  back to the global default ram_allocation_ratio. If more than one value"},{"line_number":84,"context_line":"  found for a host (meaning the host is in two differenet aggregate with"},{"line_number":85,"context_line":"  different ratio settings, which should be avoid by administrator), the"},{"line_number":86,"context_line":"  minimum value will be used."},{"line_number":87,"context_line":"* |SimpleCIDRAffinityFilter| - allows to put a new instance on a host within"},{"line_number":88,"context_line":"  the same IP block."}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAPn%2F%2Fx%2B0%3D","line":85,"updated":"2013-06-21 12:21:55.000000000","message":"I\u0027d remove the \"which should be avoided  by the administrator phrase\". Why it should be avoided?","commit_id":"87bf224afd6970eedba73c1ca5d6a5ea56315241"},{"author":{"_account_id":2468,"name":"unicell","email":"unicell@gmail.com","username":"unicell"},"change_message_id":"a9bbe967b2ac7d8e160c96eae783b3f910eacae5","unresolved":false,"context_lines":[{"line_number":82,"context_line":"  ram_allocation_ratio setting. If no per-aggregate value found, it will fall"},{"line_number":83,"context_line":"  back to the global default ram_allocation_ratio. If more than one value"},{"line_number":84,"context_line":"  found for a host (meaning the host is in two differenet aggregate with"},{"line_number":85,"context_line":"  different ratio settings, which should be avoid by administrator), the"},{"line_number":86,"context_line":"  minimum value will be used."},{"line_number":87,"context_line":"* |SimpleCIDRAffinityFilter| - allows to put a new instance on a host within"},{"line_number":88,"context_line":"  the same IP block."}],"source_content_type":"text/x-rst","patch_set":3,"id":"AAAAPn%2F%2Fxuo%3D","line":85,"in_reply_to":"AAAAPn%2F%2Fx%2B0%3D","updated":"2013-06-21 13:57:56.000000000","message":"Done","commit_id":"87bf224afd6970eedba73c1ca5d6a5ea56315241"},{"author":{"_account_id":642,"name":"Matt Dietz","email":"matthew.dietz@gmail.com","username":"cerberus"},"change_message_id":"328640de702838256ae7870baa9aa026cda96009","unresolved":false,"context_lines":[{"line_number":81,"context_line":"* |AggregateRamFilter| - filters hosts by RAM with per-aggregate"},{"line_number":82,"context_line":"  ram_allocation_ratio setting. If no per-aggregate value is found, it will"},{"line_number":83,"context_line":"  fall back to the global default ram_allocation_ratio. If more than one value"},{"line_number":84,"context_line":"  is found for a host (meaning the host is in two differenet aggregate with"},{"line_number":85,"context_line":"  different ratio settings), the minimum value will be used."},{"line_number":86,"context_line":"* |SimpleCIDRAffinityFilter| - allows to put a new instance on a host within"},{"line_number":87,"context_line":"  the same IP block."}],"source_content_type":"text/x-rst","patch_set":4,"id":"AAAAPn%2F%2FhcM%3D","line":84,"updated":"2013-06-28 15:42:40.000000000","message":"Spelling mistake, plus I assume \"aggregate\" should be pluralized.","commit_id":"f3a6de6a1647b1d86e9d8750228536663b23cd3e"}],"nova/scheduler/filters/ram_filter.py":[{"author":{"_account_id":1849,"name":"Joe Gordon","email":"joe.gordon0@gmail.com","username":"jogo"},"change_message_id":"41b4fa06b790ab6242a4854dd672fee13b0249c2","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"ram_allocation_ratio_opt \u003d cfg.FloatOpt(\"ram_allocation_ratio\","},{"line_number":26,"context_line":"        default\u003d1.5,"},{"line_number":27,"context_line":"        help\u003d\"virtual ram to physical ram allocation ratio\")"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"CONF \u003d cfg.CONF"},{"line_number":30,"context_line":"CONF.register_opt(ram_allocation_ratio_opt)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAPn%2F%2FzSU%3D","line":27,"updated":"2013-06-20 22:10:52.000000000","message":"help string should be updated","commit_id":"fb96f30bff18e118703305888703549e2eede933"},{"author":{"_account_id":2468,"name":"unicell","email":"unicell@gmail.com","username":"unicell"},"change_message_id":"34ec765add092f02c9b692d93648d93963bf2e11","unresolved":false,"context_lines":[{"line_number":24,"context_line":""},{"line_number":25,"context_line":"ram_allocation_ratio_opt \u003d cfg.FloatOpt(\"ram_allocation_ratio\","},{"line_number":26,"context_line":"        default\u003d1.5,"},{"line_number":27,"context_line":"        help\u003d\"virtual ram to physical ram allocation ratio\")"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"CONF \u003d cfg.CONF"},{"line_number":30,"context_line":"CONF.register_opt(ram_allocation_ratio_opt)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAPn%2F%2Fy5E%3D","line":27,"in_reply_to":"AAAAPn%2F%2FzSU%3D","updated":"2013-06-21 08:40:18.000000000","message":"Done","commit_id":"fb96f30bff18e118703305888703549e2eede933"},{"author":{"_account_id":1849,"name":"Joe Gordon","email":"joe.gordon0@gmail.com","username":"jogo"},"change_message_id":"41b4fa06b790ab6242a4854dd672fee13b0249c2","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    Fall back to global ram_allocation_ratio if no per-aggregate setting found."},{"line_number":75,"context_line":"    \"\"\""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def _get_ram_allocation_ratio(self, host_state, filter_properties):"},{"line_number":78,"context_line":"        context \u003d filter_properties[\u0027context\u0027].elevated()"},{"line_number":79,"context_line":"        metadata \u003d db.aggregate_metadata_get_by_host("},{"line_number":80,"context_line":"                     context, host_state.host, key\u003d\u0027ram_allocation_ratio\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAPn%2F%2FzSQ%3D","line":77,"updated":"2013-06-20 22:10:52.000000000","message":"if a node has two ram_allocation_ratios assigned to it (assigned to two aggregates) can you throw a warning saying so","commit_id":"fb96f30bff18e118703305888703549e2eede933"},{"author":{"_account_id":2468,"name":"unicell","email":"unicell@gmail.com","username":"unicell"},"change_message_id":"34ec765add092f02c9b692d93648d93963bf2e11","unresolved":false,"context_lines":[{"line_number":74,"context_line":"    Fall back to global ram_allocation_ratio if no per-aggregate setting found."},{"line_number":75,"context_line":"    \"\"\""},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    def _get_ram_allocation_ratio(self, host_state, filter_properties):"},{"line_number":78,"context_line":"        context \u003d filter_properties[\u0027context\u0027].elevated()"},{"line_number":79,"context_line":"        metadata \u003d db.aggregate_metadata_get_by_host("},{"line_number":80,"context_line":"                     context, host_state.host, key\u003d\u0027ram_allocation_ratio\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAPn%2F%2FyyE%3D","line":77,"in_reply_to":"AAAAPn%2F%2FzSQ%3D","updated":"2013-06-21 08:40:18.000000000","message":"Done","commit_id":"fb96f30bff18e118703305888703549e2eede933"}],"nova/tests/scheduler/test_host_filters.py":[{"author":{"_account_id":1849,"name":"Joe Gordon","email":"joe.gordon0@gmail.com","username":"jogo"},"change_message_id":"41b4fa06b790ab6242a4854dd672fee13b0249c2","unresolved":false,"context_lines":[{"line_number":581,"context_line":"        # True: use ratio from aggregates"},{"line_number":582,"context_line":"        self.assertTrue(filt_cls.host_passes(host, filter_properties))"},{"line_number":583,"context_line":"        self.assertEqual(1024 * 2.0, host.limits[\u0027memory_mb\u0027])"},{"line_number":584,"context_line":""},{"line_number":585,"context_line":"    def test_disk_filter_passes(self):"},{"line_number":586,"context_line":"        self._stub_service_is_up(True)"},{"line_number":587,"context_line":"        filt_cls \u003d self.class_map[\u0027DiskFilter\u0027]()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAPn%2F%2FzSM%3D","line":584,"updated":"2013-06-20 22:10:52.000000000","message":"Can you add a test where node is in two different aggregates. with different ram_allocation_ratios","commit_id":"fb96f30bff18e118703305888703549e2eede933"},{"author":{"_account_id":2468,"name":"unicell","email":"unicell@gmail.com","username":"unicell"},"change_message_id":"34ec765add092f02c9b692d93648d93963bf2e11","unresolved":false,"context_lines":[{"line_number":581,"context_line":"        # True: use ratio from aggregates"},{"line_number":582,"context_line":"        self.assertTrue(filt_cls.host_passes(host, filter_properties))"},{"line_number":583,"context_line":"        self.assertEqual(1024 * 2.0, host.limits[\u0027memory_mb\u0027])"},{"line_number":584,"context_line":""},{"line_number":585,"context_line":"    def test_disk_filter_passes(self):"},{"line_number":586,"context_line":"        self._stub_service_is_up(True)"},{"line_number":587,"context_line":"        filt_cls \u003d self.class_map[\u0027DiskFilter\u0027]()"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAPn%2F%2FyyA%3D","line":584,"in_reply_to":"AAAAPn%2F%2FzSM%3D","updated":"2013-06-21 08:40:18.000000000","message":"Done","commit_id":"fb96f30bff18e118703305888703549e2eede933"}]}
