etcd fails when kuryr is disabled

Bug #1783963 reported by Mark Goddard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
Mark Goddard

Bug Description

Steps to reproduce:

Enable etcd and not kuryr, then deploy:

enable_etcd: yes
enable_kuryr: no

kolla-ansible deploy

Expected results:

Successful deployment, working etcd.

Actual results:

Successful deployment, but etcd does not work.

This is because the environment variable ETCD_INITIAL_CLUSTER contains compute nodes, which are not running etcd.

Compute nodes are in the etcd group to allow for kuryr, which needs etcd to be running on compute nodes (why???). When kuryr is disabled, etcd is not deployed on these hosts (using host_in_groups). However, the ETCD_INITIAL_CLUSTER environment variable always includes all hosts in the etcd group.

Mark Goddard (mgoddard)
Changed in kolla-ansible:
assignee: nobody → Mark Goddard (mgoddard)
importance: Undecided → Medium
milestone: none → rocky-3
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.openstack.org/586479
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=b9208cd178cab27438831b0d16b337c54c53090b
Submitter: Zuul
Branch: master

commit b9208cd178cab27438831b0d16b337c54c53090b
Author: Mark Goddard <email address hidden>
Date: Thu Jul 26 18:58:25 2018 +0100

    Fix etcd when Kuryr is disabled

    This is because the environment variable ETCD_INITIAL_CLUSTER contains
    compute nodes, which are not running etcd.

    Compute nodes are in the etcd group to allow for kuryr, which needs etcd
    to be running on compute nodes (why???). When kuryr is disabled, etcd is
    not deployed on these hosts (using host_in_groups). However, the
    ETCD_INITIAL_CLUSTER environment variable always includes all hosts in
    the etcd group.

    This change sets ETCD_INITIAL_CLUSTER correctly in both cases.

    Change-Id: I11f812d3fdacf0eeb8236f9a39d673aaa480dd26
    Closes-Bug: #1783963

Changed in kolla-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 7.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 7.0.0.0rc1 release candidate.

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.