Bug 1727158 - py3 dict does not have iteritems
Summary: py3 dict does not have iteritems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 16.0 (Train)
Hardware: All
OS: All
high
high
Target Milestone: Upstream M2
: 16.0 (Train on RHEL 8.1)
Assignee: Emilien Macchi
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-04 17:58 UTC by Attila Fazekas
Modified: 2020-02-06 14:42 UTC (History)
4 users (show)

Fixed In Version: openstack-tripleo-common-11.0.1-0.20190705094331.d60eb1b.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-06 14:41:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1835456 0 None None None 2019-07-04 18:58:33 UTC
OpenStack gerrit 669219 0 'None' MERGED Python 3 fixes for tripleo-hieradata role 2020-06-11 12:45:51 UTC
Red Hat Product Errata RHEA-2020:0283 0 None None None 2020-02-06 14:42:16 UTC

Description Attila Fazekas 2019-07-04 17:58:51 UTC
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

Comment 5 Attila Fazekas 2019-07-05 02:57:44 UTC
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.

Comment 8 Jad Haj Yahya 2019-11-25 10:03:06 UTC
Verified on RHOS_TRUNK-16.0-RHEL-8-20191122.n.2

Comment 11 errata-xmlrpc 2020-02-06 14:41:46 UTC
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


Note You need to log in before you can comment on or make changes to this bug.