Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1107724 - "redhat_register" snippet with subscription-management registration via activation key or username/password fails
Summary: "redhat_register" snippet with subscription-management registration via activ...
Keywords:
Status: CLOSED DUPLICATE of bug 1096297
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Provisioning
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-10 13:22 UTC by Jan Hutař
Modified: 2014-08-01 12:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-01 12:46:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.