Bug 1401695 - deploying older version of RHELAH with a package layer in place can fail [NEEDINFO]
Summary: deploying older version of RHELAH with a package layer in place can fail
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rpm-ostree-client
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: atomic-bugs@redhat.com
Yoana Ruseva
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-05 20:38 UTC by Micah Abbott
Modified: 2017-05-03 15:17 UTC (History)
2 users (show)

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
Clone Of:
Environment:
Last Closed: 2017-05-03 15:17:36 UTC
Target Upstream Version:
jlebon: needinfo? (walters)


Attachments (Terms of Use)

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


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