cinder-volume fails to start in Ocata when no backend is connected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Fix Released
|
Critical
|
Liam Young | ||
cinder (Juju Charms Collection) |
Invalid
|
Critical
|
Liam Young |
Bug Description
When deploying the cinder charm using Ocata and no backend charm connected, the cinder-volume service fails to start. Error from cinder-volume.log:
Configuration for cinder-volume does not specify "enabled_backends". Using DEFAULT section to configure drivers is not supported since Ocata.
No volume service(s) started successfully, terminating.
The charm eventually reports the dead services via juju status:
Services not running that should be: cinder-volume
The easiest way to see this is to run the amulet test tests/gate-
2017-02-16 09:17:07,356 create_
2017-02-16 09:17:14,114 resource_
2017-02-16 09:17:18,304 resource_
....
2017-02-16 09:19:19,590 resource_
2017-02-16 09:19:19,590 resource_
Changed in cinder (Juju Charms Collection): | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Liam Young (gnuoy) |
milestone: | none → 17.01 |
Changed in cinder (Juju Charms Collection): | |
status: | Confirmed → In Progress |
Changed in charm-cinder: | |
assignee: | nobody → Liam Young (gnuoy) |
importance: | Undecided → Critical |
status: | New → In Progress |
Changed in cinder (Juju Charms Collection): | |
status: | In Progress → Invalid |
Changed in charm-cinder: | |
status: | In Progress → Fix Released |
milestone: | none → 17.02 |
I've looked into this and it seems more involved than I had first thought. The requirement to use enabled_backends causes volumes to be created with a different os-vol- host-attr: host. If a cloud is upgraded to Ocata any existing volumes will have an invalid os-vol- host-attr: host. The existing volumes need to have that attribute updated via cinder-manage *1
*1 https:/ /docs.openstack .org/admin- guide/blockstor age-multi- backend. html#enable- multiple- storage- back-ends