Beispiel #1
0
 def setUp(self):
     super(TestSchedulerHook, self).setUp()
     self.hook = std_plugins.SchedulerHook()
     self.data = {
         'inventory': {
             'cpu': {
                 'count': 2,
                 'architecture': 'x86_64'
             },
             'memory': {
                 'physical_mb': 1024
             },
         },
         'root_disk': {
             'name': '/dev/sda',
             'size': 21 * units.Gi
         }
     }
     self.old_data = {
         'local_gb': 20,
         'memory_mb': 1024,
         'cpus': 2,
         'cpu_arch': 'x86_64'
     }
     self.node_info = node_cache.NodeInfo(uuid=self.uuid,
                                          started_at=0,
                                          node=self.node)
Beispiel #2
0
 def setUp(self):
     super(TestSchedulerHook, self).setUp()
     self.hook = std_plugins.SchedulerHook()
     self.data = {
         'local_gb': 20,
         'memory_mb': 1024,
         'cpus': 2,
         'cpu_arch': 'x86_64'
     }
     self.node_patches = []
     self.ports_patches = {}
     self.node_info = node_cache.NodeInfo(uuid=self.uuid,
                                          started_at=0,
                                          node=self.node)
Beispiel #3
0
 def setUp(self):
     super(TestSchedulerHook, self).setUp()
     self.hook = std_plugins.SchedulerHook()
     self.node_info = node_cache.NodeInfo(uuid=self.uuid,
                                          started_at=0,
                                          node=self.node)