Dear all,
after a complete and successfully installed "stable/xena" with just the minimum services for operating some experiments (just nova, neutron, ceph, ceilometer, aodh, keystone, cinder, glance, heat, horizon) I have decided to upgrade the installation including some new services, such as masakari, barbican, octavia, mistral, zun.
Just because I am still in a pre-production environment, I have executed successfully
openstack-ansible setup-hosts.yml
openstack-ansible setup-infrastructure-yml
but when I execute openstack-ansible setup-openstack.yml, I received an error at os-masakari-install.yml that is strange for me.
Here the ansible error log:
PLAY [Gather masakari facts] *********************************************************************************************************************
TASK [Gather additional facts] *******************************************************************************************************************
included: /opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml for infra1_masakari_api_container-14a49e3e, infra2_masakari_api_container-66726060, infra3_masakari_api_container-11d3fa81, infra1, infra2, infra3, compute1, compute2, compute3, compute4
TASK [Gather additional facts] *******************************************************************************************************************
fatal: [infra1_masakari_api_container-14a49e3e]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [infra2_masakari_api_container-66726060]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [infra3_masakari_api_container-11d3fa81]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [infra1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [infra2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [infra3]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [compute1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [compute2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [compute3]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
fatal: [compute4]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ 'ansible_' ~ pacemaker_corosync_ring_interface | replace('-','_') }}: 'pacemaker_corosync_ring_interface' is undefined\n\nThe error appears to be in '/opt/openstack-ansible/playbooks/common-tasks/gather-hardware-facts.yml': line 16, 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- name: Gather additional facts\n ^ here\n"}
It seems an error in some configuration file regarding the definition of pacemaker_corosync_ring_interface.
Here my /etc/openstack_deploy/conf.d/masakari.yml file content
---
# The infra nodes that will be running the masakari services
masakari-infra_hosts:
infra1:
ip: 172.29.236.11
infra2:
ip: 172.29.236.12
infra3:
ip: 172.29.236.13
# The infra nodes that will be running the masakari monitors
masakari-monitor_hosts:
compute1:
ip: 172.29.236.31
compute2:
ip: 172.29.236.32
compute3:
ip: 172.29.236.33
compute4:
ip: 172.29.236.34
I have tested also with both infra and monitor hosts set to infras nodes. Same issue.
Do you have a workaround for this? Can you confirm the potential error? Any quick solution would be appreciated.
Thanks in advance
Davide
Hi Davide,
I believe we already merged and backported fix for the mentioned bug.
Please kindly check following commit and let us know of it solves your issue: /opendev. org/openstack/ openstack- ansible/ commit/ 41547fc5bd4841a 7584105b271733f dc990541e5
https:/
It hasn't been released (tagged) yet as landed really recently, so it's present only on stable/xena.
Awaiting for your reply/confirmation.