puppet nova not setting secret value for rbd

Bug #1427792 reported by Arnaud Morin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-openstack
Invalid
Undecided
Arnaud Morin

Bug Description

When using the puppet-nova module, the rbd class is not setting the secret in virsh.

My class:

  class { '::nova::compute::rbd':
    libvirt_rbd_user => 'cinder',
    libvirt_rbd_secret_uuid => '457eb676-33da-42ec-9a8c-9293d545c337',
    libvirt_images_rbd_pool => 'vms',
    rbd_keyring => 'client.cinder',
  }

should produce a valid secret in nova that can be retrieve with:
virsh secret-get-value --secret 457eb676-33da-42ec-9a8c-9293d545c337

But it return that the secret does not have any value.

This bug is introduced by the unless statement on rbd.pp file line 80:
unless => "/usr/bin/virsh secret-list | grep ${libvirt_rbd_secret_uuid}",

The grep will find the value even if the secret is not set (but is defined).

Revision history for this message
Arnaud Morin (arnaud-morin) wrote :
Changed in puppet-openstack:
status: New → Invalid
assignee: nobody → Arnaud Morin (arnaud-morin)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.