SUSE Cloud – missing cinder key on computes - part2

Posted on Thu 07 December 2017 in openstack • 1 min read

I've found the root cause for the missing cinder key on the computes.

chef-client output - without any files:

[2017-11-30T09:37:33+01:00] INFO: Processing package[ceph-common] action install (nova::ceph line 50)
[2017-11-30T09:37:33+01:00] INFO: Ceph configuration file is missing; skipping the ceph setup for backend ceph-hdd
[2017-11-30T09:37:33+01:00] INFO: Ceph configuration file is missing; skipping the ceph setup for backend ceph-ssd

chef-client output - only with ceph.conf:

[2017-11-30T09:40:00+01:00] INFO: Processing package[ceph-common] action install (nova::ceph line 50)
[2017-11-30T09:40:00+01:00] INFO: Ceph user keyring wasn't provided for backend ceph-hdd
[2017-11-30T09:40:00+01:00] INFO: Ceph user keyring wasn't provided for backend ceph-ssd

Still not the right secret. The correct name should be "ceph crowbar-#uuid# name"

root@d98-f2-b3-9e-d6-30:~ # virsh secret-list
 UUID                                  Usage
--------------------------------------------------------------------------------
 5b7c1b36-9093-4a13-b14d-da8b8cbdd8a6  ceph client.cinder secret

chef-client output - now with the key and the ceph.conf:

[2017-11-30T09:51:16+01:00] INFO: Processing package[ceph-common] action install (nova::ceph line 50)
[2017-11-30T09:51:16+01:00] WARN: Cloning resource attributes for ruby_block[save nova key as libvirt secret] from prior resource (CHEF-3694)
[2017-11-30T09:51:16+01:00] WARN: Previous ruby_block[save nova key as libvirt secret]: /var/chef/cache/cookbooks/nova/recipes/ceph.rb:94:in `block in from_file'
[2017-11-30T09:51:16+01:00] WARN: Current  ruby_block[save nova key as libvirt secret]: /var/chef/cache/cookbooks/nova/recipes/ceph.rb:94:in `block in from_file'

Yeah. Finally!

root@d98-f2-b3-9e-d6-30:~ # virsh secret-list
 UUID                                  Usage
--------------------------------------------------------------------------------
 5b7c1b36-9093-4a13-b14d-da8b8cbdd8a6  ceph crowbar-5b7c1b36-9093-4a13-b14d-da8b8cbdd8a6 secret
 7003682d-80fe-4258-b2bb-e6c1b628aa5e  ceph crowbar-7003682d-80fe-4258-b2bb-e6c1b628aa5e secret