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.
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: