Bug 1708438
| Summary: | dnf.exceptions.RepoError: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | John Sefler <jsefler> | |
| Component: | subscription-manager | Assignee: | Jiri Hnidek <jhnidek> | |
| Status: | CLOSED ERRATA | QA Contact: | Red Hat subscription-manager QE Team <rhsm-qe> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 8.1 | CC: | csnyder, jhnidek, mmcgrath, nmoumoul, redakkan, wchadwic | |
| Target Milestone: | rc | Keywords: | Regression, Triaged | |
| Target Release: | 8.1 | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1739705 (view as bug list) | Environment: | ||
| Last Closed: | 2019-11-05 22:15:36 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: | 1708794, 1739705 | |||
Reproducing the failure : ======================= subscription management server: 2.3.17-1 subscription management rules: 5.35 subscription-manager: 1.25.6-1.el8 Note: To reproduce this issue , you need to make sure that the baseurl is pointing a cdn server which does NOT have content for one of the repos provided by these subscriptions. In this case I m pointing to production cdn as we do not have a content for 8.1 release version ( Due to this bug 1710761 , on the compose RHEL-8.1.0-20190612.n.0 the releasever was pointing to 8.1 instead of 8 hence using the same compose for reproducing the issue) [root@kvm-06-guest16 ~]# subscription-manager config --list | grep baseurl baseurl = [https://cdn.redhat.com] [root@kvm-06-guest16 ~]# python3 -c "import dnf; yb = dnf.Base(); print(yb.conf.releasever)" 8.1 As per the bug description making sure that the system has both GA and beta RHEL8 product certificates installed # subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux for x86_64 Product ID: 479 Version: 8.1 Arch: x86_64 Status: Unknown Status Details: Starts: Ends: Product Name: Red Hat Enterprise Linux for x86_64 Beta Product ID: 486 Version: 8.1 Beta Arch: x86_64 Status: Unknown Status Details: Starts: Ends: # subscription-manager register --auto-attach --username=stage_***** --password=***** Registering to: subscription.rhsm.stage.redhat.com:443/subscription The system has been registered with ID: bc66cdfb-87b8-4547-bffb-d58e4857fe62 The registered system name is: kvm-06-guest16.hv2.lab.eng.bos.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed Product Name: Red Hat Enterprise Linux for x86_64 Beta Status: Subscribed [root@kvm-06-guest16 ~]# subscription-manager list --available Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 552, in load ret = self._repo.load() File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 394, in load return _repo.Repo_load(self) RuntimeError: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/sbin/subscription-manager", line 11, in <module> load_entry_point('subscription-manager==1.25.6', 'console_scripts', 'subscription-manager')() File "/usr/lib64/python3.6/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main return managercli.ManagerCLI().main() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 2929, in main ret = CLI.main(self) File "/usr/lib64/python3.6/site-packages/subscription_manager/cli.py", line 183, in main return cmd.main() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 510, in main return_code = self._do_command() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 2584, in _do_command after_date=after_date, File "/usr/lib64/python3.6/site-packages/rhsmlib/services/entitlement.py", line 264, in get_available_pools after_date=after_date, File "/usr/lib64/python3.6/site-packages/subscription_manager/managerlib.py", line 324, in get_available_entitlements overlapping, uninstalled, text, filter_string, future=future, after_date=after_date) File "/usr/lib64/python3.6/site-packages/subscription_manager/managerlib.py", line 530, in get_filtered_pools_list filter_string=filter_string, future=future, after_date=after_date): File "/usr/lib64/python3.6/site-packages/subscription_manager/managerlib.py", line 282, in list_pools profile_mgr.update_check(uep, consumer_uuid) File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 456, in update_check return CacheManager.update_check(self, uep, consumer_uuid, force) File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 170, in update_check if self.has_changed() or force: File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 469, in has_changed return not cached_profile == self.current_profile File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 429, in current_profile module_profile = get_profile('modulemd').collect() File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 350, in get_profile profile = PROFILE_MAP[profile_type]() File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 55, in __init__ self.content = self.__generate() File "/usr/lib64/python3.6/site-packages/rhsm/utils.py", line 288, in wrapper return func(*args, **kwargs) File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 78, in __generate base.fill_sack() File "/usr/lib/python3.6/site-packages/dnf/base.py", line 406, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 136, in _add_repo_to_sack repo.load() File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 558, in load raise dnf.exceptions.RepoError(str(e)) dnf.exceptions.RepoError: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' [root@kvm-06-guest16 ~]# subscription-manager repos --list-enabled +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-8-for-x86_64-appstream-beta-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream Beta (RPMs) Repo URL: https://cdn.redhat.com/content/beta/rhel8/8/x86_64/appstream/os Enabled: 1 Repo ID: rhel-8-for-x86_64-baseos-beta-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (RPMs) Repo URL: https://cdn.redhat.com/content/beta/rhel8/8/x86_64/baseos/os Enabled: 1 Repo ID: rhel-8-for-x86_64-appstream-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os Enabled: 1 Repo ID: rhel-8-for-x86_64-baseos-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os Enabled: 1 tail -f /var/log/rhsm/rhsm.log 2019-06-20 08:45:04,117 [WARNING] subscription-manager:21966:MainThread @base_action_client.py:71 - Exception caught while running <subscription_manager.packageprofilelib.PackageProfileActionInvoker object at 0x7f81c7dd0358> update 2019-06-20 08:45:04,117 [ERROR] subscription-manager:21966:MainThread @base_action_client.py:72 - Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 552, in load ret = self._repo.load() File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 394, in load return _repo.Repo_load(self) RuntimeError: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.6/site-packages/subscription_manager/base_action_client.py", line 62, in _run_update update_report = lib.update() File "/usr/lib64/python3.6/site-packages/subscription_manager/certlib.py", line 32, in update self.report = self.locker.run(self._do_update) File "/usr/lib64/python3.6/site-packages/subscription_manager/certlib.py", line 18, in run return action() File "/usr/lib64/python3.6/site-packages/subscription_manager/packageprofilelib.py", line 26, in _do_update return action.perform() File "/usr/lib64/python3.6/site-packages/subscription_manager/packageprofilelib.py", line 42, in perform ret = profile_mgr.update_check(self.uep, consumer_identity.uuid, force=force_upload) File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 456, in update_check return CacheManager.update_check(self, uep, consumer_uuid, force) File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 170, in update_check if self.has_changed() or force: File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 469, in has_changed return not cached_profile == self.current_profile File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 429, in current_profile module_profile = get_profile('modulemd').collect() File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 350, in get_profile profile = PROFILE_MAP[profile_type]() File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 55, in __init__ self.content = self.__generate() File "/usr/lib64/python3.6/site-packages/rhsm/utils.py", line 288, in wrapper return func(*args, **kwargs) File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 78, in __generate base.fill_sack() File "/usr/lib/python3.6/site-packages/dnf/base.py", line 406, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 136, in _add_repo_to_sack repo.load() File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 558, in load raise dnf.exceptions.RepoError(str(e)) dnf.exceptions.RepoError: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' 2019-06-20 08:45:04,569 [WARNING] subscription-manager:21966:MainThread @connection.py:622 - Clock skew detected, please check your system time Verifying the fix on : ===================== subscription management server: 2.3.17-1 subscription management rules: 5.35 subscription-manager: 1.25.11-1.el8 [root@kvm-01-guest11 ~]# rpm -q subscription-manager --changelog | grep 1708438 - 1708438: Don't print traceback during list --available; ENT-1331 also the fix for the bug 1710761 is not yet in the latest compose , so continuing the reproducer steps as it is [root@kvm-01-guest11 product]# rpm -qa dnf dnf-4.2.6-1.el8.noarch [root@kvm-01-guest11 product]# python3 -c "import dnf; yb = dnf.Base(); print(yb.conf.releasever)" 8.1 [root@kvm-01-guest11 product]# subscription-manager register --auto-attach Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: stage_test******** Password: The system has been registered with ID: ef54ab9c-a574-499e-bc98-5298fb096bf5 The registered system name is: kvm-01-guest11.rhts.eng.tlv.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed Product Name: Red Hat Enterprise Linux for x86_64 Beta Status: Subscribed [root@kvm-01-guest11 product]# subscription-manager list --available +-------------------------------------------+ Available Subscriptions +-------------------------------------------+ Subscription Name: Red Hat Enterprise Linux Workstation, Premium Provides: dotNET on RHEL (for RHEL Workstation) dotNET on RHEL Beta (for RHEL Server) Oracle Java (for RHEL Workstation) Red Hat CodeReady Linux Builder for x86_64 Oracle Java (for RHEL Client) Red Hat Ansible Engine Red Hat Container Images Beta Red Hat Container Images Red Hat Beta Red Hat Software Collections Beta (for RHEL Workstation) Red Hat Enterprise Linux for x86_64 dotNET on RHEL Beta (for RHEL Workstation) dotNET on RHEL (for RHEL Server) Red Hat Enterprise Linux Workstation SKU: RH0923296 Contract: 11872413 Pool ID: 8a99f9a26a746160016a9bb6340402c7 Provides Management: No Available: 20 Suggested: 1 Service Type: L1-L3 Roles: Red Hat Enterprise Linux Workstation Service Level: Premium Usage: Production Add-ons: Subscription Type: Standard Starts: Thursday 09 May 2019 Ends: Saturday 09 May 2020 Entitlement Type: Physical Subscription Name: Red Hat Enterprise Linux Workstation, Premium Provides: dotNET on RHEL (for RHEL Workstation) dotNET on RHEL Beta (for RHEL Server) Oracle Java (for RHEL Workstation) Red Hat CodeReady Linux Builder for x86_64 Oracle Java (for RHEL Client) Red Hat Ansible Engine Red Hat Container Images Beta Red Hat Container Images Red Hat Beta Red Hat Software Collections Beta (for RHEL Workstation) Red Hat Enterprise Linux for x86_64 dotNET on RHEL Beta (for RHEL Workstation) dotNET on RHEL (for RHEL Server) Red Hat Enterprise Linux Workstation SKU: RH0923296 Contract: 11872413 Pool ID: 8a99f9a26a746160016a9bb6348302cc Provides Management: No Available: 20 Suggested: 1 Service Type: L1-L3 Roles: Red Hat Enterprise Linux Workstation Service Level: Premium Usage: Production Add-ons: Subscription Type: Standard Starts: Thursday 09 May 2019 Ends: Saturday 09 May 2020 Entitlement Type: Virtual Subscription Name: Red Hat Enterprise Linux for Mainframe, Standard Provides: Red Hat Beta Red Hat Hardware Certification Test Suite Red Hat Developer Tools Beta (for RHEL Server for System Z) Red Hat Developer Tools (for RHEL Server for System Z) Red Hat Enterprise Linux for IBM z Systems Red Hat CodeReady Linux Builder for IBM z Systems SKU: MCT0343 Contract: 11872421 Pool ID: 8a99f9a26a746160016a9bb637b902d1 Provides Management: No Available: 20 Suggested: 1 Service Type: L1-L3 Roles: Service Level: Standard Usage: Add-ons: Subscription Type: Standard Starts: Thursday 09 May 2019 Ends: Saturday 09 May 2020 Entitlement Type: Physical Subscription Name: Red Hat Enterprise Linux for Mainframe, Standard Provides: Red Hat Beta Red Hat Hardware Certification Test Suite Red Hat Developer Tools Beta (for RHEL Server for System Z) Red Hat Developer Tools (for RHEL Server for System Z) Red Hat Enterprise Linux for IBM z Systems Red Hat CodeReady Linux Builder for IBM z Systems SKU: MCT0343 Contract: 11872421 Pool ID: 8a99f9a26a746160016a9bb6382302d5 Provides Management: No Available: 20000 Suggested: 1 Service Type: L1-L3 Roles: Service Level: Standard Usage: Add-ons: Subscription Type: Standard Starts: Thursday 09 May 2019 Ends: Saturday 09 May 2020 Entitlement Type: Virtual ^^ notice that the list --available was successful even though the content was not available , also rhsm.log now displays appropriate error message 2019-06-20 12:40:00,811 [ERROR] subscription-manager:16937:MainThread @profile.py:81 - Unable to create sack object: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-beta-rpms' Additional info : [root@kvm-01-guest11 product]# subscription-manager repos --list-enabled +----------------------------------------------------------+ Available Repositories in /etc/yum.repos.d/redhat.repo +----------------------------------------------------------+ Repo ID: rhel-8-for-x86_64-baseos-beta-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS Beta (RPMs) Repo URL: https://cdn.redhat.com/content/beta/rhel8/8/x86_64/baseos/os Enabled: 1 Repo ID: rhel-8-for-x86_64-appstream-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/appstream/os Enabled: 1 Repo ID: rhel-8-for-x86_64-baseos-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) Repo URL: https://cdn.redhat.com/content/dist/rhel8/$releasever/x86_64/baseos/os Enabled: 1 Repo ID: rhel-8-for-x86_64-appstream-beta-rpms Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream Beta (RPMs) Repo URL: https://cdn.redhat.com/content/beta/rhel8/8/x86_64/appstream/os Enabled: 1 Based on the observations on comment 10 , moving the bug to Verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:3561 |
Description of problem: With the newest compose for RHEL8.1 (which includes subscription-manager-1.25.5-1.el8), I am encountering nested tracebacks when running subscription-manager list --available Version-Release number of selected component (if applicable): [root@dell-r730-002-guest18 ~]# subscription-manager version server type: Red Hat Subscription Management subscription management server: 2.3.17-1 subscription management rules: 5.35 subscription-manager: 1.25.5-1.el8 How reproducible: Steps to Reproduce: [root@dell-r730-002-guest18 ~]# subscription-manager register --serverurl=subscription.rhsm.stage.redhat.com --auto-attach Registering to: subscription.rhsm.stage.redhat.com:443/subscription Username: stage_auto_testuser Password: The system has been registered with ID: 39efbadc-aa50-4f4b-b3a4-b4c7749b0ab7 The registered system name is: dell-r730-002-guest18.dsal.lab.eng.rdu2.redhat.com Installed Product Current Status: Product Name: Red Hat Enterprise Linux for x86_64 Status: Subscribed Product Name: Red Hat Enterprise Linux for x86_64 Beta Status: Subscribed [root@dell-r730-002-guest18 ~]# subscription-manager list --available Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 566, in load ret = self._repo.load() File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 503, in load return _repo.Repo_load(self) RuntimeError: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/sbin/subscription-manager", line 11, in <module> load_entry_point('subscription-manager==1.25.5', 'console_scripts', 'subscription-manager')() File "/usr/lib64/python3.6/site-packages/subscription_manager/scripts/subscription_manager.py", line 85, in main return managercli.ManagerCLI().main() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 2929, in main ret = CLI.main(self) File "/usr/lib64/python3.6/site-packages/subscription_manager/cli.py", line 183, in main return cmd.main() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 510, in main return_code = self._do_command() File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 2584, in _do_command after_date=after_date, File "/usr/lib64/python3.6/site-packages/rhsmlib/services/entitlement.py", line 264, in get_available_pools after_date=after_date, File "/usr/lib64/python3.6/site-packages/subscription_manager/managerlib.py", line 324, in get_available_entitlements overlapping, uninstalled, text, filter_string, future=future, after_date=after_date) File "/usr/lib64/python3.6/site-packages/subscription_manager/managerlib.py", line 530, in get_filtered_pools_list filter_string=filter_string, future=future, after_date=after_date): File "/usr/lib64/python3.6/site-packages/subscription_manager/managerlib.py", line 282, in list_pools profile_mgr.update_check(uep, consumer_uuid) File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 457, in update_check return CacheManager.update_check(self, uep, consumer_uuid, force) File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 170, in update_check if self.has_changed() or force: File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 470, in has_changed return not cached_profile == self.current_profile File "/usr/lib64/python3.6/site-packages/subscription_manager/cache.py", line 430, in current_profile module_profile = get_profile('modulemd').collect() File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 347, in get_profile profile = PROFILE_MAP[profile_type]() File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 54, in __init__ self.content = self.__generate() File "/usr/lib64/python3.6/site-packages/rhsm/profile.py", line 76, in __generate base.fill_sack() File "/usr/lib/python3.6/site-packages/dnf/base.py", line 400, in fill_sack self._add_repo_to_sack(r) File "/usr/lib/python3.6/site-packages/dnf/base.py", line 135, in _add_repo_to_sack repo.load() File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 568, in load raise dnf.exceptions.RepoError(str(e)) dnf.exceptions.RepoError: Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms' [root@dell-r730-002-guest18 ~]# Actual results: above Expected results: no tracebacks and no report of synchronize cache failures Additional info: Note: the install of two RHEL product certs was already reported in Bug 1708084 Note: this bug is an exacerbation of Bug 1663804