Bug 1320562

Summary: tripleoclient has wrong hardcoded path to rhel registration environment
Product: Red Hat OpenStack Reporter: James Slagle <jslagle>
Component: openstack-tripleo-heat-templatesAssignee: James Slagle <jslagle>
Status: CLOSED CURRENTRELEASE QA Contact: Udi Kalifon <ukalifon>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: jcoufal, mburns, rhel-osp-director-maint
Target Milestone: gaKeywords: TestOnly
Target Release: 8.0 (Liberty)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-0.3.4-1.el7ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-28 13:52:11 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:

Description James Slagle 2016-03-23 13:53:25 UTC
python-tripleoclient has wrong hardcoded path to rhel registration environment

in constants.py it has:
RHEL_REGISTRATION_EXTRACONFIG_NAME = ( 
    "extraconfig/post_deploy/rhel-registration/")

when it should be:
RHEL_REGISTRATION_EXTRACONFIG_NAME = ( 
    "extraconfig/pre_deploy/rhel-registration/")

due to the wrong path, a deployment using registration will fail with:
<urlopen error [Errno 2] No such file or directory: '/home/stack/templates/extraconfig/post_deploy/rhel-registration/rhel-registration-resource-registry.yaml'>

Comment 7 Udi Kalifon 2016-04-26 06:11:18 UTC
Deployments with registration were successful in 8.0, by appending the following to the command line:

 --rhel-reg --reg-method satellite --reg-sat-url https://***.redhat.com/ --reg-activation-key ak-osp8 --reg-org Default_Organization