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 1722330 - No ds-identify exists on RHEL8.x after installed cloud-init.
Summary: No ds-identify exists on RHEL8.x after installed cloud-init.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cloud-init
Version: 8.1
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: beta
: 8.2
Assignee: Eduardo Otubo
QA Contact: Huijuan Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-06-20 05:33 UTC by Pengpeng Sun
Modified: 2020-12-20 07:19 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-12 11:34:45 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Pengpeng Sun 2019-06-20 05:33:15 UTC
Description of problem:
No ds-identify exists on RHEL8.x after installed cloud-init.

On systemd systems, the cloud-init-generator uses the ds-identify program and hardcodes the path to the program. The value is correct for Ubuntu/Debian and other systems, however on centos-based systems, ds-identify is installed down libexec path. 
There is cloud-init fix on this: https://git.launchpad.net/cloud-init/commit/?id=e1795a5c


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

How reproducible:


Steps to Reproduce:
1. Install cloud-init
2. Chcek path /usr/libexec/cloud-init/

Actual results:
No ds-identify exists


Expected results:
ds-identify should be under /usr/libexec/cloud-init/

Additional info:

Comment 1 Pengpeng Sun 2019-06-20 06:05:19 UTC
Set target to 8.1 Beta, please correct it if it's wrong. Thanks.

Comment 2 ldu 2019-06-20 09:34:27 UTC
This issue could be reproduce on RHEL8.1 and RHEL7.7.

Comment 6 Pengpeng Sun 2019-09-09 08:18:40 UTC
Hi Eduardo,

I see this is targeted to 8.2. Do you think the ds-identify.sh could also be added to RHEL7.x?

Thanks,
Pengpeng

Comment 7 Eduardo Otubo 2019-09-12 11:34:45 UTC
(In reply to Pengpeng Sun from comment #6)
> Hi Eduardo,
> 
> I see this is targeted to 8.2. Do you think the ds-identify.sh could also be
> added to RHEL7.x?
> 
> Thanks,
> Pengpeng

ds-identify was added to rhel-7.8 branch (and will be added to rhel-8.2 branch:

commit 6954486d1318a3d1aa5bbcfcb119bcfcb73618bf
Author: Eduardo Otubo <otubo>
Date:   Fri Sep 6 12:12:11 2019 +0200

    Fix for network configuration not persisting after reboot
    
    RH-Author: Eduardo Otubo <otubo>
    Message-id: <20190906121211.23172-1-otubo>
    Patchwork-id: 90300
    O-Subject: [RHEL-7.8/RHEL-8.1.0 cloud-init PATCH] Fix for network configuration not persisting after reboot
    Bugzilla: 1593010
    RH-Acked-by: Mohammed Gamal <mgamal>
    RH-Acked-by: Miroslav Rezanina <mrezanin>
    
    The reasons the configuration does not persist after reboot includes
    different aspects and they're all fixed on this patch:
    
      1) The rpm package doesn't include the systemd-generator and
    ds-identify. The systemd-generator is called early in the boot process
    that calls ds-identify to check if there's any Data Source available in
    the current boot. In the current use case, the Data Source is removed
    from the VM on the second boot, this means cloud-init should disable
    itself in order to keep the configuration it did in the first boot.
    
      2) Even after adding those scripts, cloud-init was still being
    executed and the configurations were being lost. The reason for this is
    that the cloud-init systemd units had a wrong dependency
    
         WantedBy: multi-user.target
    
         Which would start them every time no matter the return of
    ds-identify. The fix is to replace the dependency by the systemd unit to
    cloud-init.target, which is the main cloud-init target enabled - or in
    this case, disabled by ds-identify. The file cloud-init.target was also
    missing on rpm package.
    
    After adding both scripts, the main cloud-init systemd target and
    adjusting the systemd dependencies the configuration persists after
    reboots and shutdowns.
    
    Signed-off-by: Eduardo Otubo <otubo>
    Signed-off-by: Miroslav Rezanina <mrezanin>

Comment 8 Pengpeng Sun 2019-12-10 09:26:37 UTC
Hi Eduardo,

Our team is checking the new 8.2 alpha build, found ds-identify is not there, could you please double-check it?

Thanks,
Pengpeng

Comment 9 Eduardo Otubo 2019-12-12 13:51:05 UTC
(In reply to Pengpeng Sun from comment #8)
> Hi Eduardo,
> 
> Our team is checking the new 8.2 alpha build, found ds-identify is not
> there, could you please double-check it?
> 
> Thanks,
> Pengpeng

I can confirm the above mentioned patch in comment #7 is in the rhel-8.2.0 branch of cloud-init, perhaps it's be present in the next build?

Comment 10 Eduardo Otubo 2019-12-19 15:05:53 UTC
(In reply to Eduardo Otubo from comment #9)
> (In reply to Pengpeng Sun from comment #8)
> > Hi Eduardo,
> > 
> > Our team is checking the new 8.2 alpha build, found ds-identify is not
> > there, could you please double-check it?
> > 
> > Thanks,
> > Pengpeng
> 
> I can confirm the above mentioned patch in comment #7 is in the rhel-8.2.0
> branch of cloud-init, perhaps it's be present in the next build?

Just as a reference, the package I checked is cloud-init-18.5-8.el8. You should use this package (or version above) to have ds-identify included.


Note You need to log in before you can comment on or make changes to this bug.