Relation between Nova-compute ceph-mon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Charms Deployment Guide |
Fix Released
|
High
|
Peter Matulis | ||
OpenStack Nova Compute Charm |
Triaged
|
Undecided
|
Unassigned |
Bug Description
Hi,
I have an OpenStack cluster running version queens, deployed with Maas and juju (2.4.7)
Nova-compute charm = 291 series = bionic + xenial
Ceph mon = 32 series = xenial
Cinder ceph = 238
My compute host run 16.04, all fine and happy.
I want to add a nova compute node running 18.04, for nova everything is fine added to the openstack cluster, cinder-ceph is running ok.
The relation between ceph-mon and nova-compute is not completing. The error I get =
storage-backend relation's interface, ceph, is related awaiting the following data from the relationship: auth, key.
The secrets (ceph key) are not placed on the nova-compute host, secrets are not added to virsh.
1. What could be the problem ?
2. Is this configuration possible (mix 18.04 and 16.04 nova compute hosts)
Juju log on the ceph-mon:
2019-01-15 16:08:40 INFO juju.worker.
2019-01-15 16:08:40 DEBUG juju.worker.
2019-01-15 16:08:40 DEBUG juju.machinelock machinelock.go:180 machine lock released for uniter (run relation-changed (172; nova-compute-
2019-01-15 16:08:40 DEBUG juju.worker.
2019-01-15 16:08:40 DEBUG juju.worker.uniter resolver.go:123 no operations in progress; waiting for changes
2019-01-15 16:08:40 DEBUG juju.worker.uniter agent.go:17 [AGENT-STATUS] idle:
2019-01-15 16:11:36 DEBUG juju.worker.
2019-01-15 16:11:36 DEBUG juju.worker.uniter resolver.go:123 no operations in progress; waiting for changes
2019-01-15 16:11:36 DEBUG juju.worker.
2019-01-15 16:11:36 DEBUG juju.machinelock machinelock.go:156 acquire machine lock for uniter (run update-status hook)
2019-01-15 16:11:36 DEBUG juju.machinelock machinelock.go:166 machine lock acquired for uniter (run update-status hook)
2019-01-15 16:11:36 DEBUG juju.worker.
2019-01-15 16:11:36 DEBUG juju.worker.
2019-01-15 16:11:37 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:11:37 DEBUG juju-log Hardening function 'update_status'
2019-01-15 16:11:37 DEBUG worker.uniter.jujuc server.go:181 running hook tool "config-get"
2019-01-15 16:11:37 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:11:37 DEBUG juju-log No hardening applied to 'update_status'
2019-01-15 16:11:37 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:11:37 INFO juju-log Updating status.
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "application-
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-ids"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-list"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-ids"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-list"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:11:38 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
Juju log on the nova-compute:
2019-01-15 16:09:20 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:20 DEBUG juju-log ceph:172: adding section 'DEFAULT'
2019-01-15 16:09:20 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:20 DEBUG juju-log ceph:172: 1 section(s) found
2019-01-15 16:09:20 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:20 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:20 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:20 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-ids"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "unit-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-ids"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "network-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "relation-get"
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 DEBUG juju-log ceph:172: Generating template context for cloud-credentials
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 DEBUG juju-log ceph:172: Generating template context for ceph
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 INFO juju-log ceph:172: Missing required data: auth key
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 DEBUG juju-log ceph:172: Generating template context for ceph
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 INFO juju-log ceph:172: Missing required data: auth key
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 INFO juju-log ceph:172: ceph relation incomplete. Peer not ready?
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 DEBUG juju-log ceph:172: Generating template context for ceph
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 INFO juju-log ceph:172: Missing required data: auth key
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 DEBUG juju-log ceph:172: Generating template context for ceph
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 INFO juju-log ceph:172: Missing required data: auth key
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "juju-log"
2019-01-15 16:09:21 INFO juju-log ceph:172: storage-backend relation's interface, ceph, is related awaiting the following data from the relationship: auth, key.
2019-01-15 16:09:21 DEBUG worker.uniter.jujuc server.go:181 running hook tool "status-set"
2019-01-15 16:09:22 DEBUG worker.uniter.jujuc server.go:181 running hook tool "application-
2019-01-15 16:09:23 INFO juju.worker.
2019-01-15 16:09:23 DEBUG juju.worker.
2019-01-15 16:09:23 DEBUG juju.machinelock machinelock.go:180 machine lock released for uniter (run relation-changed (172; ceph-mon/1) hook)
2019-01-15 16:09:23 DEBUG juju.worker.
2019-01-15 16:09:23 DEBUG juju.worker.uniter resolver.go:123 no operations in progress; waiting for changes
2019-01-15 16:09:23 DEBUG juju.worker.uniter agent.go:17 [AGENT-STATUS] idle:
2019-01-15 16:09:23 DEBUG juju.worker.uniter resolver.go:123 no operations in progress; waiting for changes
Please advise.
Eric
Changed in charm-deployment-guide: | |
status: | New → Triaged |
Changed in charm-nova-compute: | |
status: | New → Triaged |
Changed in charm-deployment-guide: | |
assignee: | nobody → Peter Matulis (petermatulis) |
status: | Triaged → In Progress |
This is ultimately caused due to having a new ceph-mon charm that supports expected-osd-count, and your ceph-osd charm either not reporting, or not correctly reporting, the number of OSDS bootstrapped. This prevents the ceph-mon charm from being ready to hand out auth tokens.
Most like, you just need to upgrade your ceph-osd charm(s) in your environment to 18.11 so that ceph-mon un-sticks itself. Or, if you have 18.11 charms, count your OSDs and update your expected-osd-count to that number.
You can iterate on the ceph-osd relations to your mons to relation-get -r <rid> bootstrapped-osds ceph-osd/X. this should match the juju status "(XX OSDs)" output for that unit. Add them all together and they must add up to expected-osd-count or higher for ceph-mon to properly bootstrap and hand out credentials.