Validations are broken due to a recent change in tripleo-ansible-inventory

Bug #1767339 reported by Ana Krivokapić
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
Critical
James Slagle

Bug Description

After re-installing the development environment, running any validation results in an error:

(undercloud) [stack@host-10-0-1-7 ~]$ ansible-playbook -i /usr/bin/tripleo-ansible-inventory /usr/share/openstack-tripleo-validations/validations/dns.yaml
 [WARNING]: * Failed to parse /usr/bin/tripleo-ansible-inventory with script plugin: You defined a group 'Controller' with bad data for the host list: {u'hosts': {u'overcloud-controller-0': {u'storage_ip':
u'172.18.0.18', u'storage_mgmt_ip': u'172.19.0.16', u'external_ip': u'10.0.0.15', u'ctlplane_ip': u'192.168.24.7', u'tenant_ip': u'172.16.0.16', u'internal_api_ip': u'172.20.0.14', u'management_ip':
u'192.168.24.7', u'deploy_server_id': u'fb38addc-bf27-41e6-9c94-ff585778037c', u'enabled_networks': [u'management', u'storage', u'ctlplane', u'external', u'internal_api', u'storage_mgmt', u'tenant'],
u'ansible_host': u'192.168.24.7'}}, u'vars': {u'role_name': u'Controller', u'bootstrap_server_id': u'fb38addc-bf27-41e6-9c94-ff585778037c', u'ansible_ssh_user': u'heat-admin'}}

 [WARNING]: * Failed to parse /usr/bin/tripleo-ansible-inventory with yaml plugin: Syntax Error while loading YAML. The error appears to have been in '/usr/bin/tripleo-ansible-inventory': line 68, column 20,
but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: def _parse_config(): ^ here exception type: <class 'yaml.scanner.ScannerError'>
exception: mapping values are not allowed in this context in "<unicode string>", line 68, column 20

 [WARNING]: * Failed to parse /usr/bin/tripleo-ansible-inventory with ini plugin: /usr/bin/tripleo-ansible-inventory:22: Expected key=value host variable assignment, got: __future__

 [WARNING]: Unable to parse /usr/bin/tripleo-ansible-inventory as an inventory source

 [WARNING]: No inventory was parsed, only implicit localhost is available

 [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

 [WARNING]: Could not match supplied host pattern, ignoring: undercloud

 [WARNING]: Could not match supplied host pattern, ignoring: overcloud

PLAY [undercloud, overcloud] **************************************************************************************************************************************************************************************
skipping: no hosts matched

PLAY RECAP ********************************************************************************************************************************************************************************************************

Looks like this change in triple-common has to do with it:

https://github.com/openstack/tripleo-common/commit/5822ccc62027c5905115120632b4d1622cea7a01#diff-354b2f588533c21d913db5dd03f9bade

Changed in tripleo:
milestone: none → rocky-2
Revision history for this message
Gael Chamoulaud (gael-chamoulaud) wrote :

Only works with a static inventory generated by tripleo-ansible-inventory script.

Revision history for this message
Emilien Macchi (emilienm) wrote :

Please close it and re-open in Storyboard.

Revision history for this message
Ana Krivokapić (akrivoka) wrote :
Changed in tripleo:
status: Triaged → Won't Fix
status: Won't Fix → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (master)

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

Changed in tripleo:
assignee: nobody → James Slagle (james-slagle)
status: Invalid → In Progress
Changed in tripleo:
status: In Progress → 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.