Bug 789034

Summary: Candlepin needs to replace $env during cert generation
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: Subscription ManagementAssignee: Devan Goodwin <dgoodwin>
Status: CLOSED CURRENTRELEASE QA Contact: Og Maciel <omaciel>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: dgoodwin, inecas, mmccune
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: 2012-08-22 20:55:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 790417    
Bug Blocks: 747354    

Description Og Maciel 2012-02-09 16:14:51 UTC
Description of problem:

Candlepin should be replacing $env with the consumer's environment id during cert generation

Version-Release number of selected component (if applicable):

* katello-0.1.222-2.el6.noarch
* candlepin-0.5.16-1.el6.noarch
* pulp-0.0.265-1.el6.noarch

How reproducible:


Steps to Reproduce:
1. Register a RHEL 6.1 client
2.
3.
  
Actual results:

# yum repolist
Loaded plugins: product-id, subscription-manager
Updating Red Hat repositories.
https://qetello02.usersys.redhat.com/pulp/repos/NYDataCenter/%24env/custom/Katello/Testing/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"

Expected results:


Additional info:

Comment 1 Devan Goodwin 2012-02-09 18:12:38 UTC
Fixed in candlepin.git master: 60ebe2b7c08dad0729bac5e031c619f47bec9fb4

Appearing in candlepin-0.5.17-1.

$env (set by Katello as the org content prefix) will be expanded to the consumer's env ID if the consumer has an environment. The certificates sent to the client will have the hard coded value, and no longer need to replace $env in the resulting redhat.repo.

Comment 2 Og Maciel 2012-02-14 22:18:03 UTC
Still seeing this with candlepin-0.5.18-1.el6.noarch using both RHEL 6.1 and 6.2 clients.


* katello-cli-common-0.1.54-3.el6.noarch
* katello-common-0.1.235-2.el6.noarch
* katello-selinux-0.1.3-1.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-glue-foreman-0.1.235-2.el6.noarch
* katello-httpd-ssl-key-pair-1.0-1.noarch
* katello-repos-0.1.5-1.el6.noarch
* katello-glue-candlepin-0.1.235-2.el6.noarch
* katello-all-0.1.235-2.el6.noarch
* katello-cli-0.1.54-3.el6.noarch
* katello-certs-tools-1.0.2-2.el6.noarch
* katello-glue-pulp-0.1.235-2.el6.noarch
* katello-0.1.235-2.el6.noarch
* katello-configure-0.1.64-3.el6.noarch
* katello-trusted-ssl-cert-1.0-1.noarch
* candlepin-tomcat6-0.5.18-1.el6.noarch
* katello-glue-candlepin-0.1.235-2.el6.noarch
* candlepin-0.5.18-1.el6.noarch
* pulp-common-0.0.265-1.el6.noarch
* pulp-0.0.265-1.el6.noarch
* katello-glue-pulp-0.1.235-2.el6.noarch

Comment 3 Devan Goodwin 2012-02-15 14:36:37 UTC
Adding another bug dependency, fix will not be fully functioning until candlepin-0.5.19-1

Comment 4 Og Maciel 2012-02-23 18:23:55 UTC
Verified on:
* candlepin-0.5.22-1.el6.noarch
* candlepin-tomcat6-0.5.22-1.el6.noarch
* katello-0.1.300-1.el6.noarch
* katello-all-0.1.300-1.el6.noarch
* katello-certs-tools-1.0.2-2.el6.noarch
* katello-cli-0.1.100-2.el6.noarch
* katello-cli-common-0.1.100-2.el6.noarch
* katello-common-0.1.300-1.el6.noarch
* katello-configure-0.1.100-7.el6.noarch
* katello-glue-candlepin-0.1.300-1.el6.noarch
* katello-glue-foreman-0.1.300-1.el6.noarch
* katello-glue-pulp-0.1.300-1.el6.noarch
* katello-httpd-ssl-key-pair-1.0-1.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-repos-0.1.5-1.el6.noarch
* katello-selinux-0.1.7-1.el6.noarch
* katello-trusted-ssl-cert-1.0-1.noarch
* pulp-0.0.267-2.el6.noarch
* pulp-admin-0.0.267-2.el6.noarch
* pulp-client-lib-0.0.267-2.el6.noarch
* pulp-common-0.0.267-2.el6.noarch
* pulp-selinux-server-0.0.267-2.el6.noarch

Comment 5 Mike McCune 2013-08-16 18:14:10 UTC
getting rid of 6.0.0 version since that doesn't exist