diff options
| author | Soren Hansen <soren@linux2go.dk> | 2011-01-25 20:49:29 +0100 |
|---|---|---|
| committer | Soren Hansen <soren@linux2go.dk> | 2011-01-25 20:49:29 +0100 |
| commit | f51526b596f3d89cda2ec4501e19baf085c534e0 (patch) | |
| tree | f529768512dcedb2a2b9e0ba7e44524c8fb15df9 /nova/compute | |
| parent | 3b06788ba2e8184e17f875f41ced0bbc0254beac (diff) | |
Add a host argument to virt driver's init_host method. It will be set to the name of host it's running on.
Make libvirt's init_host method go and look at what virtual machines are running when the compute worker starts up. This ensures firewalls are set up correctly for existing VM's. It also enables easier rolling upgrades.
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 6f09ce674..5ebf3f08d 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -118,7 +118,7 @@ class ComputeManager(manager.Manager): """Do any initialization that needs to be run if this is a standalone service. """ - self.driver.init_host() + self.driver.init_host(host=self.host) def _update_state(self, context, instance_id): """Update the state of an instance from the driver info.""" |
