Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2000664

Summary: cloud-init version 21.1-6.el8 installed from centOS 8 stream appstream repo is not checking/setting dir permissions correctly
Product: Red Hat Enterprise Linux 8 Reporter: Ronelle Landy <rlandy>
Component: cloud-initAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED DUPLICATE QA Contact: xiachen
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: ---CC: aschultz, dviroel, huzhao, jgreguske, xiachen, xiliang, yacao
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cloud-init-21.1-7.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-09 03:47:21 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 Ronelle Landy 2021-09-02 16:27:36 UTC
Description of problem:

Cloud-init version:
cloud-init.noarch 21.1-6.el8 @appstream
is causing failures like those logged in https://bugs.launchpad.net/tripleo/+bug/1942356 due to directory permission issues.

Running with the previous version of cloud-init cloud-init.noarch 21.1-3.el8 @appstream, all jobs passed.

Suspected change that caused the problem:

https://git.centos.org/rpms/cloud-init/blob/0f12fbd6d9d3f58c1b8c68ef8f6f1e5f2cbe40c8/f/SOURCES/ci-Stop-copying-ssh-system-keys-and-check-folder-permis.patch


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

cloud-init.noarch 21.1-6.el8 @appstream

How reproducible:

Always  - can be reproduced in a local environment (the folder is root, but the key file is user).
All openstack train jobs which use cloud-init with this new version are failing.


Steps to Reproduce:

See related launchpad bug.

Actual results:

Actions on that dir will fail due to permissions problems


Expected results:

The dir should have the correct user permissions set.


Additional info:

Comment 1 xiachen 2021-09-03 00:56:53 UTC
Hi Ronelle,
Thanks for reporting this bug, it is fixed in cloud-init-21.1-7.el8.
Would you please try the new version? let me know if any problem.
Detail see this BZ#1995840.

Comment 2 Alex Schultz 2021-09-07 22:00:10 UTC
21.1-7 is not currently available on CentOS Stream 8. Any ETA on getting that published over there?

Comment 3 xiachen 2021-09-08 09:48:43 UTC
Hi Alex,
As far as I know, it is eligible for the Stream team to pull into the CentOS Stream 8 sources and build it.
so you have to ask Stream team for your question.

(In reply to Alex Schultz from comment #2)
> 21.1-7 is not currently available on CentOS Stream 8. Any ETA on getting
> that published over there?

Comment 4 Alex Schultz 2021-09-08 14:21:31 UTC
Looks like -7 just hit the mirrors. I'll try to test it out today

Comment 5 Alex Schultz 2021-09-08 18:53:36 UTC
Verified that -7 no longer has incorrect user .ssh directory permissions

Comment 6 xiachen 2021-09-09 03:47:21 UTC
Thanks Alex for your quickly test.
Closed this bug. 
If anyone still have the problem, please reopen BZ#1995840.

*** This bug has been marked as a duplicate of bug 1995840 ***