Ansible 2.4.1 broke preckecks

Bug #1728032 reported by Goutham Pratapa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
Undecided
Unassigned

Bug Description

When we run prechecks for openstack kolla if the ansible version is 2.4.1.0 then it is throwing up error like this

TASK [rabbitmq : fail] ***************************************************************************************************************************
fatal: [192.168.122.145]: FAILED! => {"failed": true, "msg": "The conditional check 'item.stdout.find(hostvars[item['item']]['ansible_' ~ hostvars[item['item']]['api_interface']]['ipv4']['address']) == -1' failed. The error was: error while evaluating conditional (item.stdout.find(hostvars[item['item']]['ansible_' ~ hostvars[item['item']]['api_interface']]['ipv4']['address']) == -1): 'dict object' has no attribute 'api_interface'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/rabbitmq/tasks/precheck.yml': line 61, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- fail: msg=\"Hostname has to resolve to IP address of api_interface\"\n ^ here\n"}
        to retry, use: --limit @/usr/local/share/kolla-ansible/ansible/site.retry

But with ansible 2.4.0.0 this ansible task prechecks pass without any issue.

Confirmed locally,

description: updated
Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Hi, error is not in ansible, config misses api_interface for the host or some hosts:

Error: 'dict object' has no attribute 'api_interface'

Changed in kolla:
status: New → Incomplete
status: Incomplete → Invalid
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.