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: rc   
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 ***