Bug 1528699

Summary: "subscription-manager attach --auto" hangs due to 'rhel-7-server-rt-beta-rpms' enabled.
Product: Red Hat Enterprise Linux 7 Reporter: Lev Ufimtsev <lufimtse>
Component: subscription-managerAssignee: Kevin Howell <khowell>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: high Docs Contact:
Priority: medium    
Version: 7.4CC: khowell
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-30 14:44:48 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:

Description Lev Ufimtsev 2017-12-22 20:05:38 UTC
Description of problem:
- RHEL hangs on 'subscription-manager attach --auto'
- If I dissable 'beta' repo, then it works:
subscription-manager repos --disable rhel-7-server-rt-beta-rpms

Why is the 'beta' repository enabled on a fresh RHEL 7.4 iso?



Version-Release number of selected component (if applicable):
RHEL 7.4
   RHEL-7.4-20170711.0-Server-x86_64-dvd1.iso
   431a58c8c0351803a608ffa56948c5a7861876f78ccbe784724dd8c987ff7000
   (I downloaded this from:
   http://download-node-02.eng.bos.redhat.com/released/RHEL-7/7.4/Server/x86_64/iso/
   But the website seems to have the ISO with the same hash).

How reproducible:
Always, 

Steps to Reproduce:
1. I'm a Red Hat Software engineer, been setting up a RHEL 7.4 VM for testing.
2. I have all employee subscriptions on my account
3. Download RHEL 7.4, 
4. Install with minimal configuration. Boot vm. Configure network.
5. Register:
   subscription-manager register
   ..
6. Attempt to attach:
   subscription-manager attach --auto

Actual results:
- Hangs indefinitely. 

Expected results:
- Should not hang.


Additional info:
- After a fair bit of diagnosing, I found that in:
tail -f /var/log/rhsm/rhsm.log
the word 'beta' was thrown around. I then found that the 'rhel-7-server-rt-beta-rpms' repository was enabled.

After disabling it:
subscription-manager repos --disable rhel-7-server-rt-beta-rpms 
Things work again.

But why is this repository enabled on a clean installation of RHEL?
If I install with GUI, then the system hangs on the first screen when I try to register RHEL.

I'm not sure if this is because I have an employee subscription or just me, but my collegue reported the same issue with his account also.

Comment 2 Kevin Howell 2018-01-08 15:34:33 UTC
Let's investigate why the hang is occurring and whether the repo involved is present on general RHEL7 skus.

Comment 7 Kevin Howell 2018-01-30 14:44:48 UTC
Should be working properly now. Please reopen if necessary.