LXC instances cannot boot from volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Sudipta Biswas |
Bug Description
Nova Version: Kilo; 1:2015.
Steps to reproduce:
1. Create volume from image
2. Boot new instance from this volume
3. Observe error in nova-compute.log
Expected result: Instance boots successfully
Actual result: Failed to prep block device error
-------
When booting an LXC instance from an existing volume, nova-compute fails with:
File "/usr/lib/
block_
File "/usr/lib/
disk_path = root_disk[
KeyError: 'device_path'
This happens directly before connecting the volume. Debugging shows that the device path is indeed not present at this stage - but rather it shows up directly after _connect_volume(). Moving the faulting line down seems to solve the issue:
--- a/nova/
+++ b/nova/
@@ -4221,10 +4221,10 @@
if self._is_
- disk_path = root_disk[
+ disk_path = root_disk[
# Get the system metadata from the instance
tags: | added: lxc volumes |
Changed in nova: | |
assignee: | Daniel Stelter-Gliese (daniel-stelter-gliese) → Sudipta Biswas (sbiswas7) |
Changed in nova: | |
milestone: | none → liberty-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | liberty-3 → 12.0.0 |
Fix proposed to branch: master /review. openstack. org/188025
Review: https:/