Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1243188 - [RFE] [Undercloud] Hard coded paths to undercloud.conf and undercloud-passwords.conf
[RFE] [Undercloud] Hard coded paths to undercloud.conf and undercloud-passwor...
Status: NEW
Product: Red Hat OpenStack
Classification: Red Hat
Component: instack-undercloud (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
medium Severity unspecified
: ---
: ---
Assigned To: James Slagle
Shai Revivo
: FutureFeature, Triaged
: 1235481 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-14 21:00 EDT by Graeme Gillies
Modified: 2018-10-27 22:14 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Known Issue
Doc Text:
The Undercloud installer uses the following hardcoded file paths: * undercloud.conf is hardcoded to ~/undercloud.conf * instack.answers is hardcoded to ~/instack.answers * tripleo-undercloud-passwords is hardcoded to ~/tripleo-undercloud-passwords * install-undercloud.log is hardcoded to ~/.instack/install-undercloud.log These files must exist or the Undercloud installer will fail.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Graeme Gillies 2015-07-14 21:00:10 EDT
Hi,

Looking at the code for instack_undercloud we see

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')


These paths are all hard coded to users home directory (and even worse, relying on shell expansion).

Can we change it so the default is to look for undercloud.conf in the current working directory, before looking in home directory? Then also have a commmand line switch (also exposed through UCLI) to set custom locations for undercloud.conf and undercloud-passwords.conf? instack.answers isn't used so we can ignore that, and logfiles might be good to go to consistent location (though they could also go to current working dir as well)

Regards,

Graeme
Comment 5 Mike Burns 2016-04-07 16:43:53 EDT
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.
Comment 8 Alex Schultz 2017-02-08 13:49:21 EST
*** Bug 1235481 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.