deploy fails if controllers have different api_interface names

Bug #1748473 reported by Vladislav Belogrudov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Critical
Vladislav Belogrudov

Bug Description

Host: x.y.z.a, Task: keystone : Copying over keystone.conf, Status: failed, Message: {{ om_rpc_transport }}://{% for host in groups[om_rpc_group] %}{{ om_rpc_user }}:{{ om_rpc_password }}@{{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ om_rpc_port }}{% if not loop.last %},{% endif %}{% endfor %}: 'dict object' has no attribute u'ansible_ens4'

I have one of controllers with differing interface names and therefore set api_interface per host. Keystone deployment fails because all.yml contains the following construction:

kolla-ansible]$ grep api_interface] ansible/group_vars/all.yml

rpc_transport_url: "{{ om_rpc_transport }}://{% for host in groups[om_rpc_group] %}{{ om_rpc_user }}:{{ om_rpc_password }}@{{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ om_rpc_port }}{% if not loop.last %},{% endif %}{% endfor %}"
notify_transport_url: "{{ om_notify_transport }}://{% for host in groups[om_notify_group] %}{{ om_notify_user }}:{{ om_notify_password }}@{{ hostvars[host]['ansible_' + api_interface]['ipv4']['address'] }}:{{ om_notify_port }}{% if not loop.last %},{% endif %}{% endfor %}"

Bare api_interface should be replaced with hostvars[host]['api_interface']

Changed in kolla-ansible:
assignee: nobody → Vladislav Belogrudov (vlad-belogrudov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

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

Changed in kolla-ansible:
status: New → In Progress
Duong Ha-Quang (duonghq)
Changed in kolla-ansible:
importance: Undecided → Critical
milestone: none → queens-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

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

commit d79b213302189ffd78d64bc6205b6acc851198de
Author: Vladislav Belogrudov <email address hidden>
Date: Fri Feb 9 19:40:18 2018 +0300

    Deploy of keystone fails if api_interface names differ

    If control hosts have different names of interfaces one can set
    api_interface variables per host. Deployment of keystone fails
    because rpc_transport_url and notify_transport_url variables
    use bare api_interface instead of one from hostvars.

    Change-Id: I8bb4aa2953cf4ba63ef6815f2504d35e5aa0a07b
    Closes-Bug: #1748473

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 6.0.0.0rc1

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