Blocks on "Missing relations: identity" even when configured to manage only cinder-volume

Bug #1521604 reported by Florian Haas on 2015-12-01
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cinder (Juju Charms Collection)
Medium
James Page

Bug Description

The documented procedure for separating cinder-api from cinder-volume (https://jujucharms.com/cinder/) is to deploy two instances of this charm with different "enabled-services" options:

cat >cinder.cfg <<END
cinder-api:
    enabled-services: api, scheduler
cinder-volume:
    enabled-services: volume
    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-controller
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

James Page (james-page) wrote :

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.

Changed in cinder (Juju Charms Collection):
status: New → Triaged
importance: Undecided → Medium
milestone: none → 16.01
Florian Haas (fghaas) wrote :

Just to confirm, yes the cinder-volume is indeed functional when reporting being Blocked and missing the identity relation.

James Page (james-page) on 2016-01-06
Changed in cinder (Juju Charms Collection):
status: Triaged → In Progress
assignee: nobody → James Page (james-page)
James Page (james-page) on 2016-01-28
Changed in cinder (Juju Charms Collection):
milestone: 16.01 → 16.04
James Page (james-page) on 2016-02-08
Changed in cinder (Juju Charms Collection):
status: In Progress → Fix Released
milestone: 16.04 → 16.01
Florian Haas (fghaas) wrote :

Thanks for fixing this, James!

Adolfo R. Brandes (arbrandes) wrote :

I'm still encountering this on Trusty/Liberty deployments. Will the fix be backported?

Hi, i have this issue after a juju upgrade-charm for the cinder-volume services. The cinder-api are normal but the cinder-volume units are missing relations.
cs:trusty/cinder-252

Same with cinder-254. After update -> "Missing relations: identity"

Florian Haas (fghaas) wrote :

In cinder-257, this is now *actually* fixed.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers