Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1235481

Summary: [RFE] Allow providing paths to instack-undercloud configuration files via CLI
Product: Red Hat OpenStack Reporter: Mike Burns <mburns>
Component: instack-undercloudAssignee: Ben Nemec <bnemec>
Status: CLOSED DUPLICATE QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: high    
Version: DirectorCC: aschultz, dtantsur, ggillies, hbrock, jcoufal, jslagle, kbasil, mburns, rhel-osp-director-maint, srevivo
Target Milestone: ---Keywords: FutureFeature
Target Release: 11.0 (Ocata)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1234652 Environment:
Last Closed: 2017-02-08 18:49:21 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: 1234652    
Bug Blocks:    

Description Mike Burns 2015-06-25 00:49:10 UTC
+++ This bug was initially created as a clone of Bug #1234652 +++

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 4 James Slagle 2015-06-25 14:52:00 UTC
i've set this one high priority and put it into ga, but it's not a blocker IMO

Comment 8 Alex Schultz 2017-02-08 18:49:21 UTC

*** This bug has been marked as a duplicate of bug 1243188 ***