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 1401695

Summary: deploying older version of RHELAH with a package layer in place can fail
Product: Red Hat Enterprise Linux 7 Reporter: Micah Abbott <miabbott>
Component: rpm-ostree-clientAssignee: Colin Walters <walters>
Status: CLOSED CURRENTRELEASE QA Contact: atomic-bugs <atomic-bugs>
Severity: unspecified Docs Contact: Yoana Ruseva <yruseva>
Priority: unspecified    
Version: 7.3CC: jlebon, walters
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
Cause: Attempting to deploy an older version of RHELAH with a package layer in place Consequence: Deployment will fail with an error about being unable to find the 'os-release' file Workaround (if any): Uninstall any package layers and retry the the deployment of an older version of RHELAH Result: The deployment of the older version of RHELAH will succeed
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-03 15:17:36 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 Micah Abbott 2016-12-05 20:38:45 UTC
I installed 'strace' via 'atomic host install' on RHELAH 7.3.1 and then tried to deploy 7.3.  This failed with an error related to the location of /etc/os-release.  The host is registered with only server, extras, and optional repos enabled.


# atomic host status
State: idle
Deployments:
● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
       Version: 7.3.1 (2016-12-05 19:56:43)
    BaseCommit: 42cfe1ca3305defb16dfd59cd0be5c539f19ea720dba861ed11e13941423ae86
        Commit: 3b07f298ad88cd72a2bd3d1aebe4c44e961b75d6a6dd81ddf647fb1e7a363f5b
        OSName: rhel-atomic-host
      Packages: strace

  rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
       Version: 7.3.1 (2016-11-30 02:14:24)
        Commit: 42cfe1ca3305defb16dfd59cd0be5c539f19ea720dba861ed11e13941423ae86
        OSName: rhel-atomic-host

# atomic host deploy 7.3
Resolving version '7.3'

1 metadata, 1 content objects fetched; 17242 KiB transferred in 3 seconds                                                                                                                                          
Checking out tree 90c9735... done
error: Could not find os-release in etc/ nor in usr/lib under source root '/proc/self/fd/23/tmp/rpmostree-commit-1P7HSY'

# subscription-manager repos --list-enabled
+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-7-server-extras-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Extras (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/7Server/$basearch/extras/os
Enabled:   1

Repo ID:   rhel-7-server-rpms
Repo Name: Red Hat Enterprise Linux 7 Server (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/os
Enabled:   1

Repo ID:   rhel-7-server-optional-rpms
Repo Name: Red Hat Enterprise Linux 7 Server - Optional (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel/server/7/$releasever/$basearch/optional/os
Enabled:   1



If I remove the package and try to deploy 7.3, it succeeds.

Comment 1 Jonathan Lebon 2016-12-05 21:06:18 UTC
This will be fixed once we bump up the libdnf submodule to include https://github.com/rpm-software-management/libhif/pull/215, though it's much too late for 7.3.1 for that. I'd say this will just have to be documented.

Comment 4 Micah Abbott 2017-05-03 15:17:36 UTC
This looks fixed in RHELAH 7.3.4

Comment 5 Red Hat Bugzilla 2023-09-14 03:35:38 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days