Bug 768014

Summary: katello-configure with answer-file org_name fails
Product: [Retired] Subscription Asset Manager Reporter: Eric Sammons <esammons>
Component: katello-configureAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: SAM QE List <sam-qe-list>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 1.0.0CC: bkearney, cpelland, gkhachik
Target Milestone: betaKeywords: Triaged
Target Release: 1.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
headpin
Last Closed: 2012-04-27 00:22:00 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:    
Bug Blocks: 703617, 747354    

Description Eric Sammons 2011-12-15 14:27:30 UTC
Description of problem:
When configuring (deployment=headpin) with a custom answer file, specified org_name is _not_ configured.

Version-Release number of selected component (if applicable):
katello-headpin-all-0.1.116-2.el6.noarch

Steps to Reproduce:
1. cp default-answer-file /tmp/answer-file and edit.
   Specify custom user_name, user_pass, and org_name.
2. katello-configure --deployment=headpin --answer-file=/tmp/answer-file
3. Navigate to http://[servername]/headpin
  
Actual results:
ACME_Corporation is installed / configured v. the specified org_name.

Expected results:
Specified org_name should be the only org installed / configured.

Comment 1 Eric Sammons 2011-12-15 15:28:47 UTC
Further investigation, turns out that org_name went into the Description field of ACME_Corporation.

Comment 7 Garik Khachikyan 2012-02-01 13:39:05 UTC
A scenario: katello-configure --deployment=headpin --org-name Garik-n-co

works fine with preparing default org: Garik-n-co

will try the other one (taking value from answer file).

Comment 8 Garik Khachikyan 2012-02-02 11:39:30 UTC
# REOPEN

so the option with providing --org-name in the cli installer - WORKS
the one in answer_file - NOT

---
katello-configure --deployment=headpin --answer-file=/tmp/answer-file
<snip>
# Katello initial Organization (default: ACME_Corporation)
org_name = GarikOrg
</snip>

checked against packages:
---
katello-headpin-all-0.1.129-1.el6.noarch
katello-configure-0.1.58-1.el6.noarch

Comment 9 Lukas Zapletal 2012-02-07 11:48:29 UTC
Is anybody working on this one? It's on my name. If not, I will start working on it tomorrow.

Comment 10 Lukas Zapletal 2012-02-08 13:38:00 UTC
It would be much easier to implement this in ImageFactory, but I am not sure if this is technically possible. Categories are maybe not visible to yum.

https://bugzilla.redhat.com/show_bug.cgi?id=788560

Comment 11 Bryan Kearney 2012-02-08 13:45:15 UTC
I think this was the wrong bz :)

Comment 12 Lukas Zapletal 2012-02-08 14:21:40 UTC
Damn, sorry, discard C-10.

Comment 13 Lukas Zapletal 2012-02-09 14:30:01 UTC
Race condition when executing puppet in headpin deployment.

commit 5e4fe62863eb6b5d2bc7b9727668106aae50f39f