Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Openstack Kilo Ceph backend KVM Password Injection

Hi All,

I have come to a bit of a standstill when i comes to password injection,

Ceph is our storage backend and using Openstack Kilo - Ubuntu 14.04

I have added the following in nova.conf on the compute:

[DEFAULT]
enable_instance_password=True
libvirt_inject_password=True

[libvirt]

virt_type = kvm
inject_password=True
inject_key=True
inject_partition=-1

libguestfs-tools are install and python-guestfs - Latest verions

I have also enabled root in cloud-init on the image that im using,

But when i try to build a VM and inject the password this is showing up in the logs:

2016-02-04 13:06:43.977 17405 DEBUG nova.virt.disk.api [req-dcd1f5f3-3502-489c-8b6e-311020f15124 - - - - -] Inject data image=rbd:vms/69707918-0ee3-4d14-ab22-8cbf0a9ebfed_disk:id=cinder:conf=/etc/ceph/ceph.conf key=None net=None metadata={} admin_password=<SANITIZED> files=[] partition=-1 use_cow=True inject_data /usr/lib/python2.7/dist-packages/nova/virt/disk/api.py:383

2016-02-04 13:06:43.977 17405 DEBUG nova.virt.disk.vfs.api [req-dcd1f5f3-3502-489c-8b6e-311020f15124 - - - - -] Instance for image imgfile=rbd:vms/69707918-0ee3-4d14-ab22-8cbf0a9ebfed_disk:id=cinder:conf=/etc/ceph/ceph.conf imgfmt=qcow2 partition=-1 instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:46

2016-02-04 13:06:43.978 17405 DEBUG nova.virt.disk.vfs.api [req-dcd1f5f3-3502-489c-8b6e-311020f15124 - - - - -] Using primary VFSGuestFS instance_for_image /usr/lib/python2.7/dist-packages/nova/virt/disk/vfs/api.py:50

2016-02-04 13:06:44.101 17405 WARNING nova.virt.disk.api [req-dcd1f5f3-3502-489c-8b6e-311020f15124 - - - - -] Ignoring error injecting data into image rbd:vms/69707918-0ee3-4d14-ab22-8cbf0a9ebfed_disk:id=cinder:conf=/etc/ceph/ceph.conf (libguestfs installed but not usable (/usr/bin/supermin-helper exited with error status 1.

Can anyone help me with this please?

Thanks,

James