Bug #3886

ceph libvirt secret does not work when following nebula documention

Added by Laurence Gill almost 6 years ago. Updated almost 6 years ago.

Status:ClosedStart date:07/23/2015
Priority:LowDue date:
Assignee:Jaime Melis% Done:

0%

Category:Documentation
Target version:Release 4.14
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.12

Description

Not sure if this is a bug, or just a tweak to the docco is required.

When setting up ceph as per the documentation, the deployment does not work, I get the following error:

 [Z100][VMM][I]: error: Secret not found: rbd no secret matches uuid 'xxxxxxxxxxxxxxxxxxxxxxxx'

I tracked this down the the secret not being present under the default LIBVIRT_URI, which is qemu:///system

 $ id
uid=9869(oneadmin) gid=9869(oneadmin) groups=9869(oneadmin),103(kvm),106(libvirt)

 $ virsh --connect qemu:///system secret-list
 UUID                                  Usage
--------------------------------------------------------------------------------

It is only under the qemu:///session URI, as it was added as the oneadmin user:

$  virsh --connect qemu:///session secret-list 
 UUID                                  Usage
--------------------------------------------------------------------------------
 xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx   ceph client.libvirt-back secret

The documentation says to add the secret to libvirt as the oneadmin user:

http://docs.opennebula.org/4.12/administration/storage/ceph_ds.html#ceph-authentication-cephx

So, does this require a change to the doco to say to connect to the system URI and/or change the default LIBVIRT_URI, or should the default LIBVIRT_URI be qemu:///session, rather than the system URI:

$ grep LIBVIRT_URI /var/lib/one/remotes/vmm/kvm/kvmrc 
export LIBVIRT_URI=qemu:///system

History

#1 Updated by Ruben S. Montero almost 6 years ago

  • Category changed from Drivers - Storage to Documentation
  • Assignee set to Jaime Melis
  • Target version set to Release 4.14

#2 Updated by Jaime Melis almost 6 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

Also available in: Atom PDF