Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1611016

Summary: [FFU/UPGRADES]: Controllers upgrade fails on TASK [tripleo-ssh-known-hosts : Template /etc/ssh/ssh_known_hosts]
Product: Red Hat OpenStack Reporter: Marius Cornea <mcornea>
Component: openstack-tripleo-commonAssignee: Jose Luis Franco <jfrancoa>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: urgent Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: dbecker, jfrancoa, jschluet, mbracho, mburns, morazi, sasha, slinaber, yprokule
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-8.6.3-9.el7ost.src.rpm Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-29 16:39:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Cornea 2018-08-01 23:16:16 UTC
Description of problem:
FFU: Controllers upgrade fails on TASK [tripleo-ssh-known-hosts : Template /etc/ssh/ssh_known_hosts]:

 u'PLAY [Common roles for TripleO servers] ****************************************',
 u'',
 u'TASK [tripleo-bootstrap : Deploy required packages to bootstrap TripleO] *******',
 u'Wednesday 01 August 2018  18:19:35 -0400 (0:00:00.107)       0:00:04.314 ****** ',
 u'ok: [192.168.24.21] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["openstack-heat-agents-1.5.4-0.20180308153305.ecf43c7.el7ost.noarch providing openstack-heat-agents is already installed", "jq-1.3-4.el7ost.x86_64 providing jq is already installed"]}',
 u'ok: [192.168.24.10] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["openstack-heat-agents-1.5.4-0.20180308153305.ecf43c7.el7ost.noarch providing openstack-heat-agents is already installed", "jq-1.3-4.el7ost.x86_64 providing jq is already installed"]}',
 u'ok: [192.168.24.8] => {"changed": false, "failed": false, "msg": "", "rc": 0, "results": ["openstack-heat-agents-1.5.4-0.20180308153305.ecf43c7.el7ost.noarch providing openstack-heat-agents is already installed", "jq-1.3-4.el7ost.x86_64 providing jq is already installed"]}',
 u'',
 u'TASK [tripleo-bootstrap : Create /var/lib/heat-config/tripleo-config-download directory for deployment data] ***',
 u'Wednesday 01 August 2018  18:19:36 -0400 (0:00:00.756)       0:00:05.070 ****** ',
 u'changed: [192.168.24.10] => {"changed": true, "failed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/var/lib/heat-config/tripleo-config-download", "secontext": "unconfined_u:object_r:var_lib_t:s0", "size": 6, "state": "directory", "uid": 0}',
 u'changed: [192.168.24.8] => {"changed": true, "failed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/var/lib/heat-config/tripleo-config-download", "secontext": "unconfined_u:object_r:var_lib_t:s0", "size": 6, "state": "directory", "uid": 0}',
 u'changed: [192.168.24.21] => {"changed": true, "failed": false, "gid": 0, "group": "root", "mode": "0755", "owner": "root", "path": "/var/lib/heat-config/tripleo-config-download", "secontext": "unconfined_u:object_r:var_lib_t:s0", "size": 6, "state": "directory", "uid": 0}',
 u'',
 u'TASK [tripleo-ssh-known-hosts : Template /etc/ssh/ssh_known_hosts] *************',
 u'Wednesday 01 August 2018  18:19:36 -0400 (0:00:00.376)       0:00:05.447 ****** ',
 u'fatal: [192.168.24.8]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: \'dict object\' has no attribute \'ansible_hostname\'"}',
 u'fatal: [192.168.24.21]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: \'dict object\' has no attribute \'ansible_hostname\'"}',
 u'fatal: [192.168.24.10]: FAILED! => {"changed": false, "failed": true, "msg": "AnsibleUndefinedVariable: \'dict object\' has no attribute \'ansible_hostname\'"}',
 u'',
 u'NO MORE HOSTS LEFT *************************************************************',
 u'',
 u'PLAY RECAP *********************************************************************',
 u'192.168.24.10              : ok=4    changed=1    unreachable=0    failed=1   ',
 u'192.168.24.21              : ok=4    changed=1    unreachable=0    failed=1   ',
 u'192.168.24.8               : ok=4    changed=1    unreachable=0    failed=1   ',
 u'',
 u'Wednesday 01 August 2018  18:19:36 -0400 (0:00:00.125)       0:00:05.572 ****** ',
 u'=============================================================================== ']


Version-Release number of selected component (if applicable):

openstack-tripleo-heat-templates-8.0.4-4.el7ost.noarch
openstack-tripleo-validations-8.4.2-1.el7ost.noarch
python-tripleoclient-9.2.3-2.el7ost.noarch
openstack-tripleo-common-containers-8.6.3-5.el7ost.noarch
openstack-tripleo-0.0.8-0.3.4de13b3git.el7ost.noarch
ansible-tripleo-ipsec-8.1.1-0.20180308133440.8f5369a.el7ost.noarch
puppet-tripleo-8.3.4-3.el7ost.noarch
openstack-tripleo-puppet-elements-8.0.1-1.el7ost.noarch
openstack-tripleo-common-8.6.3-5.el7ost.noarch
openstack-tripleo-image-elements-8.0.1-1.el7ost.noarch
openstack-tripleo-ui-8.3.2-1.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Deploy OSP10 with 3 controllers + 2 computes + 3 ceph nodes
2. Upgrade to OSP13 via ffu procecure

Actual results:
Controllers upgrade fails.

Expected results:
Controller upgrade proceeds successfully.

Additional info:
Attaching full logs.

Comment 3 Jose Luis Franco 2018-08-07 10:14:22 UTC
After Yurii tested the patch locally, he got a different error:

 u'TASK [tripleo-ssh-known-hosts : Add hosts key in /etc/ssh/ssh_known_hosts for live/cold-migration] ***',
 u'Monday 06 August 2018  10:05:31 -0400 (0:00:00.521)       0:00:10.992 ********* ',
 u'fatal: [192.168.24.21]: FAILED! => {"failed": true, "msg": "|failed expects a dictionary"}',
 u'fatal: [192.168.24.24]: FAILED! => {"failed": true, "msg": "|failed expects a dictionary"}',
 u'fatal: [192.168.24.11]: FAILED! => {"failed": true, "msg": "|failed expects a dictionary"}',
 u'',
 u'NO MORE HOSTS LEFT *************************************************************',
 u'',
 u'PLAY RECAP *********************************************************************',
 u'192.168.24.11              : ok=4    changed=2    unreachable=0    failed=1   ',
 u'192.168.24.21              : ok=4    changed=2    unreachable=0    failed=1   ',
 u'192.168.24.24              : ok=4    changed=2    unreachable=0    failed=1   ',

Which is being tracked in the BZ #1613255

Comment 15 Joanne O'Flynn 2018-08-15 07:51:52 UTC
This bug is marked for inclusion in the errata but does not currently contain draft documentation text. To ensure the timely release of this advisory please provide draft documentation text for this bug as soon as possible.

If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-".


To add draft documentation text:

* Select the documentation type from the "Doc Type" drop down field.

* A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field.

Comment 18 errata-xmlrpc 2018-08-29 16:39:25 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/RHBA-2018:2574