Nova rescue fails for libvirt driver with config drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Shraddha Pandhe |
Bug Description
I am using config drive to boot VMs. In icehouse, I observed that nova rescue fails and leaves the VM in SHUTOFF state.
Short error log:
instances/
Difference in Havana and Icehouse code path:
# Havana
# Config drive
if configdrive.
LOG.
extra_md = {}
if admin_pass:
for f in ('user_name', 'project_name'):
if hasattr(context, f):
inst_md = instance_
with configdrive.
def basepath(fname='', suffix=suffix): << Adds suffix .rescue to disk.config.
return os.path.
# Icehouse:
# Config drive
if configdrive.
LOG.
extra_md = {}
if admin_pass:
for f in ('user_name', 'project_name'):
if hasattr(context, f):
inst_md = instance_
with configdrive.
@staticmethod
def _get_disk_
return os.path.
The suffix .rescue is missed here and hence, original disk.config is overwritten.
Following change fixed the issue for me:
configdrive_path = self._get_
@staticmethod
def _get_disk_
return os.path.
Changed in nova: | |
assignee: | nobody → Shraddha Pandhe (shraddha-pandhe) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: libvirt |
tags: | added: icehouse-backport-potential |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/102645
Review: https:/