Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1611016 - [FFU/UPGRADES]: Controllers upgrade fails on TASK [tripleo-ssh-known-hosts : Template /etc/ssh/ssh_known_hosts] [NEEDINFO]
[FFU/UPGRADES]: Controllers upgrade fails on TASK [tripleo-ssh-known-hosts : ...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common (Show other bugs)
13.0 (Queens)
Unspecified Unspecified
high Severity urgent
: z2
: 13.0 (Queens)
Assigned To: Jose Luis Franco
Alexander Chuzhoy
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-08-01 19:16 EDT by Marius Cornea
Modified: 2018-08-29 12:40 EDT (History)
9 users (show)

See Also:
Fixed In Version: openstack-tripleo-common-8.6.3-9.el7ost.src.rpm
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-08-29 12:39:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
joflynn: needinfo? (jfrancoa)


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1782168 None None None 2018-08-06 02:49 EDT
OpenStack gerrit 584994 None master: MERGED tripleo-common: Set known hosts when --limit is set. (I8c687c53aa4cff18ac15c332a72fb40ed730e69c) 2018-08-09 11:35 EDT
Red Hat Product Errata RHBA-2018:2574 None None None 2018-08-29 12:40 EDT

  None (edit)
Description Marius Cornea 2018-08-01 19:16:16 EDT
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 06:14:22 EDT
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 03:51:52 EDT
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 12:39:25 EDT
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

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