Unable to Attach a Volume With Error "libvirtError: XML error: invalid secret uuid

Problem

When attaching a new volume to an existing instance, the following error is observed in the pf9-ostackhost log located at /var/log/pf9/ostackhost.log

ERROR nova.virt.libvirt.driver [...] [instance: 701a918f-7aaf-4530-9d4e-a4e94c74fbc9] Failed to attach volume at mountpoint: /dev/sdb: libvirtError: XML error: invalid secret uuid 'http://images.platform9.com/centos-7.1-cloudinit.qcow2'

Environment

  • Platform9 Managed OpenStack - All versions

  • Nova

  • Cinder

  • Ceph

Cause

The error observed is due to an incorrect Cinder configuration.

Resolution

  1. Check the Nova configuration file located at /opt/pf9/etc/nova/conf.d/nova_override.conf.

# less /opt/pf9/etc/nova/conf.d/nova_override.conf | grep rbdimages_type = rbdimages_rbd_pool = cinderimages_rbd_ceph_conf = /etc/ceph/ceph.confrbd_user = cinderrbd_secret_uuid = 0c3b58a3-a22e-4aa1-a917-999e13baa489
  1. Check the Cinder configuration file located under /opt/pf9/etc/pf9-cindervolume-base/conf.d on the Cinder nodes.

  1. Modify the rbd_secret_uuid in the Cinder configuration to match what is observed in Nova config.

  1. Restart the pf9-cindervolume-base service for the changes to take effect.

Last updated