cinder.conf 'host' not set when using cinder-ceph subordinate

Bug #1493931 reported by Edward Hope-Morley on 2015-09-09
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cinder (Juju Charms Collection)
Critical
Edward Hope-Morley
cinder-ceph (Juju Charms Collection)
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://paste.ubuntu.com/12321902/

The problem being that 'hosts' is not set so it will get a default value (unit hostname) e.g. http://paste.ubuntu.com/12321914/

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

Changed in cinder-ceph (Juju Charms Collection):
status: New → In Progress
assignee: nobody → Edward Hope-Morley (hopem)
tags: added: backport-potential openstack sts
Edward Hope-Morley (hopem) wrote :

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.

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
James Page (james-page) on 2015-09-10
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

Reviewed: https://review.openstack.org/290066
Committed: https://git.openstack.org/cgit/openstack/charm-cinder/commit/?id=b299cc84be8b6c399415fd5ee4b3ff2dc9db0492
Submitter: Jenkins
Branch: master

commit b299cc84be8b6c399415fd5ee4b3ff2dc9db0492
Author: Jorge Niedbalski <email address hidden>
Date: Tue Mar 8 15:19:08 2016 -0300

    Cleanup action for service-list after deploying HA.

    This is a workaround for LP: #1493931 in order to keep the
    output of cinder service-list clean after deploying a HA.

    The rationale behind this is to expose a way to cleanup the
    services table on the database from unused ones ,
    those services were
    created by cinder before the storage relation is joined (particularly
    for stateless ones).

    This action also exposes the host option to specify
    the host to be removed.

    By default if no host is provided, this action will
    cleanup all the entries different to the ones
    specified on the DEFAULT_SERVICES constant.

    An example of execution can be found on the comment
    section of this proposal.

    Change-Id: I4a5e682e44206f7b77d873cb1fc63e3eae86aad5
    Related-Bug: 1493931
    Signed-off-by: Jorge Niedbalski <email address hidden>

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

Other bug subscribers