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

Bug 2234492

Summary: [DDF] [hackfest] ssh_key_rotation.yaml does not work, or at least not well
Product: Red Hat OpenStack Reporter: Direct Docs Feedback <ddf-bot>
Component: tripleo-ansibleAssignee: Andre <afariasa>
Status: CLOSED ERRATA QA Contact: Nobody <nobody>
Severity: medium Docs Contact:
Priority: high    
Version: 17.1 (Wallaby)CC: afariasa, camorris, ccamacho, cgussobo, dwilde, jamsmith, jjoyce, jschluet, mariel, mhauryli, millevy, sgolovat, slinaber, tvignaud
Target Milestone: z4Keywords: Triaged
Target Release: 17.1   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tripleo-ansible-3.3.1-17.1.20240920151437.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-21 09:38:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2023-08-24 16:01:06 UTC
[hackfest] This does not work, or at least not well

It will try to create a folder on the overcloud nodes and will likely fail if doesn't have access to path.

We used /home/stack/backup thinking it was going to put a copy on the undercloud, which it did. But it adds failure trying to put them on the overcloud node like this:

fatal: [overcloud-compute-0]: FAILED! => {"changed": false, "msg": "There was an issue creating /home/stack as requested: [Errno 13] Permission denied: b'/home/stack'", "pat
h": "/home/stack/backup"}                                                                                                                                                    
fatal: [overcloud-compute-1]: FAILED! => {"changed": false, "msg": "There was an issue creating /home/stack as requested: [Errno 13] Permission denied: b'/home/stack'", "pat
h": "/home/stack/backup"}                                                                                                                                                    
fatal: [overcloud-controller-0]: FAILED! => {"changed": false, "msg": "There was an issue creating /home/stack as requested: [Errno 13] Permission denied: b'/home/stack'", "
path": "/home/stack/backup"}                                                                                                                                                 


Reported by: rhn-support-camorris

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.1/html/framework_for_upgrades_16.2_to_17.1/upgrading-the-undercloud-operating-system#annotations:a595a357-7c24-4cdb-acac-7bb4b28f3ee5

Comment 3 Juan Badia Payno 2023-08-29 08:35:06 UTC
My guess here is that the backup_folder_path was set to /home/stack/backup and the stack user does not exit on the overcloud nodes.

Set the variable to backup_folder_path=/home/{{ ansible_user_id }}/backup might fix the issue.

IMHO, I think we should remove the backup_folder_path from the ansible-paybook command and rephrase the last Replace by you can set the backup_folder_path variable with a little explanation (keep in mind that this folder will be use for the undercloud and the overcloud nodes)

Comment 12 MilanaLevy 2023-11-07 13:00:07 UTC
*** Bug 2234485 has been marked as a duplicate of this bug. ***

Comment 14 MilanaLevy 2024-08-13 15:17:27 UTC
Script is running well. Verified.

Comment 21 errata-xmlrpc 2024-11-21 09:38:37 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