Description of problem: Undercloud deployment failed: sudo --preserve-env openstack tripleo deploy --standalone --standalone-role Undercloud --stack undercloud --local-domain=localdomain --local-ip=192.168.24.1/24 --templates=/usr/share/openstack-tripleo-heat-templates/ --networks-file=network_data_undercloud.yaml --heat-native -e /usr/share/openstack-tripleo-heat-templates/environments/undercloud.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/use-dns-for-vips.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/podman.yaml -e /home/stack/containers-prepare-parameter.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/masquerade-networks.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/ironic.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/ironic-inspector.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/mistral.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/zaqar-swift-backend.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/tempest.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/undercloud-haproxy.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/undercloud-keepalived.yaml --public-virtual-ip 192.168.24.2 --control-virtual-ip 192.168.24.3 -e /usr/share/openstack-tripleo-heat-templates/environments/ssl/tls-endpoints-public-ip.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/undercloud-haproxy.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/services/undercloud-keepalived.yaml --deployment-user stack --output-dir=/home/stack --cleanup -e /home/stack/tripleo-config-generated-env-files/undercloud_parameters.yaml --hieradata-override=/home/stack/hiera_override.yaml -e /usr/share/openstack-tripleo-heat-templates/environments/tripleo-validations.yaml --log-file=install-undercloud.log -e /usr/share/openstack-tripleo-heat-templates/undercloud-stack-vstate-dropin.yaml ** Performing Heat stack create.. ** Stack undercloud/442ebea4-b59b-4566-86c2-5ab4d6e1e4ad CREATE_COMPLETE /usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py:1237: ResourceWarning: unclosed file <_io.TextIOWrapper name='/dev/null' mode='w' encoding='UTF-8'> nested_depth=6) ** Downloading undercloud ansible.. ** Generating default ansible config file /home/stack/ansible.cfg ** Running ansible deploy tasks ** PLAY [Gather facts from undercloud] ******************************************************************************************************************************************************************************* TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** ok: [undercloud-0] PLAY [Gather facts from overcloud] ******************************************************************************************************************************************************************************** TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** ok: [undercloud-0] PLAY [Load global variables] ************************************************************************************************************************************************************************************** TASK [include_vars] *********************************************************************************************************************************************************************************************** ok: [undercloud-0] PLAY [Render all_nodes data as group_vars for overcloud] ********************************************************************************************************************************************************** TASK [Get current user] ******************************************************************************************************************************************************************************************* changed: [undercloud-0 -> localhost] TASK [render all_nodes data as group_vars for overcloud] ********************************************************************************************************************************************************** fatal: [undercloud-0 -> localhost]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"} NO MORE HOSTS LEFT ************************************************************************************************************************************************************************************************ PLAY RECAP ******************************************************************************************************************************************************************************************************** undercloud-0 : ok=4 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 Exception: Deployment failed Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/tripleoclient/v1/tripleo_deploy.py", line 1286, in _standalone_deploy raise exceptions.DeploymentError('Deployment failed') tripleoclient.exceptions.DeploymentError: Deployment failed None Install artifact is located at /home/stack/undercloud-install-20190704173706.tar.bzip2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Version-Release number of selected component (if applicable): python3-tripleo-common-11.0.1-0.20190703185005.e1061bb.el8ost.noarch python3-tripleoclient-12.0.1-0.20190704033404.c6d441b.el8ost.noarch openstack-tripleo-validations-11.0.1-0.20190703195538.bb48a7f.el8ost.noarch openstack-tripleo-common-11.0.1-0.20190703185005.e1061bb.el8ost.noarch openstack-tripleo-puppet-elements-11.0.1-0.20190613173417.42fc5fb.el8ost.noarch openstack-tripleo-heat-templates-11.0.1-0.20190704131243.250e172.el8ost.noarch tripleo-ansible-0.1.1-0.20190703142856.1f2a301.el8ost.noarch ansible-role-tripleo-modify-image-1.0.1-0.20190621163359.1415b04.el8ost.noarch openstack-tripleo-common-containers-11.0.1-0.20190703185005.e1061bb.el8ost.noarch python3-tripleoclient-heat-installer-12.0.1-0.20190704033404.c6d441b.el8ost.noarch openstack-tripleo-image-elements-10.5.0-0.20190612175407.c70ca0f.el8ost.noarch puppet-tripleo-11.0.1-0.20190703195854.bcb1711.el8ost.noarch ansible-tripleo-ipsec-9.1.1-0.20190513184224.ffe104c.el8ost.noarch How reproducible: always Additional info: Most likely the issue related to this change: https://github.com/openstack/tripleo-common/blob/master/roles/tripleo-hieradata/templates/all_nodes.j2
The issue is seen upstream: http://logs.openstack.org/65/669165/2/check/tripleo-ci-fedora-28-standalone/42c3ab2/logs/undercloud/home/zuul/standalone_deploy.log.txt.gz#_2019-07-04_16_15_49
failed: [undercloud-0] (item=vip_data) => {"ansible_loop_var": "item", "changed": false, "item": "vip_data", "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'has_key'"} has_key also py2 only.
Verified on RHOS_TRUNK-16.0-RHEL-8-20191122.n.2
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:0283