Bug 1684864 - ssh_known_hosts tasks fail in check mode
Summary: ssh_known_hosts tasks fail in check mode
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 14.0 (Rocky)
Assignee: Alex Schultz
QA Contact: Victor Voronkov
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-03 11:05 UTC by Victor Voronkov
Modified: 2019-04-30 17:51 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-common-9.4.1-0.20190119050435.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-30 17:51:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
full log of the failure (505.74 KB, application/x-shellscript)
2019-03-03 11:05 UTC, Victor Voronkov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 639695 0 None None None 2019-03-04 12:26:04 UTC
Red Hat Product Errata RHBA-2019:0878 0 None None None 2019-04-30 17:51:25 UTC

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


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