Bug 1640698 - [RHOS14] "dry-run" fails on task Assign bootstrap node
Summary: [RHOS14] "dry-run" fails on task Assign bootstrap node
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 14.0 (Rocky)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 14.0 (Rocky)
Assignee: James Slagle
QA Contact: Gurenko Alex
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-18 14:24 UTC by Gurenko Alex
Modified: 2023-09-14 04:40 UTC (History)
5 users (show)

Fixed In Version: openstack-tripleo-heat-templates-9.0.1-0.20181013060861.ffbe879.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-11 11:54:07 UTC
Target Upstream Version:
Embargoed:
agurenko: automate_bug?


Attachments (Terms of Use)
ansible log (151.84 KB, text/plain)
2018-10-18 14:24 UTC, Gurenko Alex
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 604461 0 None MERGED Fix tasks in check mode 2020-09-23 22:26:05 UTC
OpenStack gerrit 611658 0 None MERGED [Rocky ONLY] Fix haproxy cert inject for check mode 2020-09-23 22:26:05 UTC
Red Hat Product Errata RHEA-2019:0045 0 None None None 2019-01-11 11:54:18 UTC

Description Gurenko Alex 2018-10-18 14:24:58 UTC
Created attachment 1495313 [details]
ansible log

Description of problem: when performing dry-run it fails on Task Assign bootstrap node

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


How reproducible: 100%


Steps to Reproduce:
1. Deploy undercloud
2. Prepare for deployment, introspect & tag nodes
3. Add --stack-only to the overcloud_deploy.sh
4. Execute overcloud_deploy.sh
5. Generate ansible playbooks
6. Generate inventory file
7. Execute ansible-playbook with --check parameter

Actual results:

2018-10-18 08:28:31,660 p=811097 u=stack |  TASK [Assign bootstrap node] ***************************************************
2018-10-18 08:28:31,782 p=811097 u=stack |  skipping: [compute-1]
2018-10-18 08:28:31,796 p=811097 u=stack |  skipping: [compute-0]
2018-10-18 08:28:31,962 p=811097 u=stack |  fatal: [controller-2]: FAILED! => {"changed": true, "cmd": ["hiera", "-c", "/etc/puppet/hiera.yaml", "bootstrap_nodeid"], "delta": "0:00:00.067668", "end": "2018-10-18 08:28:31.946971", "msg": "non-zero return code", "rc": 1, "start": "2018-10-18 08:28:31.879303", "stderr": "Cannot find config file: /etc/puppet/hiera.yaml", "stderr_lines": ["Cannot find config file: /etc/puppet/hiera.yaml"], "stdout": "", "stdout_lines": []}
2018-10-18 08:28:31,968 p=811097 u=stack |  fatal: [controller-1]: FAILED! => {"changed": true, "cmd": ["hiera", "-c", "/etc/puppet/hiera.yaml", "bootstrap_nodeid"], "delta": "0:00:00.063390", "end": "2018-10-18 08:28:31.954378", "msg": "non-zero return code", "rc": 1, "start": "2018-10-18 08:28:31.890988", "stderr": "Cannot find config file: /etc/puppet/hiera.yaml", "stderr_lines": ["Cannot find config file: /etc/puppet/hiera.yaml"], "stdout": "", "stdout_lines": []}
2018-10-18 08:28:32,028 p=811097 u=stack |  fatal: [controller-0]: FAILED! => {"changed": true, "cmd": ["hiera", "-c", "/etc/puppet/hiera.yaml", "bootstrap_nodeid"], "delta": "0:00:00.071937", "end": "2018-10-18 08:28:32.013413", "msg": "non-zero return code", "rc": 1, "start": "2018-10-18 08:28:31.941476", "stderr": "Cannot find config file: /etc/puppet/hiera.yaml", "stderr_lines": ["Cannot find config file: /etc/puppet/hiera.yaml"], "stdout": "", "stdout_lines": []}
2018-10-18 08:28:32,029 p=811097 u=stack |  NO MORE HOSTS LEFT *************************************************************


Expected results:

Check run completes successfully

Additional info:

Comment 5 Artem Hrechanychenko 2018-11-01 10:50:48 UTC
VERIFIED
openstack-tripleo-heat-templates-9.0.1-0.20181013060864.ffbe879.el7ost.noarch

openstack overcloud config download --config-dir cd-overcloud --name overcloud
 tripleo-ansible-inventory   --ansible_ssh_user heat-admin --static-yaml-inventory inventory.yaml
  ansible-playbook -i inventory.yaml  cd-overcloud/deploy_steps_playbook.yaml --ssh-extra-args="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ControlMaster=auto -o ControlPersist=30m" --become --check

Comment 8 errata-xmlrpc 2019-01-11 11:54:07 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

Comment 9 Red Hat Bugzilla 2023-09-14 04:40:28 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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