Bug 1107724

Summary: "redhat_register" snippet with subscription-management registration via activation key or username/password fails
Product: Red Hat Satellite Reporter: Jan Hutař <jhutar>
Component: ProvisioningAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: NightlyCC: bbuckingham, bkearney
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-01 12:46:55 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 Jan Hutař 2014-06-10 13:22:41 UTC
Description of problem:
"redhat_register" snippet with subscription-management registration via activation key fails.


Version-Release number of selected component (if applicable):
Satellite-6.0.3-RHEL-6-20140605.0


How reproducible:


Steps to Reproduce:
1. Setup Satellite 6 to the state you can provision guests on local
   libvirt compute resource
2. Provision some guest using network install - you need to setup these
   parameters to go to that branch:
     activation_key = <activation_key_name>
     subscription_manager = true
     subscription_manager_host = <fqdn>
     subscription_manager_org = ACME_Organization


Actual results:
At the end on installed guest in /root/install.post.log there is:

[...]
Starting the subscription-manager registration process
Loaded plugins: product-id, security, subscription-manager
Setting up Install Process
Nothing to do
error: open of <fqdn>/pub/candlepin-cert-consumer-latest.noarch.rpm failed: No such file or directory
[...]

and system is not subscribed.


Expected results:
System should be subscribed.


Additional info:
There seems to be 2 issues:

  1) missing "http://" in the template
  2) "candlepin-cert-consumer-latest.noarch.rpm" should be replaced
     with "katello-ca-consumer-latest.noarch.rpm"

Comment 1 RHEL Program Management 2014-06-10 13:37:14 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 3 Jan Hutař 2014-06-10 13:49:27 UTC
Also when I attempt to register using username/password it fails with:

[...]
Starting the subscription-manager registration process
Loaded plugins: product-id, security, subscription-manager
Setting up Install Process
Nothing to do
Invalid username or password. To create a login, please visit https://www.redhat.com/wapps/ugc/register.html
[...]

which is expected as `rpm -Uvh .../katello-ca-consumer-latest.noarch.rpm` step is missing at all.

Comment 5 Stephen Benjamin 2014-08-01 12:46:55 UTC
"redhat_register" should not be used with Satellite.

The correct kickstart template is "Satellite Kickstart Default for RHEL," which uses the "subscription_manager" template. 

However, this is a duplicate of 1096297 anyway, where "redhat_register" was changed to work with Katello upstream.

*** This bug has been marked as a duplicate of bug 1096297 ***