Removing instance backing file causes nova to crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Michael Still |
Bug Description
If you delete the backing file of a running instance, nova-compute will crash on startup. Interestingly, this crash occurs regardless of whether the running instance is in the nova db.
Steps to reproduce:
> (launch instance)
> rm /opt/stack/
> Optional: mysql nova: delete from instance_
> restart nova-compute
Expected:
nova-compute starts
Actual:
Stderr: "qemu-img: Could not open '/opt/stack/
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/opt/stack/
(nova): TRACE: service.wait()
(nova): TRACE: File "/opt/stack/
(nova): TRACE: _launcher.wait()
(nova): TRACE: File "/opt/stack/
(nova): TRACE: service.wait()
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self._exit_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return hubs.get_
(nova): TRACE: File "/usr/lib/
(nova): TRACE: return self.greenlet.
(nova): TRACE: File "/usr/lib/
(nova): TRACE: result = function(*args, **kwargs)
(nova): TRACE: File "/opt/stack/
(nova): TRACE: server.start()
(nova): TRACE: File "/opt/stack/
(nova): TRACE: self.manager.
(nova): TRACE: File "/opt/stack/
(nova): TRACE: self.driver.
(nova): TRACE: File "/opt/stack/
(nova): TRACE: 'disk_available
(nova): TRACE: File "/opt/stack/
(nova): TRACE: disk_infos = utils.loads(
(nova): TRACE: File "/opt/stack/
(nova): TRACE: out, err = utils.execute(
(nova): TRACE: File "/opt/stack/
(nova): TRACE: cmd=' '.join(cmd))
(nova): TRACE: ProcessExecutio
(nova): TRACE: Command: qemu-img info /opt/stack/
(nova): TRACE: Exit code: 1
(nova): TRACE: Stdout: ''
This popped up because instance cleanup is broken for me on devstack. Every time I run ./stack.sh virsh destroy fails, but the backing files are removed. Thus the system is left in a state where I can't launch anything.
Changed in nova: | |
assignee: | nobody → Nagaraju-Bingi (nagaraju-bingi) |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-2 → 2013.1 |
Hi Nagaraju-Bingi, Is this still "in progress"?