Need to configure backend_host (not host) for cinder-volume HA

Bug #1753596 reported by Alan Bishop
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
Alan Bishop

Bug Description

There seems to be some confusion over cinder's host versus backend_host config
setting. The host value is used by all Cinder services, and backend_host
should be used to override the host setting in the cinder-volume backends.

The purpose is to support HA, where all cinder-volume instances are required
to use the same value (typically "hostgroup"). This should be done using the
backend_host, and not the DEFAULT/host setting. When DEFAULT/host is set to
"hostgroup," other cinder services (cinder-api , cinder-scheduler,
cinder-backup) use that value on every node, and this makes the logs very
confusing.

The problem can be reproduced by deploying cinder-volume with pacemaker.
After the overcloud deploys, check cinder.conf and observe the DEFAULT/host
is set to "hostgroup" and backend_host is missing from the backend section(s).

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

Fix proposed to branch: master
Review: https://review.openstack.org/550111

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/550112

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.openstack.org/550111
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=1ec7756676d31b6930dc775a75c16faa375f08fa
Submitter: Zuul
Branch: master

commit 1ec7756676d31b6930dc775a75c16faa375f08fa
Author: Alan Bishop <email address hidden>
Date: Tue Mar 6 09:30:45 2018 -0500

    Update default Cinder RBD backend_host value

    The Cinder RBD driver's backend_host should use 'cinder::backend_host'
    hiera data first, and only use 'cinder::host' if the preferred hiera
    value isn't defined.

    Partial-Bug: #1753596
    Depends-On: I11a55571f4bed630967242c797e08e11c47eab11
    Change-Id: I78a88725d297794efd854fbfb14df0611e0e0738

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/550112
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=99ea8b681f11679c50920f291a744a7b31a7511d
Submitter: Zuul
Branch: master

commit 99ea8b681f11679c50920f291a744a7b31a7511d
Author: Alan Bishop <email address hidden>
Date: Tue Mar 6 09:47:22 2018 -0500

    Assign Cinder's backend_host when deploying for HA

    When deploying for HA, set cinder's backend_host option (not the host
    option) to "hostgroup". That way, only the cinder-volume backend drivers
    use a common value.

    Closes-Bug: #1753596
    Depends-On: I78a88725d297794efd854fbfb14df0611e0e0738
    Change-Id: Ifa4cd1f43fd5d73fc21630cee45b9f38fa882349

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/556637

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.openstack.org/556638

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/queens)

Reviewed: https://review.openstack.org/556637
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=e4ad49f55c76e12c45a58fb2fb43d3989a5ec41b
Submitter: Zuul
Branch: stable/queens

commit e4ad49f55c76e12c45a58fb2fb43d3989a5ec41b
Author: Alan Bishop <email address hidden>
Date: Tue Mar 6 09:30:45 2018 -0500

    Update default Cinder RBD backend_host value

    The Cinder RBD driver's backend_host should use 'cinder::backend_host'
    hiera data first, and only use 'cinder::host' if the preferred hiera
    value isn't defined.

    Partial-Bug: #1753596
    Depends-On: I11a55571f4bed630967242c797e08e11c47eab11
    Change-Id: I78a88725d297794efd854fbfb14df0611e0e0738
    (cherry picked from commit 1ec7756676d31b6930dc775a75c16faa375f08fa)

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/queens)

Reviewed: https://review.openstack.org/556638
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=296887632df2707f4cbf32e1cdfc3f4a653c06db
Submitter: Zuul
Branch: stable/queens

commit 296887632df2707f4cbf32e1cdfc3f4a653c06db
Author: Alan Bishop <email address hidden>
Date: Tue Mar 6 09:47:22 2018 -0500

    Assign Cinder's backend_host when deploying for HA

    When deploying for HA, set cinder's backend_host option (not the host
    option) to "hostgroup". That way, only the cinder-volume backend drivers
    use a common value.

    Closes-Bug: #1753596
    Depends-On: I78a88725d297794efd854fbfb14df0611e0e0738
    Change-Id: Ifa4cd1f43fd5d73fc21630cee45b9f38fa882349
    (cherry picked from commit 99ea8b681f11679c50920f291a744a7b31a7511d)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 9.0.0.0b2

This issue was fixed in the openstack/tripleo-heat-templates 9.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 8.0.2

This issue was fixed in the openstack/tripleo-heat-templates 8.0.2 release.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.