Bug 706159

Summary: No repository available after subscription on s390x/ppc64
Product: [Community] Candlepin Reporter: Jan Stodola <jstodola>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: John Sefler <jsefler>
Severity: high Docs Contact:
Priority: high    
Version: 0.5CC: andriusb, dgregor, mkhusid, rwilliam
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-25 13:51:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jan Stodola 2011-05-19 16:31:06 UTC
Description of problem:
After registering and subscribing using subscription-manager, no repositories are available to use with yum:

[root@rtt3 ~]# subscription-manager register
Username: XXX
Password: 
6962add4-3f02-4c72-ad41-a3318e88bf66 rtt3.s390.bos.redhat.com
[root@rtt3 ~]# subscription-manager subscribe --auto
Installed Products:
   Red Hat Enterprise Linux Workstation - Not Installed
   Red Hat Enterprise Linux for IBM POWER - Not Installed
   Red Hat Enterprise Linux for Scientific Computing - Not Installed
   Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux Desktop - Not Installed
   Red Hat Enterprise Linux for IBM System z - Not Installed
   Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux Server - Not Installed
   Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux High Availability (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux 6 for IBM System z - Not Subscribed
[root@rtt3 ~]# yum install ksh
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
No package ksh available.
Error: Nothing to do
[root@rtt3 ~]# cat /etc/yum.repos.d/redhat.repo 
#
# Red Hat Repositories
# Managed by (rhsm) subscription-manager
[root@rtt3 ~]#

Version-Release number of selected component (if applicable):
RHEL6.1 GA
subscription-manager-0.95.11-1.el6

How reproducible:
alwyas

Steps to Reproduce:
1. install RHEL6.1 GA on s390x or ppc64
2. subscription-manager register
3. subscription-manager subscribe --auto
4. yum install ksh
  
Actual results:
no repository available, cannot install packages

Expected results:
packages can be installed/updated

Additional info:

Comment 2 Mike Khusid 2011-05-19 16:38:50 UTC
The machine failed to subscribe using "subscription-manager subscribe --auto" command so no repository is an expected behavior without a valid subscription.

The bug is in obtaining a subscription using --auto.

Comment 3 Dennis Gregorovic 2011-05-19 17:02:31 UTC
Mostly fixed:

# subscription-manager unsubscribe --all
# subscription-manager subscribe --auto
Installed Products:
   Red Hat Enterprise Linux for IBM System z - Not Installed
   Red Hat Enterprise Linux for IBM POWER - Not Installed
   Red Hat Enterprise Linux for Scientific Computing - Not Installed
   Red Hat Enterprise Linux Load Balancer (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux Scalable File System (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux Desktop - Not Installed
   Red Hat Enterprise Linux Workstation - Not Installed
   Red Hat Enterprise Linux Server - Not Installed
   Red Hat Enterprise Linux Resilient Storage (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux High Availability (for RHEL Server) - Not Installed
   Red Hat Enterprise Linux 6 for IBM System z - Not Subscribed
# ls -l /etc/pki/entitlement/
total 132
-rw-r--r--. 1 root root 129648 May 19 12:59 5924345015758553315.pem
-rw-r--r--. 1 root root   1675 May 19 12:59 key.pem
# openssl x509 -text -in /etc/pki/entitlement/5924345015758553315.pem | grep -A1 10: | grep rhel | sort | uniq -c
rhel-6-client           .
     26                 ..rhel-6-computenode
     25                 ..rhel-6-ibm-power
     25                 ..rhel-6-ibm-system-z
      6                 ..rhel-6-mainframe
      6                 ..rhel-6-premium-architectures
rhel-6-server           .
     26                 ..rhel-6-workstation
# yum repolist
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
rhel-6-for-system-z-rpms                                                                                                                                                      | 4.0 kB     00:00     
rhel-6-for-system-z-rpms/primary_db                                                                                                                                           | 2.5 MB     00:00     
repo id                                                                             repo name                                                                                                  status
rhel-6-for-system-z-rpms                                                            Red Hat Enterprise Linux 6 for System Z (RPMs)                                                             2,974
repolist: 2,974

Comment 4 Dennis Gregorovic 2011-05-19 17:17:33 UTC
I've fixed the remaining "rhel-6-mainframe" and "rhel-6-premium-architectures" content sets.  Will show up within 30 minutes.