Bug 1634750 - [OSP14] Ansible "dry-run" fails with TASK [set is_bootstrap_node fact] - FAILED! => {"msg": "The task includes an option with an undefined variable.
Summary: [OSP14] Ansible "dry-run" fails with TASK [set is_bootstrap_node fact] - FAI...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 14.0 (Rocky)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: beta
: 14.0 (Rocky)
Assignee: Emilien Macchi
QA Contact: Gurenko Alex
URL:
Whiteboard: DFG:DF
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-01 14:19 UTC by Artem Hrechanychenko
Modified: 2019-01-11 11:53 UTC (History)
3 users (show)

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:
Clone Of:
Environment:
Last Closed: 2019-01-11 11:53:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
ansible-playbook run logs (957.29 KB, application/x-gzip)
2018-10-01 14:19 UTC, Artem Hrechanychenko
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1795488 0 None None None 2018-10-01 18:24:22 UTC
OpenStack gerrit 607019 0 None None None 2018-10-01 18:25:58 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:53:35 UTC

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


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