Bug 1673062

Summary: "Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-beta-rpms', ignoring this repo " on system registered and auto-attached using the environment values set for the proxysin
Product: Red Hat Enterprise Linux 8 Reporter: Shwetha Kallesh <skallesh>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED MIGRATED QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: low    
Version: 8.0CC: alsouza, cshao, csnyder, gscarbor, hcheruku, jsefler, redakkan, yanpliu
Target Milestone: rcKeywords: MigratedToJIRA, Triaged
Target Release: ---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: Environment:
Last Closed: 2023-09-22 12:52:14 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: 1677765    
Bug Blocks:    

Description Shwetha Kallesh 2019-02-06 15:25:11 UTC
Description of problem:
"Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-beta-rpms', ignoring this repo " on system registered and auto-attached using the environment values set for the proxysin 

Version-Release number of selected component (if applicable):
[root@ibm-x3650m4-01-vm-05 ~]# subscription-manager  version
server type: Red Hat Subscription Management
subscription management server: 2.3.12-1
subscription management rules: 5.30.1
subscription-manager: 1.23.8-18.el8


How reproducible:


Steps to Reproduce:
[root@ibm-x3650m4-01-vm-05 ~]# export https_proxy=https://redhat:redhat@auto-services.usersys.redhat.com:3127
[root@ibm-x3650m4-01-vm-05 ~]# echo $https_proxy
https://redhat:redhat@auto-services.usersys.redhat.com:3127
[root@ibm-x3650m4-01-vm-05 ~]# subscription-manager  register --force --auto-attach
Registering to: subscription.rhsm.stage.redhat.com:443/subscription
Username: shwetha_tier1_test
Password: 
The system has been registered with ID: 2808a738-7437-4cb3-b19e-0a941456d30f
The registered system name is: ibm-x3650m4-01-vm-05.lab.eng.bos.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed

[root@ibm-x3650m4-01-vm-05 ~]# dnf repolist
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs)                                                                                                                                                  0.0  B/s |   0  B     00:00    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs)                                                                                                                                                     0.0  B/s |   0  B     00:00    
Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-htb-rpms', ignoring this repo.
Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-htb-rpms', ignoring this repo.

[root@ibm-x3650m4-01-vm-05 ~]# tail -f /var/log/rhsm/rhsm.log | grep proxy
2019-02-06 10:17:09,773 [INFO] dnf:31564:MainThread @connection.py:924 - Connection built: http_proxy=auto-services.usersys.redhat.com:3127 host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
2019-02-06 10:17:09,852 [INFO] dnf:31564:MainThread @connection.py:924 - Connection built: http_proxy=auto-services.usersys.redhat.com:3127 host=subscription.rhsm.stage.redhat.com port=443 handler=/subscription auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False


Actual results:
Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-htb-rpms', ignoring this repo.
Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-htb-rpms', ignoring this repo.

Expected results:
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs)                                                                                                                                                  6.8 kB/s | 4.1 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs)                                                                                                                                                     2.9 kB/s | 4.1 kB     00:01    

repo id                                                                                                 repo name                                                                                                                       status
rhel-8-for-x86_64-appstream-htb-rpms                                                                    Red Hat Enterprise Linux 8 for x86_64 - AppStream HTB (RPMs)                                                                     7,789
rhel-8-for-x86_64-baseos-htb-rpms                                                                       Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs)                                                                        3,717

Additional info:

Comment 9 hcheruku 2019-06-14 18:51:14 UTC
I am currently having the same issues.

[root@rhel8-jbeap-ivt-fresh-instance-42 ~]# subscription-manager  repos --list-enabled
Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms', ignoring this repo.
Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-rpms', ignoring this repo.
Failed to synchronize cache for repo 'rhel-8-for-x86_64-supplementary-rpms', ignoring this repo.

Could you help me with the fix ?

Comment 11 Chris Snyder 2019-09-12 15:19:44 UTC
I think this should no longer be blocked by 1677765. Can we retest this scenario?

Comment 12 Shwetha Kallesh 2020-02-20 15:01:12 UTC
Chris, 

      I am still blocked by the bug 1677765

[root@kvm-02-guest11 ~]# export https_proxy=http://redhat:redhat@auto-services.usersys.redhat.com:3131
[root@kvm-02-guest11 ~]# echo $https_proxy
http://redhat:redhat@auto-services.usersys.redhat.com:3131
[root@kvm-02-guest11 ~]# subscription-manager  register  --auto-attach --force
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: stage_auto_testuser
Password: 
Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.
[root@kvm-02-guest11 ~]# export https_proxy=https://redhat:redhat@auto-services.usersys.redhat.com:3131
[root@kvm-02-guest11 ~]# echo $https_proxy
https://redhat:redhat@auto-services.usersys.redhat.com:3131
[root@kvm-02-guest11 ~]# subscription-manager  register  --auto-attach --force
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: stage_auto_testuser
Password: 
Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.

Comment 15 RHEL Program Management 2023-09-22 12:50:43 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 16 RHEL Program Management 2023-09-22 12:52:14 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.