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

Bug 1634750

Summary: [OSP14] Ansible "dry-run" fails with TASK [set is_bootstrap_node fact] - FAILED! => {"msg": "The task includes an option with an undefined variable.
Product: Red Hat OpenStack Reporter: Artem Hrechanychenko <ahrechan>
Component: openstack-tripleo-heat-templatesAssignee: Emilien Macchi <emacchi>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: jslagle, mburns, slinaber
Target Milestone: betaKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: x86_64   
OS: Linux   
Whiteboard: DFG:DF
Fixed In Version: openstack-tripleo-heat-templates-9.0.0-0.20180919080945.0rc1.0rc1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:53:30 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
ansible-playbook run logs none

Description Artem Hrechanychenko 2018-10-01 14:19:14 UTC
Created attachment 1489062 [details]
ansible-playbook run logs

Description of problem:
When trying to perform a "dry-run" on config download playbooks, check fails on the task :TASK [set is_bootstrap_node fact] 

TASK [set is_bootstrap_node fact] *********************************************************************************************************************************************************************************
fatal: [controller-2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    register: bootstrap_node\n  - name: set is_bootstrap_node fact\n    ^ here\n"}
fatal: [controller-1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    register: bootstrap_node\n  - name: set is_bootstrap_node fact\n    ^ here\n"}
fatal: [controller-0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    register: bootstrap_node\n  - name: set is_bootstrap_node fact\n    ^ here\n"}


Version-Release number of selected component (if applicable):
openstack-tripleo-common-9.3.1-0.20180920204842.el7ost.noarch

How reproducible:


Steps to Reproduce:
1. Install undercloud
2. Create stack with openstack overcloud deploy --stack-only
3. Generate config download files with openstack overcloud config download --config-dir cd-overcloud --name overcloud
4. Generate ansible inventory
5. Run ansible with --check option

Actual results:
TASK [set is_bootstrap_node fact] *********************************************************************************************************************************************************************************
fatal: [controller-2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    register: bootstrap_node\n  - name: set is_bootstrap_node fact\n    ^ here\n"}
fatal: [controller-1]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    register: bootstrap_node\n  - name: set is_bootstrap_node fact\n    ^ here\n"}
fatal: [controller-0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/stack/cd-overcloud/ControllerOpenstack/host_prep_tasks.yaml': line 290, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n    register: bootstrap_node\n  - name: set is_bootstrap_node fact\n    ^ here\n"}


Expected results:
Check run completes successfully


Additional info:

Comment 5 Gurenko Alex 2018-10-22 07:10:36 UTC
Verified on puddle 2018-10-10.3

2018-10-18 11:33:07,568 p=196580 u=stack |  TASK [set is_bootstrap_node fact] ************************************************************************************************************************************************************************************************
2018-10-18 11:33:07,664 p=196580 u=stack |  ok: [controller-2]
2018-10-18 11:33:07,696 p=196580 u=stack |  ok: [controller-1]
2018-10-18 11:33:07,697 p=196580 u=stack |  skipping: [compute-1]
2018-10-18 11:33:07,697 p=196580 u=stack |  ok: [controller-0]
2018-10-18 11:33:07,709 p=196580 u=stack |  skipping: [compute-0]

Task passes check successfully

Comment 7 errata-xmlrpc 2019-01-11 11:53:30 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-2019:0045