Bug 2312057

Summary: Password rotation fails with 'container' is undefined
Product: Red Hat OpenStack Reporter: Rabi Mishra <ramishra>
Component: tripleo-ansibleAssignee: Rabi Mishra <ramishra>
Status: CLOSED ERRATA QA Contact: Joe H. Rahme <jhakimra>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: astupnik, dhughes, drosenfe, mariel
Target Milestone: z4Keywords: Triaged
Target Release: 17.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tripleo-ansible-3.3.1-17.1.20240918100824.8debef3.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-21 09:42:41 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:

Description Rabi Mishra 2024-09-13 04:58:21 UTC
Description of problem:

ansible-playbook -i ./tripleo-deploy/undercloud/tripleo-ansible-inventory.yaml /usr/share/ansible/tripleo-playbooks/rotate-passwords.yaml 
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
[WARNING]: Found both group and host with same name: undercloud

PLAY [Rotate passwords] **********************************************************************************************************************************************************************************************************************

TASK [Set passwords_environment_path] ********************************************************************************************************************************************************************************************************
ok: [undercloud]

TASK [Rotate passwords] **********************************************************************************************************************************************************************************************************************
fatal: [undercloud]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'container' is undefined. 'container' is undefined\n\nThe error appears to be in '/usr/share/ansible/tripleo-playbooks/rotate-passwords.yaml': line 33, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: Rotate passwords\n      ^ here\n"}

NO MORE HOSTS LEFT ***************************************************************************************************************************************************************************************************************************

PLAY RECAP ***********************************************************************************************************************************************************************************************************************************
undercloud                 : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

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


How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:

Playbook fails with error.

Expected results:

Password file updated that would be used in next deployment.

Additional info:

Comment 9 errata-xmlrpc 2024-11-21 09:42:41 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 (RHOSP 17.1.4 bug fix and enhancement 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-2024:9974