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: ---Flags: jlebon: needinfo? (walters)
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:

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