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 1650481 - rhel 8.0 container cannot update from Satellite 6
Summary: rhel 8.0 container cannot update from Satellite 6
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: 8.0
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1645205
Blocks: 1186913 1623566 1646867 1648020 1648263 1648479
TreeView+ depends on / blocked
 
Reported: 2018-11-16 09:58 UTC by gaoshang
Modified: 2022-03-13 16:05 UTC (History)
27 users (show)

Fixed In Version: 1631299
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1645205
Environment:
Last Closed: 2019-06-14 01:53:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 1960 0 'None' closed 1645205: Do not update ent certs inside containers 2020-05-19 20:44:35 UTC
Red Hat Issue Tracker RHELPLAN-20145 0 None None None 2021-12-10 18:28:32 UTC
Red Hat Knowledge Base (Solution) 3674021 0 None None None 2018-11-16 09:58:18 UTC

Description gaoshang 2018-11-16 09:58:18 UTC
+++ This bug was initially created as a clone of Bug #1645205 +++

Description of problem:
The new rhel 7.6:latest docker image cannot update against Satellite 6. The image can update against the CDN without issue.

The subscription-manager yum plugin is removing the entitlement certificates:
[root@6261007e4031 /]# ll -R /run/secrets/etc-pki-entitlement/
/run/secrets/etc-pki-entitlement/:
total 16
-rwx------. 1 root root 1679 Nov  1 15:41 7016097620284974224-key.pem
-rwx------. 1 root root 8404 Nov  1 15:41 7016097620284974224.pem

[root@6261007e4031 /]# yum repolist
Loaded plugins: ovl, product-id, search-disabled-repos, subscription-manager
1 local certificate has been deleted.
...

[root@6261007e4031 /]# ll -R /run/secrets/etc-pki-entitlement/
/run/secrets/etc-pki-entitlement/:
total 0

Version-Release number of selected component (if applicable):
registry.access.redhat.com/rhel7:7.6-115
Satellite 6.4

How reproducible:
100 %

Steps to Reproduce:
 - register docker host to Satellite 6
 - build latest image and run yum command

Actual results:
The image deletes the certificates and cannot retrieve content

Expected results:
The image retrieves the same repolist as the host and content can be updated/installed

----------------------------------------------------------------------
This bug also exist on RHEL-8.0-20181113.1(RHEL-8.0-Beta-1.7) against satellite-6.4.0-15.el7sat.noarch, so clone it for rhel 8 testing.

Comment 4 gaoshang 2018-12-10 08:31:50 UTC
This bug has been fixed on RHEL-8.0-20181204.0, thanks.

Steps:
1, # subscription-manager register --username=admin --password=admin --auto-attach
Registering to: satellite64.cdn.com:443/rhsm
The system has been registered with ID: 9fb292aa-a809-4df1-8ba2-a249f5d5de52
The registered system name is: dell-r730-002-guest09.dsal.lab.eng.rdu2.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed

2, # podman run --rm -ti brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel8:8.0-783 bash
Trying to pull brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel8:8.0-783...Getting image source signatures
Copying blob sha256:bd061dc9c0937295af139cb015284a386e1fb8d8345d32c6226afadce457f5dd
 66.69 MB / 66.69 MB [======================================================] 3s
Copying blob sha256:30c2733514a864b2f99555d12b5372d11808aa8c5e04c76fdd49dc75fac275d6
 1.32 KB / 1.32 KB [========================================================] 0s
Copying config sha256:f2ec2bb0f064aa9058c231b2869bb0fc7ad01a44c84dc978cc35e3f245128435
 6.33 KB / 6.33 KB [========================================================] 0s
Writing manifest to image destination
Storing signatures

# ls -l /run/secrets/etc-pki-entitlement/ /etc/pki/entitlement-host/
/etc/pki/entitlement-host/:
total 8
-rwx------. 1 root root 1675 Dec 10 08:26 5392543080298833542-key.pem
-rwx------. 1 root root 2944 Dec 10 08:26 5392543080298833542.pem

/run/secrets/etc-pki-entitlement/:
total 8
-rwx------. 1 root root 1675 Dec 10 08:26 5392543080298833542-key.pem
-rwx------. 1 root root 2944 Dec 10 08:26 5392543080298833542.pem

3, #  yum -v repolist
Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
DNF version: 4.0.9
cachedir: /var/cache/dnf
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Completion plugin: Generating completion cache...
No repositories available

4, # ls -l /run/secrets/etc-pki-entitlement/ /etc/pki/entitlement-host/
/etc/pki/entitlement-host/:
total 8
-rwx------. 1 root root 1675 Dec 10 08:26 5392543080298833542-key.pem
-rwx------. 1 root root 2944 Dec 10 08:26 5392543080298833542.pem

/run/secrets/etc-pki-entitlement/:
total 8
-rwx------. 1 root root 1675 Dec 10 08:26 5392543080298833542-key.pem
-rwx------. 1 root root 2944 Dec 10 08:26 5392543080298833542.pem

Comment 5 qianzhan 2018-12-10 11:01:24 UTC
Comment 4 verified RHEL-8.0-20181204.0 against Satellite6.4.

So the following steps are try to verify RHEL-8.0-20181204.0 against Satellite6.5-snapshot7.0:
1)
subscription-manager: 1.23.8-4.el8
candlepin-2.5.8-1.el7.noarch
tfm-rubygem-katello-3.10.0-0.1.rc1.1.el7sat.noarch
katello-3.10.0-0.6.rc1.el7sat.noarch

2)
[root@dell-r730-002-guest09 ~]# subscription-manager register --auto-attach
Registering to: satellite65.sp7.com:443/rhsm
Username: admin
Password: 
The system has been registered with ID: 670b1963-6fdc-42bd-9b06-c58ef8c3fcf7
The registered system name is: dell-r730-002-guest09.dsal.lab.eng.rdu2.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed

3)
[root@dell-r730-002-guest09 ~]# podman run --rm -ti brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/rhel8:8.0-783 bash

bash-4.4# ls -l /run/secrets/etc-pki-entitlement/ /etc/pki/entitlement-host/
/etc/pki/entitlement-host/:
total 8
-rwx------. 1 root root 1675 Dec 10 10:57 8653334736825063285-key.pem
-rwx------. 1 root root 2834 Dec 10 10:57 8653334736825063285.pem

/run/secrets/etc-pki-entitlement/:
total 8
-rwx------. 1 root root 1675 Dec 10 10:57 8653334736825063285-key.pem
-rwx------. 1 root root 2834 Dec 10 10:57 8653334736825063285.pem

4)
bash-4.4# yum -v repolist
Loaded plugins: builddep, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
DNF version: 4.0.9
cachedir: /var/cache/dnf
Updating Subscription Management repositories.
Unable to read consumer identity
Subscription Manager is operating in container mode.
Completion plugin: Generating completion cache...
No repositories available


bash-4.4# ls -l /run/secrets/etc-pki-entitlement/ /etc/pki/entitlement-host/
/etc/pki/entitlement-host/:
total 8
-rwx------. 1 root root 1675 Dec 10 10:57 8653334736825063285-key.pem
-rwx------. 1 root root 2834 Dec 10 10:57 8653334736825063285.pem

/run/secrets/etc-pki-entitlement/:
total 8
-rwx------. 1 root root 1675 Dec 10 10:57 8653334736825063285-key.pem
-rwx------. 1 root root 2834 Dec 10 10:57 8653334736825063285.pem

Verified! Move this bug from ON_QA to VERIFIED.


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