Blocks on "Missing relations: identity" even when configured to manage only cinder-volume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder (Juju Charms Collection) |
Fix Released
|
Medium
|
James Page |
Bug Description
The documented procedure for separating cinder-api from cinder-volume (https:/
cat >cinder.cfg <<END
cinder-api:
enabled-
cinder-volume:
enabled-
block-device: sdc
overwrite: true
END
juju deploy --config=cinder.cfg cinder cinder-api
juju deploy --config=cinder.cfg cinder cinder-volume
juju add-relation cinder-api mysql
juju add-relation cinder-api rabbitmq-server
juju add-relation cinder-api keystone
juju add-relation cinder-api nova-cloud-
juju add-relation cinder-volume mysql
juju add-relation cinder-volume rabbitmq-server
While the documentation correctly states that there should be *no* relation between cinder-volume and keystone, "juju stat" for cinder-volume would still return:
cinder-volume:
charm: cs:trusty/cinder-31
exposed: false
service-status:
current: blocked
message: 'Missing relations: identity'
since: 01 Dec 2015 12:19:59Z
The relation here is not "missing", as the service isn't an API service and thus doesn't need to register an endpoint.
If the user now *does* create the relation, the cinder-volume charm creates a Keystone endpoint with the IP of the volume service, overwriting the correct one for the API, which is useless and renders Cinder non-functional in the absence of a working endpoint.
Related branches
- Liam Young (community): Approve
-
Diff: 98 lines (+44/-2)4 files modifiedhooks/cinder_hooks.py (+6/-2)
hooks/cinder_utils.py (+9/-0)
unit_tests/test_cinder_hooks.py (+8/-0)
unit_tests/test_cinder_utils.py (+21/-0)
- OpenStack Charmers: Pending requested
-
Diff: 6465 lines (+4706/-553) (has conflicts)50 files modified.bzrignore (+2/-0)
.testr.conf (+8/-0)
actions/openstack_upgrade.py (+44/-0)
config.yaml (+47/-10)
hooks/charmhelpers/cli/__init__.py (+191/-0)
hooks/charmhelpers/cli/benchmark.py (+36/-0)
hooks/charmhelpers/cli/commands.py (+32/-0)
hooks/charmhelpers/cli/hookenv.py (+23/-0)
hooks/charmhelpers/cli/host.py (+31/-0)
hooks/charmhelpers/cli/unitdata.py (+39/-0)
hooks/charmhelpers/contrib/charmsupport/nrpe.py (+52/-14)
hooks/charmhelpers/contrib/network/ip.py (+21/-19)
hooks/charmhelpers/contrib/openstack/amulet/deployment.py (+150/-11)
hooks/charmhelpers/contrib/openstack/amulet/utils.py (+650/-1)
hooks/charmhelpers/contrib/openstack/context.py (+122/-18)
hooks/charmhelpers/contrib/openstack/files/check_haproxy.sh (+7/-5)
hooks/charmhelpers/contrib/openstack/neutron.py (+40/-0)
hooks/charmhelpers/contrib/openstack/templates/ceph.conf (+6/-0)
hooks/charmhelpers/contrib/openstack/templates/haproxy.cfg (+16/-9)
hooks/charmhelpers/contrib/openstack/utils.py (+359/-8)
hooks/charmhelpers/contrib/python/packages.py (+13/-4)
hooks/charmhelpers/contrib/storage/linux/ceph.py (+652/-49)
hooks/charmhelpers/contrib/storage/linux/loopback.py (+10/-0)
hooks/charmhelpers/core/files.py (+45/-0)
hooks/charmhelpers/core/hookenv.py (+496/-175)
hooks/charmhelpers/core/host.py (+107/-3)
hooks/charmhelpers/core/hugepage.py (+71/-0)
hooks/charmhelpers/core/kernel.py (+68/-0)
hooks/charmhelpers/core/services/helpers.py (+40/-5)
hooks/charmhelpers/core/templating.py (+21/-8)
hooks/charmhelpers/fetch/__init__.py (+46/-9)
hooks/charmhelpers/fetch/archiveurl.py (+1/-1)
hooks/charmhelpers/fetch/bzrurl.py (+22/-32)
hooks/charmhelpers/fetch/giturl.py (+29/-14)
hooks/cinder_hooks.py (+13/-0)
hooks/cinder_utils.py (+30/-9)
metadata.yaml (+10/-2)
requirements.txt (+11/-0)
test-requirements.txt (+8/-0)
tests/052-basic-trusty-kilo-git (+12/-0)
tests/basic_deployment.py (+5/-0)
tests/charmhelpers/contrib/openstack/amulet/deployment.py (+150/-11)
tests/charmhelpers/contrib/openstack/amulet/utils.py (+650/-1)
tests/tests.yaml (+20/-0)
tox.ini (+29/-0)
unit_tests/test_actions_git_reinstall.py (+6/-17)
unit_tests/test_actions_openstack_upgrade.py (+68/-0)
unit_tests/test_cinder_hooks.py (+17/-25)
unit_tests/test_cinder_utils.py (+170/-75)
unit_tests/test_cluster_hooks.py (+10/-18)
Changed in cinder (Juju Charms Collection): | |
status: | Triaged → In Progress |
assignee: | nobody → James Page (james-page) |
Changed in cinder (Juju Charms Collection): | |
milestone: | 16.01 → 16.04 |
Changed in cinder (Juju Charms Collection): | |
status: | In Progress → Fix Released |
milestone: | 16.04 → 16.01 |
Hi Florian
Sounds like a couple of issues here; firstly the status reporting for role limited cinder services and the fact that a cinder service not running the API will happily try to register an endpoint.
Marking 'Triaged' - I think the cinder-volume service should be functional despite its 'blocked' status; so marking as Medium importance.