Bug 1201222

Summary: Automated configuration of rhsm stuff of a content host fails in some use case
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: Docs User GuideAssignee: Peter Ondrejka <pondrejk>
Status: CLOSED CURRENTRELEASE QA Contact: Tahlia Richardson <trichard>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0   
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Build Name: 22921, User Guide-6.0 Build Date: 08-10-2014 13:34:52 Topic ID: 11867-708768 [Latest]
Last Closed: 2015-07-27 08:40:58 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 Pavel Moravec 2015-03-12 11:13:30 UTC
Title: Automated Configuration

Describe the issue:
The commands in 10.3.1 dont work on a freshly installed RHEL7.1 machine not subscribed to RHSM. yum command fails with "this system is not registered" and wget is not installed in RHEL7 minimal installation:

[root@pmoravec-rhel7 ~]# yum -y --nogpgcheck install http://pmoravec-rhel7-sat6.gsslab.brq.redhat.com/pub/katello-ca-consumer-pmoravec-rhel7-sat6.gsslab.brq.redhat.com-1.0-1.noarch.rpm
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
[root@pmoravec-rhel7 ~]# wget http://pmoravec-rhel7-sat6.gsslab.brq.redhat.com/pub/katello-ca-consumer-pmoravec-rhel7-sat6.gsslab.brq.redhat.com-1.0-1.noarch.rpm
-bash: wget: command not found
[root@pmoravec-rhel7 ~]# 


Suggestions for improvement:
Why dont be aligned with capsule installation that covers this step via rpm command instead of yum? I.e.:

rpm -Uvh http://[hostname]/pub/katello-ca-consumer-[hostname]-1.0-1.noarch.rpm


Additional information:
There might be some reason for using yum (though I am not aware of any). If so, my suggested improvement should not be used.

Comment 1 RHEL Program Management 2015-04-21 16:05:36 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 2 Athene Chan 2015-05-05 05:19:42 UTC
Hi Pavel,

Thanks for the feedback. I'll lodge this as a possible 6.1 bug if we can fit it in. Might be moved to async or 6.2 depending on resource issues.

Cheers,
Athene