ceph-access relation not always completing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder-Ceph charm |
Fix Released
|
Critical
|
Chris MacNaughton |
Bug Description
For OpenStack Ocata and newer a ceph-access relation between cinder-ceph and nova-compute is required for Nova's use of RBD for Boot from Volume among other things.
However, the relation does not always complete, as a consequence nova-compute never receives the required information for setting up the secrets with libvirt on the nova-compute units.
I am currently trying to figure out what leads to this situation and will follow up with a remedy when I find it.
Some log excerpts from /var/log/
2017-08-18 13:46:54 INFO juju-log ceph:24: Making dir /var/lib/
2017-08-18 13:46:54 INFO juju-log ceph:24: Making dir /etc/ceph root:root 555
2017-08-18 13:46:55 INFO juju-log ceph:24: Registered config file: /var/lib/
2017-08-18 13:47:00 DEBUG juju-log ceph:24: Generating template context for ceph
2017-08-18 13:47:02 INFO juju-log ceph:24: Missing required data: key auth
2017-08-18 13:47:03 INFO juju-log ceph:24: ceph relation's interface, ceph, is related awaiting the following data from the relationship: key, auth.
2017-08-18 13:47:15 INFO juju-log ceph-access:57: Making dir /var/lib/
2017-08-18 13:47:15 INFO juju-log ceph-access:57: Making dir /etc/ceph root:root 555
2017-08-18 13:47:16 INFO juju-log ceph-access:57: Registered config file: /var/lib/
2017-08-18 13:47:16 INFO juju-log ceph-access:57: Unknown hook ceph-access-
2017-08-18 13:47:20 DEBUG juju-log ceph-access:57: Generating template context for ceph
2017-08-18 13:47:23 INFO juju-log ceph-access:57: Missing required data: key auth
2017-08-18 13:47:23 INFO juju-log ceph-access:57: ceph relation's interface, ceph, is related awaiting the following data from the relationship: key, auth.
2017-08-18 13:47:38 INFO juju-log ceph-access:57: Making dir /var/lib/
2017-08-18 13:47:38 INFO juju-log ceph-access:57: Making dir /etc/ceph root:root 555
2017-08-18 13:47:38 INFO juju-log ceph-access:57: Registered config file: /var/lib/
2017-08-18 13:47:38 DEBUG juju-log ceph-access:57: Generating template context for ceph
2017-08-18 13:47:41 INFO juju-log ceph-access:57: Missing required data: key auth
2017-08-18 13:47:42 INFO juju-log ceph-access:57: Deferring key provision until ceph relation complete
2017-08-18 13:47:48 DEBUG juju-log ceph-access:57: Generating template context for ceph
2017-08-18 13:47:48 INFO juju-log ceph-access:57: Missing required data: key auth
2017-08-18 13:47:48 INFO juju-log ceph-access:57: ceph relation's interface, ceph, is related awaiting the following data from the relationship: key, auth.
2017-08-18 13:48:03 INFO juju-log ceph-access:57: Making dir /var/lib/
2017-08-18 13:48:03 INFO juju-log ceph-access:57: Making dir /etc/ceph root:root 555
2017-08-18 13:48:03 INFO juju-log ceph-access:57: Registered config file: /var/lib/
2017-08-18 13:48:04 INFO juju-log ceph-access:57: Unknown hook ceph-access-
2017-08-18 13:48:09 DEBUG juju-log ceph-access:57: Generating template context for ceph
2017-08-18 13:48:11 INFO juju-log ceph-access:57: Missing required data: key auth
2017-08-18 13:48:11 INFO juju-log ceph-access:57: ceph relation's interface, ceph, is related awaiting the following data from the relationship: key, auth.
2017-08-18 13:48:30 INFO juju-log ceph:24: Making dir /var/lib/
2017-08-18 13:48:30 INFO juju-log ceph:24: Making dir /etc/ceph root:root 555
2017-08-18 13:48:30 INFO juju-log ceph:24: Registered config file: /var/lib/
2017-08-18 13:48:30 DEBUG juju-log ceph:24: Generating template context for ceph
2017-08-18 13:48:33 INFO juju-log ceph:24: Missing required data: key auth
2017-08-18 13:48:33 INFO juju-log ceph:24: ceph relation incomplete. Peer not ready?
2017-08-18 13:48:38 DEBUG juju-log ceph:24: Generating template context for ceph
2017-08-18 13:48:38 INFO juju-log ceph:24: Missing required data: key auth
2017-08-18 13:48:39 INFO juju-log ceph:24: ceph relation's interface, ceph, is related awaiting the following data from the relationship: key, auth.
2017-08-18 13:48:43 INFO juju-log ceph:24: Making dir /var/lib/
2017-08-18 13:48:44 INFO juju-log ceph:24: Making dir /etc/ceph root:root 555
2017-08-18 13:48:44 INFO juju-log ceph:24: Registered config file: /var/lib/
2017-08-18 13:48:51 DEBUG juju-log ceph:24: Generating template context for ceph
2017-08-18 13:49:00 INFO juju-log ceph:24: Unit is ready
2017-08-18 13:49:31 INFO juju-log ceph:24: Making dir /var/lib/
2017-08-18 13:49:31 INFO juju-log ceph:24: Making dir /etc/ceph root:root 555
2017-08-18 13:49:32 INFO juju-log ceph:24: Registered config file: /var/lib/
2017-08-18 13:49:32 DEBUG juju-log ceph:24: Generating template context for ceph
2017-08-18 13:49:41 INFO ceph-relation-
2017-08-18 13:49:41 INFO ceph-relation-
2017-08-18 13:49:41 DEBUG juju-log ceph:24: Created new ceph keyring at /etc/ceph/
2017-08-18 13:49:42 DEBUG juju-log ceph:24: Sending request 15936915-
2017-08-18 13:49:49 INFO juju-log ceph:24: Unit is ready
After the ceph relation is complete and the auth and key is in place no attempt is made at completing the ceph-access relation ever again.
tags: | added: backport-potential sts |
summary: |
- ceph-access relation not allways completing + ceph-access relation not always completing |
Changed in charm-cinder-ceph: | |
milestone: | none → 17.08 |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in charm-cinder-ceph: | |
assignee: | nobody → Chris MacNaughton (chris.macnaughton) |
Changed in charm-cinder-ceph: | |
status: | Fix Committed → Fix Released |
I can confirm that (Ocata, 17.02 charms), one of the consequences is that you may have an incorrect secret passed to QEMU.
As a result it will fail with "process exited while connecting to monitor".
2017-08-18 13:02:47.123 13832 ERROR nova.compute. manager [instance: cd682722- 6417-4df1- 92b5-dd4c5215e6 c7] libvirtError: internal error: process exited while connecting to monitor: 2017-08- 18T13:02: 46.126047Z qemu-system-x86_64: -drive file=rbd: cinder- ceph/volume- 2aabe89d- 6feb-44f5- 8bf0-85f270546b e9:id=cinder- ceph:key= AQBfjZVZ+ BtmKBAAsNrqkZfD BSc/GdoufBtHPA= =:auth_ supported= cephx\; none:mon_ host=10. 44.91.10\ :6789\; 10.44.91. 23\:6789\ ;10.44. 91.26\: 6789,format= raw,if= none,id= drive-virtio
I had to remove/add a relation between nova-compute-kvm and cinder-ceph as a workaround.
The secret was simply incorrect.