Bug 1668947
| Summary: | subscription-manager does not use enable_metadata = 0 for disabled repositories | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Magnus Glantz <sudo> | ||||
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 8.0 | CC: | cdonnell, csnyder, cww, jhnidek, jsefler, kwalker, mmcgrath, rhughes, skallesh, sudo, wchadwic | ||||
| Target Milestone: | rc | Keywords: | Triaged | ||||
| Target Release: | 8.0 | Flags: | rule-engine:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | subscription-manager-1.23.8-19 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-06-14 02:03:21 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: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1635157 | ||||||
| Attachments: |
|
||||||
|
Description
Magnus Glantz
2019-01-23 23:07:56 UTC
*** Bug 1667111 has been marked as a duplicate of this bug. *** Magnus, We have implemented the fix on the subscription-manager side - 'enable_metadata = 0' is applied to all of the inactive repositories from the sub-man perspective. With that said, it is still really slow in my opinion - and I still wouldn't wait the 48 seconds it took to loop through all of them anyway (Not on a web-page with no feedback, anyway). That being the case, would you mind verifying this bug from your side that it meets your expectations? From my standpoint this is now VERIFIED as far as subscription-manager is concerned. [root@dhcp7-157 ~]# rpm -q subscription-manager subscription-manager-1.23.8-19.el8.x86_64 [root@dhcp7-157 ~]# grep enable_metadata /etc/yum.repos.d/redhat.repo enable_metadata = 0 enable_metadata = 0 enable_metadata = 1 enable_metadata = 0 enable_metadata = 1 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 enable_metadata = 0 [root@dhcp7-157 ~]# time pkcon -vp refresh force 13:55:47 PackageKit Verbose debugging enabled (on console 1) 13:55:47 PackageKit filter=(null), filters=0 13:55:47 PackageKit adding state 0x5607ed518800 13:55:47 PackageKit role now refresh-cache Transaction: Refreshing cache 13:55:47 PackageKit notify::connected Status: Waiting in queue Status: Waiting for authentication Status: Waiting in queue Status: Starting Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Percentage: 10 Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Percentage: 20 Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Status: Downloading repository information Status: Loading cache Percentage: 90 Status: Downloading repository information Status: Loading cache Status: Querying Status: Loading cache Percentage: 100 Status: Finished 13:56:35 PackageKit remove state 0x5607ed518800 Results: real 0m48.421s user 0m0.036s sys 0m0.029s That seems weird, PackageKit seems to still be processing the repositories in your test. AFAIK, it should just print out: "Status: Downloading repository information" ..twice - as only two repositories are enabled and without enable_metadata = 0. Let me test this. Re-testing version... [root@kvm-01-guest22 ~]# rpm -q subscription-manager subscription-manager-1.23.8-26.el8.x86_64 [root@kvm-01-guest22 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com --username=stage_auto_testuser --auto-attach Registering to: subscription.rhsm.stage.redhat.com:443/subscription Password: The system has been registered with ID: 0dc71f49-5011-42c7-86fe-7df347ea3afd The registered system name is: kvm-01-guest22.lab.eng.rdu2.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta Status: Subscribed [root@kvm-01-guest22 ~]# dnf repolist --disablerepo=beaker* Updating Subscription Management repositories. Last metadata expiration check: 0:00:26 ago on Tue 19 Feb 2019 12:28:39 PM EST. repo id repo name status rhel-8-for-x86_64-appstream-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs) 8,287 rhel-8-for-x86_64-baseos-htb-rpms Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs) 3,567 [root@kvm-01-guest22 ~]# egrep "^\[|enable" /etc/yum.repos.d/redhat.repo [rhel-8-for-x86_64-highavailability-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-appstream-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-resilientstorage-htb-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-appstream-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-baseos-htb-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-baseos-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-highavailability-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-rt-htb-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-rt-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-resilientstorage-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-resilientstorage-htb-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-appstream-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-highavailability-htb-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-baseos-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-rt-htb-debug-rpms] enabled = 0 enable_metadata = 0 [root@kvm-01-guest22 ~]# VERIFIED: For every entitled repo that is enabled by default, its enable_metadata is also set to 1 [root@kvm-01-guest22 ~]# subscription-manager repos --enable rhel-8-for-x86_64-highavailability-htb-rpms Repository 'rhel-8-for-x86_64-highavailability-htb-rpms' is enabled for this system. [root@kvm-01-guest22 ~]# subscription-manager repos --enable rhel-8-for-x86_64-resilientstorage-htb-rpms Repository 'rhel-8-for-x86_64-resilientstorage-htb-rpms' is enabled for this system. [root@kvm-01-guest22 ~]# [root@kvm-01-guest22 ~]# egrep "^\[|enable" /etc/yum.repos.d/redhat.repo [rhel-8-for-x86_64-highavailability-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-appstream-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-resilientstorage-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-appstream-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-baseos-htb-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-baseos-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-highavailability-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-rt-htb-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-rt-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-resilientstorage-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-resilientstorage-htb-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-appstream-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-highavailability-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-baseos-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-rt-htb-debug-rpms] enabled = 0 enable_metadata = 0 [root@kvm-01-guest22 ~]# VERIFIED: After using subscription-manager repos to enable additional repos (rhel-8-for-x86_64-highavailability-htb-rpms and rhel-8-for-x86_64-resilientstorage-htb-rpms), its enable_metadata is also enabled. [root@kvm-01-guest22 ~]# subscription-manager repos --disable rhel-8-for-x86_64-appstream-htb-rpms Repository 'rhel-8-for-x86_64-appstream-htb-rpms' is disabled for this system. [root@kvm-01-guest22 ~]# [root@kvm-01-guest22 ~]# egrep "^\[|enable" /etc/yum.repos.d/redhat.repo [rhel-8-for-x86_64-highavailability-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-appstream-htb-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-resilientstorage-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-appstream-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-baseos-htb-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-baseos-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-highavailability-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-rt-htb-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-rt-htb-source-rpms] enabled = 0 enable_metadata = 0 [codeready-builder-htb-for-rhel-8-x86_64-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-resilientstorage-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-resilientstorage-htb-source-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-appstream-htb-debug-rpms] enabled = 0 enable_metadata = 0 [rhel-8-for-x86_64-highavailability-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-baseos-htb-rpms] enabled = 1 enable_metadata = 1 [rhel-8-for-x86_64-rt-htb-debug-rpms] enabled = 0 enable_metadata = 0 [root@kvm-01-guest22 ~]# VERIFIED: After using subscription-manager repos to disable a repo (rhel-8-for-x86_64-appstream-htb-rpms), its enable_metadata is also disabled. Moving bug to VERIFIED. The repo attribute for enable_metadata is following the enabled attribute as requested. Additional Testing... [root@kvm-01-guest22 yum.repos.d]# time pkcon refresh force Refreshing cache [=========================] Starting [=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Downloading repository information[=========================] Loading cache [=========================] Finished [=========================] real 0m40.288s user 0m0.024s sys 0m0.019s NEEDINFO on sudo As alluded to in comment 7 and comment 8, pkcon appears to be downloading cache for all 18 of the repos regardless of the enabled/enable_metadata setting. If this is wrong, then please open a bug against PackageKit and link it back to this bug for reference. I'll open a BZ to PackageKit and link it here. The logic is sound, but there's a typo in this report and also the subman fix -- the option is called "enabled_metadata" NOT "enable_metadata". |