Bug 1234652

Summary: Instack has hard coded values for specific config files
Product: [Community] RDO Reporter: Graeme Gillies <ggillies>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1235481 (view as bug list) Environment:
Last Closed: 2016-05-19 15:57:57 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:
Bug Depends On:    
Bug Blocks: 1235481    

Description Graeme Gillies 2015-06-22 23:27:49 UTC
I'm attempting to use RDO-Manager with all my configuration files/state stored in a subdirectory which is a git repo.

Unfortunately, looking at the instack code it seems it just looks for a bunch of configuration files in the root of a users home directory

e.g. from instack_undercloud/undercloud.py

CONF_PATH = os.path.expanduser('~/undercloud.conf')
# NOTE(bnemec): Deprecated
ANSWERS_PATH = os.path.expanduser('~/instack.answers')
PASSWORD_PATH = os.path.expanduser('~/undercloud-passwords.conf')
LOG_FILE = os.path.expanduser('~/.instack/install-undercloud.log')

It would be good to come up with a framework/model for all configuration files/data for the undercloud (and possibly overcloud), and document that standard and get all the tools to use it.

E.g. evaluate values in order of command line options, local config files, files in /etc, then global defaults (or something similar).

Cheers,

Graeme

Comment 2 Chandan Kumar 2016-05-19 15:57:57 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.