Bug 1684864

Summary: ssh_known_hosts tasks fail in check mode
Product: Red Hat OpenStack Reporter: Victor Voronkov <vvoronko>
Component: openstack-tripleo-commonAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: Victor Voronkov <vvoronko>
Severity: high Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: aschultz, emacchi, mburns, owalsh, ramishra, rheslop, slinaber, vvoronko
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-9.4.1-0.20190119050435.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-30 17:51:15 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:
Attachments:
Description Flags
full log of the failure none

Description Victor Voronkov 2019-03-03 11:05:31 UTC
Created attachment 1540272 [details]
full log of the failure

Description of problem:
Running deployment in dry run mode (only validating config files without actually deploying, performed by running ansible playbooks in check mode) fails while trying to run tripleo-ssh-known-hosts task, here the log:

TASK [tripleo-ssh-known-hosts : Create a temporary copy of ssh_known_hosts] ****
fatal: [controller-2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'path'\n\nThe error appears to have been in '/usr/share/ansible/roles/tripleo-ssh-known-hosts/tasks/main.yml': line 12, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n      register: ssh_known_hosts_tmp\n    - name: Create a temporary copy of ssh_known_hosts\n      ^ here\n"}

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


How reproducible:
Run overcloud deployment with dry-run flag

Steps to Reproduce:
1.
2.
3.

Actual results:
Validation fails because of undefined variable (see above)

Expected results:
All ansible playbooks should pass in check mode

Additional info:
https://rhos-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/view/DFG/view/df/view/rfe/job/DFG-df-rfe-14-virsh-3cont_2comp_3ceph-dry-run-verification/16/artifact/.sh/verification-run.log

Comment 1 Victor Voronkov 2019-03-03 11:23:15 UTC
upstream bug opened with solution proposed:
https://bugs.launchpad.net/tripleo/+bug/1817765

Comment 6 Victor Voronkov 2019-04-08 14:33:08 UTC
Tested on puddle 2019-04-05.1 and passed this step

Comment 9 errata-xmlrpc 2019-04-30 17:51:15 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-2019:0878