Precheck's rabbitmq task will fail if not indicating api_interface in globals.yml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
In Progress
|
Undecided
|
Trinh Nguyen |
Bug Description
When not indicating api_interface (you suppose to use its default value) in /etc/kolla/
api_interface: "{{ network_interface }}"
kolla-ansible's prechecks (/usr/local/
- fail: msg="Hostname has to resolve to IP address of api_interface"
with_items: "{{ rabbitmq_
when:
- "item.stdout.
Solution: The task should check whether the variable is indicated first before comparing it with the hostname. If the variable does not exist (or commented out), use the default value.
+ Error:
TASK [rabbitmq : fail] *******
skipping: [localhost] => (item={
+ host file:
cat /etc/hosts
"
127.0.1.1 localhost
127.0.0.1 ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
"
summary: |
- Precheck's rabbitmq task will fails if not indicating api_interface in + Precheck's rabbitmq task will fail if not indicating api_interface in globals.yml |
tags: | added: deploy |
tags: |
added: prechecks removed: deploy |
Changed in kolla-ansible: | |
assignee: | nobody → Trinh Nguyen (dangtrinhnt) |
description: | updated |
Changed in kolla-ansible: | |
status: | Expired → In Progress |
Hi, api_interface is defined in group_vars/all too. This means if you don't specify the var in globals will always use default value in group_vars.
I you comment value in globals should be working too.
https:/ /github. com/openstack/ kolla-ansible/ blob/master/ ansible/ group_vars/ all.yml# L132
I don't see a bug here.
Regards