Bug 1814175

Summary: [rhel-7.9]Incorrect ds-identify check in cloud-init-generator
Product: Red Hat Enterprise Linux 7 Reporter: Miroslav Rezanina <mrezanin>
Component: cloud-initAssignee: Eduardo Otubo <eterrell>
Status: CLOSED WONTFIX QA Contact: Huijuan Zhao <huzhao>
Severity: unspecified Docs Contact: Jiri Herrmann <jherrman>
Priority: unspecified    
Version: 7.9CC: eterrell, huzhao, jgreguske, jmaloy, leiwang, ribarry, xiachen, xiliang, yacao, yuxisun
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cloud-init-19.4-8.el7 Doc Type: Known Issue
Doc Text:
Cause: Downstream we support a different path for ds-identify script. Consequence: There's no specific bug related to that. Having in compatible with upstream would make it easier to backport patches in the future. Workaround (if any): Result: The patches have been dropped since we're not likely to backport more huge fixes for RHEL-7 family.
Story Points: ---
Clone Of:
: 1834173 (view as bug list) Environment:
Last Closed: 2020-06-24 19:14:19 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:
Bug Depends On:    
Bug Blocks: 1834173, 1844366    

Description Miroslav Rezanina 2020-03-17 09:30:11 UTC
ds-identify path in cloud-init-generator depends on used system. Upstraem uses /usr/libexec for redhat, centos and fedora. However, in redhat we use /usr/lib path. This change was introduced in commit e1795a5c (in 19.4).

We hacked this problem during rebase by removing redhat from check. However, we should examine whether the upstream check is incorrect (and we need to fix it) or we should move ds-identify to /usr/libexec.

Comment 14 Huijuan Zhao 2020-06-10 07:51:11 UTC
Tested with cloud-init-19.4-8.el7, the issue is fixed.
The ds-identify path is changed from /usr/lib/cloud-init/ to /usr/libexec/cloud-init/, cloud-init basic functions work well.

Test version:
$ uname -a
Linux huzhao-79-test-bug 3.10.0-1149.el7.x86_64 #1 SMP Thu Jun 4 17:13:53 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux

$ rpm -qa | grep cloud-init
cloud-init-19.4-8.el7.x86_64

Change the status to VERIFIED.