Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1154117 - subscription-manager needs to update all the origins files available in the atomic host
Summary: subscription-manager needs to update all the origins files available in the a...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.1
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel72
TreeView+ depends on / blocked
 
Reported: 2014-10-17 15:14 UTC by Rehana
Modified: 2023-09-12 00:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-12 15:45:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rehana 2014-10-17 15:14:11 UTC
Description of problem:
Observed that with the current implementation , 'rpm-ostree upgrade' fails on the atomic host after a rollback with a error "error: Key file does not have group 'remote "rhel-atomic-host-beta-ostree""


Version-Release number of selected component (if applicable):
subscription-manager-1.12.5-1.git.9.1a03d02.el7.x86_64
python-rhsm-1.12.3-1.el7.x86_64
subscription-manager-plugin-ostree-1.12.5-1.git.9.1a03d02.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Test machine i have used is having an upgrade version of atomic host
2
.[cloud-user@atomic-02 ~]$ sudo subscription-manager  register
Username: stage_atomic1
Password:
The system has been registered with ID: 97042077-6d03-4877-b1ba-130d589fab5a
[cloud-user@atomic-02 ~]$ cat /ostree/repo/config
[core]
repo_version=1
mode=bare

3.
[cloud-user@atomic-02 ~]$ ls /etc/pki/entitlement/
 
ATTACHING SUBSCRIPTION
-------------------------
[cloud-user@atomic-02 ~]$ sudo subscription-manager  attach --pool 8a99f98148eb2ff70148eed819670c5b
Successfully attached a subscription for: Red Hat Enterprise Linux High Touch Beta
 
4.
OSTREE REPO DETAILS
-------------------
[cloud-user@atomic-02 ~]$ cat /ostree/repo/config
[core]
repo_version=1
mode=bare
 
[remote "rhel-atomic-preview-ostree"]
url = https://cdn.redhat.com/content/preview/rhel/atomic/7/x86_64/ostree/repo
gpg-verify = false
tls-client-cert-path = /etc/pki/entitlement/915518673597210285.pem
tls-client-key-path = /etc/pki/entitlement/915518673597210285-key.pem
tls-ca-path = /etc/rhsm/ca/redhat-uep.pem

5.
SUBSCRIPTION DETAILS
-------------------------
[cloud-user@atomic-02 ~]$ sudo rct cc /etc/pki/entitlement/915518673597210285.pem | grep "atomic" -A9
        Label: rhel-atomic-host-htb-rpms
        Vendor: Red Hat
        URL: /content/preview/rhel/atomic/7/$basearch/os
        GPG: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
        Enabled: False
        Expires: 86400
        Required Tags:
        Arches: x86_64
 
Content:
        Type: file
        Name: Red Hat Enterprise Linux Atomic Host Preview (Images)
        Label: rhel-atomic-preview-image
        Vendor: Red Hat
        URL: /content/preview/rhel/atomic/7/x86_64/images
        GPG: http://
        Enabled: False
        Expires: 86400
        Required Tags:
        Arches: x86_64
 
Content:
        Type: ostree
        Name: Red Hat Enterprise Linux Atomic Host Preview (Trees)
        Label: rhel-atomic-preview-ostree
        Vendor: Red Hat
        URL: /content/preview/rhel/atomic/7/x86_64/ostree/repo
        GPG: http://
        Enabled: False
        Expires: 86400
        Required Tags:
        Arches: x86_64
 
Content:
        Type: yum
        Name: Red Hat Enterprise Linux Atomic Host Preview (Source RPMs)
        Label: rhel-atomic-preview-source-rpms
        Vendor: Red Hat
        URL: /content/preview/rhel/atomic/7/x86_64/source/SRPMS
        GPG: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
        Enabled: False
        Expires: 86400
        Required Tags:
        Arches: x86_64
 
Content:
        Type: yum
        Name: Red Hat Enterprise Linux High Availability (for RHEL 7 Server) HTB (Debug RPMs)

6.
 
ORIGIN FILES AVAILABLE ON THE HOST
----------------------------------
 
OBSERVED THAT ONLY THE CURRENT DEPLOYMENTS ORIGIN FILE GOT UPDATED WITH THE REFSPEC
 
[cloud-user@atomic-02 ~]$ cd /ostree/deploy/rhel-atomic-host/deploy/

[cloud-user@atomic-02 deploy]$ cat 5881d6e2e5398e1dc14c515305819bf9fca5a6b747a0ad3d083b0b70ffd2f3a7.0.origin
[origin]
refspec=rhel-atomic-preview-ostree:rhel-atomic-host/7/x86_64/standard
 
[cloud-user@atomic-02 deploy]$ cat d45dfe1c31878ac83e3525e440b17267a46d4c2a917aa73a61f5d88d2ccbd529.1.origin
[origin]
refspec=rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard             ---->> THIS CONTENTS ARE FROM THE PREVIOUS ATTACHEMENT

7.
[cloud-user@atomic-02 deploy]$ sudo rpm-ostree rollback
Moving 'd45dfe1c31878ac83e3525e440b17267a46d4c2a917aa73a61f5d88d2ccbd529.1' to be first deployment
Transaction complete; bootconfig swap: yes deployment count change: 0)
Changed:
  docker-0.11.1-22.el7.x86_64
  redhat-release-atomic-host-7.0-20140701.0.atomic.el7.x86_64
Sucessfully reset deployment order; run "systemctl reboot" to start a reboot


8.reboot

9.
 
[cloud-user@atomic-02 ~]$ cat /ostree/repo/config
[core]
repo_version=1
mode=bare
 
[remote "rhel-atomic-preview-ostree"]
url = https://cdn.redhat.com/content/preview/rhel/atomic/7/x86_64/ostree/repo
gpg-verify = false
tls-client-cert-path = /etc/pki/entitlement/915518673597210285.pem
tls-client-key-path = /etc/pki/entitlement/915518673597210285-key.pem
tls-ca-path = /etc/rhsm/ca/redhat-uep.pem
 
[cloud-user@atomic-02 ~]$ cd /ostree/deploy/rhel-atomic-host/deploy/
[cloud-user@atomic-02 deploy]$ cat d45dfe1c31878ac83e3525e440b17267a46d4c2a917aa73a61f5d88d2ccbd529.1.origin
[origin]
refspec=rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard
 
[cloud-user@atomic-02 deploy]$ cat 5881d6e2e5398e1dc14c515305819bf9fca5a6b747a0ad3d083b0b70ffd2f3a7.0.origin
[origin]
refspec=rhel-atomic-preview-ostree:rhel-atomic-host/7/x86_64/standard

10.
Execute rpm-ostree upgrade

[cloud-user@atomic-02 deploy]$ sudo rpm-ostree upgrade
Updating from: rhel-atomic-host-beta-ostree:rhel-atomic-host/7/x86_64/standard
 
 
error: Key file does not have group 'remote "rhel-atomic-host-beta-ostree"'
 
Actual results:
RPM UPGRADE FAILED WITH ^^ ABOVE ERROR, AS THE CURRNTLY POINTED ORIGIN FILE DOESNOT HAVE THE UPDATED CONTENT

Expected results:
All the deployments available on the host should be updated with refspec

Additional info:

Comment 1 Rehana 2014-10-17 15:18:41 UTC
Hi Colin,

Team would like to get your comments on the same.

thanks,
Rehana

Comment 4 John Sefler 2015-09-25 15:34:20 UTC
deferring to rhel-7.3.0 due to schedule and severity

Comment 6 William Poteat 2016-09-12 15:45:03 UTC
Does not occur on rhel-atomic-host-ostree:rhel-atomic-host/7/x86-64/standard
    Verison: 7.2.6-1 (2016-08-18 16:01:03)

Closed as current release.

Comment 7 Red Hat Bugzilla 2023-09-12 00:41:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


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