← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1678694] [NEW] Can't attach volume to volume-backed instance

 

Public bug reported:

When trying to attach a cinder volume to an instance that was launched
with a cinder root drive, the attachment silently fails both on the CLI
and in Horizon. From the nova-compute.log on the hypervisor,
"libvirtError: internal error: unable to execute QEMU command 'object-
add': attempt to add duplicate property 'scsi0-0-0-0-secret0' to object
(type 'container')" - so it seems clear that cinder is unaware of the
existing volume attached (as the root drive) to the instance.

Steps to reproduce:
1) Launch an instance (either via CLI or in Horizon), specifying a cinder volume as the root
2) Create a volume and try to attach it to the instance

Expected outcome:
Second volume attaches successfully to the instance

Actual outcome:
Volume silently fails to attach, remains in "available" state, error log as above in nova-compute.log

Environment
CentOS 7.2
Mitaka (13.1.2-1.el7)
libvirt+kvm
ceph storage

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1678694

Title:
  Can't attach volume to volume-backed instance

Status in OpenStack Compute (nova):
  New

Bug description:
  When trying to attach a cinder volume to an instance that was launched
  with a cinder root drive, the attachment silently fails both on the
  CLI and in Horizon. From the nova-compute.log on the hypervisor,
  "libvirtError: internal error: unable to execute QEMU command 'object-
  add': attempt to add duplicate property 'scsi0-0-0-0-secret0' to
  object (type 'container')" - so it seems clear that cinder is unaware
  of the existing volume attached (as the root drive) to the instance.

  Steps to reproduce:
  1) Launch an instance (either via CLI or in Horizon), specifying a cinder volume as the root
  2) Create a volume and try to attach it to the instance

  Expected outcome:
  Second volume attaches successfully to the instance

  Actual outcome:
  Volume silently fails to attach, remains in "available" state, error log as above in nova-compute.log

  Environment
  CentOS 7.2
  Mitaka (13.1.2-1.el7)
  libvirt+kvm
  ceph storage

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1678694/+subscriptions


Follow ups