diff options
| author | unicell <unicell@gmail.com> | 2013-02-19 18:07:29 +0800 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2013-02-20 02:23:46 +0000 |
| commit | a2fcb1ab08d2376aa9439ae2ddd0097ef7e78ba3 (patch) | |
| tree | 46ae90c7b112266140fd014319885b4e46eae585 /nova | |
| parent | 4bc4b25c8d155855b16b42a7f87eb2e1f1bd061b (diff) | |
Fix instance directory path for lxc
Commit 12b8bd380e22a40e10e9d2758f5a0d594517de51 triggers a regression
when starting a STOPPED LXC instance. Instance referecne is needed to
correctly setup container rootfs path.
Change-Id: Id55b7f3a631e80a0da3f52c55784414105a61142
Diffstat (limited to 'nova')
| -rwxr-xr-x | nova/virt/libvirt/driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/driver.py b/nova/virt/libvirt/driver.py index e7d4d71a7..258412822 100755 --- a/nova/virt/libvirt/driver.py +++ b/nova/virt/libvirt/driver.py @@ -1111,7 +1111,7 @@ class LibvirtDriver(driver.ComputeDriver): def power_on(self, instance): """Power on the specified instance.""" dom = self._lookup_by_name(instance['name']) - self._create_domain(domain=dom) + self._create_domain(domain=dom, instance=instance) timer = utils.FixedIntervalLoopingCall(self._wait_for_running, instance) timer.start(interval=0.5).wait() |
