2017-10-27 12:08:47 |
Goutham Pratapa |
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 prechecks pass
Confirmed locally, |
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, |
|