From 0b51fe2cffe4c67507b478a1cc7f1f294ace2cf6 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Fri, 20 Jan 2012 23:15:33 -0800 Subject: [PATCH] Adds isolated hosts filter * Also removes a couple of duplicate tests Part of a series of commits that are moving all of the filtering done in simple scheduler into hosts filters so we can default to the distributed scheduler. Change-Id: I63b05d0c6476ff0ab9cc17e3e6c39f81bec37d77 --- nova/flags.py | 2 ++ nova/scheduler/simple.py | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/flags.py b/nova/flags.py index b9aad32b..4345b477 100644 --- a/nova/flags.py +++ b/nova/flags.py @@ -469,3 +469,5 @@ DEFINE_integer('service_down_time', 60, 'maximum time since last check-in for up service') DEFINE_string('default_schedule_zone', None, 'zone to use when user doesnt specify one') +DEFINE_list('isolated_images', [], 'Images to run on isolated host') +DEFINE_list('isolated_hosts', [], 'Host reserved for specific images') diff --git a/nova/scheduler/simple.py b/nova/scheduler/simple.py index 64ebfb75..11270a13 100644 --- a/nova/scheduler/simple.py +++ b/nova/scheduler/simple.py @@ -35,8 +35,6 @@ flags.DEFINE_integer("max_gigabytes", 10000, "maximum number of volume gigabytes to allow per host") flags.DEFINE_integer("max_networks", 1000, "maximum number of networks to allow per host") -flags.DEFINE_list('isolated_images', [], 'Images to run on isolated host') -flags.DEFINE_list('isolated_hosts', [], 'Host reserved for specific images') flags.DEFINE_boolean('skip_isolated_core_check', True, 'Allow overcommitting vcpus on isolated hosts')