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

Bug #1767339 reported by Ana Krivokapić on 2018-04-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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'', u'storage_mgmt_ip': u'', u'external_ip': u'', u'ctlplane_ip': u'', u'tenant_ip': u'', u'internal_api_ip': u'', u'management_ip':
u'', 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''}}, 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:

Changed in tripleo:
milestone: none → rocky-2

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

Emilien Macchi (emilienm) wrote :

Please close it and re-open in Storyboard.

Ana Krivokapić (akrivoka) wrote :
Changed in tripleo:
status: Triaged → Won't Fix
status: Won't Fix → Invalid

Fix proposed to branch: master

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  Edit
Everyone can see this information.

Other bug subscribers