Add aggregate_host_add and _delete to conductor.

Offload the db writes for adding and removing a host to or from
a host aggregate to the conductor service.

Part of blueprint no-db-compute.

Change-Id: I7c3da2d5c9fc6d7e72fb9371b7ea6a2b10c5218d
This commit is contained in:
Russell Bryant
2012-11-28 15:13:47 -05:00
parent 6c2fc3827f
commit d5208dbe56

View File

@@ -2096,6 +2096,7 @@ class XenAPIAggregateTestCase(stubs.XenAPITestBase):
host='host',
compute_driver='xenapi.XenAPIDriver',
node_availability_zone='avail_zone1')
self.flags(use_local=True, group='conductor')
host_ref = xenapi_fake.get_all('host')[0]
stubs.stubout_session(self.stubs, stubs.FakeSessionForVMTests)
self.context = context.get_admin_context()