infra_hosts definition doesn't set galera_all, fails on haproxy_install.yml

Bug #1526292 reported by Robert Adler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Unassigned

Bug Description

Having a set such as:

infra_hosts:
  controller1:
    ip: 10.102.0.11
  controller2:
    ip: 10.102.0.12
  controller3:
    ip: 10.102.0.13

will result in a group definition such as:

| controller1_galera_container-8974461b | controller1_containers, galera, galera_container, infra_all, shared-infra_all |
| controller2_galera_container-26e1f866 | controller2_containers, galera, galera_container, infra_all, shared-infra_all |
| controller3_galera_container-930a0d91 | controller3_containers, galera, galera_container, infra_all, shared-infra_all

However, the haproxy config references galera_all for pulling the nodes to enable on the haproxy-install.yml playbook via:

vars/configs/haproxy_config.yml: haproxy_backend_nodes: "{{ [groups['galera_all'][0]] | default([]) }}" # list expected

Revision history for this message
Robert Adler (radler-a) wrote :

Follow up:

Defining shared-infra_hosts does fix the problem.

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

Could you mention where you saw the infra_hosts directive?
Apparently it's in the documentation (a fix will be released), but I'd like to be sure that you don't have another source that could be the cause of this old documentation.

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

Reviewed: https://review.openstack.org/258012
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=ed3c9c514504e0752752c3b1a3227b8d044693a0
Submitter: Jenkins
Branch: master

commit ed3c9c514504e0752752c3b1a3227b8d044693a0
Author: Jean-Philippe Evrard <email address hidden>
Date: Tue Dec 15 17:59:05 2015 +0100

    Old references of infra_hosts in the documentation

    These should be replaced by os-infra_hosts and shared-infra_hosts.
    This should fix it.

    Change-Id: I7742827cae7aadc82ab521083110c7e516c15f5b
    Closes-Bug: #1526292

Changed in openstack-ansible:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (liberty)

Fix proposed to branch: liberty
Review: https://review.openstack.org/263700

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (kilo)

Fix proposed to branch: kilo
Review: https://review.openstack.org/263701

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (kilo)

Reviewed: https://review.openstack.org/263701
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=fcd5bd58ea583b3eaa5d7ce8caaa17b266131389
Submitter: Jenkins
Branch: kilo

commit fcd5bd58ea583b3eaa5d7ce8caaa17b266131389
Author: Jean-Philippe Evrard <email address hidden>
Date: Tue Dec 15 17:59:05 2015 +0100

    Old references of infra_hosts in the documentation

    These should be replaced by os-infra_hosts and shared-infra_hosts.
    This should fix it.

    Change-Id: I7742827cae7aadc82ab521083110c7e516c15f5b
    Closes-Bug: #1526292
    (cherry picked from commit ed3c9c514504e0752752c3b1a3227b8d044693a0)

tags: added: in-kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (liberty)

Reviewed: https://review.openstack.org/263700
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=46edd29b08d4fb075786d68719b2eb8e48c94e36
Submitter: Jenkins
Branch: liberty

commit 46edd29b08d4fb075786d68719b2eb8e48c94e36
Author: Jean-Philippe Evrard <email address hidden>
Date: Tue Dec 15 17:59:05 2015 +0100

    Old references of infra_hosts in the documentation

    These should be replaced by os-infra_hosts and shared-infra_hosts.
    This should fix it.

    Change-Id: I7742827cae7aadc82ab521083110c7e516c15f5b
    Closes-Bug: #1526292
    (cherry picked from commit ed3c9c514504e0752752c3b1a3227b8d044693a0)

tags: added: in-liberty
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.11

This issue was fixed in the openstack/openstack-ansible 11.2.11 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 12.0.8

This issue was fixed in the openstack/openstack-ansible 12.0.8 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 11.2.12

This issue was fixed in the openstack/openstack-ansible 11.2.12 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 12.0.9

This issue was fixed in the openstack/openstack-ansible 12.0.9 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 13.0.0

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

This issue was fixed in the openstack/openstack-ansible 13.0.0 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 12.0.11

This issue was fixed in the openstack/openstack-ansible 12.0.11 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.14

This issue was fixed in the openstack/openstack-ansible 11.2.14 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 11.2.15

This issue was fixed in the openstack/openstack-ansible 11.2.15 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.