cinder.conf 'host' not set when using cinder-ceph subordinate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cinder (Juju Charms Collection) |
Fix Released
|
Critical
|
Edward Hope-Morley | ||
cinder-ceph (Juju Charms Collection) |
Fix Released
|
Critical
|
James Page |
Bug Description
If I deploy 3 nodes of cinder, relate them with cinder-ceph then relate cinder-ceph with ceph everything works fine and dandy except that my cinder.conf looks like - http://
The problem being that 'hosts' is not set so it will get a default value (unit hostname) e.g. http://
The consequence of this is that if a volume create goes to cinder/0 and that node subsequently dies, i will not be able to perform actions e.g. delete on that volume anymore until cinder/0 comes back up.
The simple fix is obviously to have cinder set host properly when rbd backends (and only stateless backends) are related but it will require existing volumes to be updated by modifying the 'host' field in each Volume record in the Cinder database to match the cinder service name
Related branches
- James Page: Approve
-
Diff: 292 lines (+252/-2)3 files modifiedhooks/cinder_contexts.py (+45/-1)
hooks/cinder_utils.py (+1/-1)
unit_tests/test_cinder_contexts.py (+206/-0)
- Edward Hope-Morley: Approve
-
Diff: 25 lines (+4/-2)2 files modifiedhooks/cinder_hooks.py (+2/-1)
unit_tests/test_cinder_hooks.py (+2/-1)
- Liam Young (community): Approve
-
Diff: 292 lines (+252/-2)3 files modifiedhooks/cinder_contexts.py (+45/-1)
hooks/cinder_utils.py (+1/-1)
unit_tests/test_cinder_contexts.py (+206/-0)
- Liam Young (community): Approve
- OpenStack Charmers: Pending requested
-
Diff: 25 lines (+4/-2)2 files modifiedhooks/cinder_hooks.py (+2/-1)
unit_tests/test_cinder_hooks.py (+2/-1)
Changed in cinder-ceph (Juju Charms Collection): | |
status: | New → In Progress |
assignee: | nobody → Edward Hope-Morley (hopem) |
tags: | added: backport-potential openstack sts |
Changed in cinder-ceph (Juju Charms Collection): | |
status: | In Progress → Won't Fix |
Changed in cinder (Juju Charms Collection): | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Edward Hope-Morley (hopem) |
milestone: | none → 15.10 |
description: | updated |
Changed in cinder-ceph (Juju Charms Collection): | |
status: | Won't Fix → In Progress |
assignee: | Edward Hope-Morley (hopem) → James Page (james-page) |
description: | updated |
Changed in cinder (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in cinder-ceph (Juju Charms Collection): | |
status: | In Progress → Fix Committed |
Changed in cinder-ceph (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Changed in cinder (Juju Charms Collection): | |
status: | Fix Committed → Fix Released |
Actually this is a bit of a tricky one. If we have the cinder-ceph subordinate set host (just as cinder would do if related to ceph) then all is fine until you add another backend that is not rbd i.e. that is not stateless.