Bug 960670

Summary: Give priority to CLI args
Product: Red Hat OpenStack Reporter: Flavio Percoco <fpercoco>
Component: python-oslo-configAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 3.0CC: abaron, afazekas, apevec, fpercoco, hateya, markmc, mlopes, ndipanov, sclewis
Target Milestone: betaKeywords: TestOnly
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-oslo-config-1.2.0-0.3.a3.el6ost Doc Type: Bug Fix
Doc Text:
oslo.config now prioritises CLI arguments over parameters supplied in config files. If CLI parameters include both config files and arguments, then the values specified in the arguments will take precedence. Before this fix, oslo.config gave priority to configuration parameters in config files over those specified in the CLI.
Story Points: ---
Clone Of:
: 1045049 (view as bug list) Environment:
Last Closed: 2013-12-20 00:02:20 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: 958782, 1045049    

Description Flavio Percoco 2013-05-07 15:58:26 UTC
Currently, oslo.config gives priority to arguments present in the config file instead of giving it to CLI defined ones.

This behavior should be changed to something more natural, that is, give CLI parameters the priority over config files.

Pls, read the m-l thread for more details:

http://lists.openstack.org/pipermail/openstack-dev/2013-May/008551.html

Comment 4 Alan Pevec 2013-06-03 17:00:57 UTC
https://review.openstack.org/29459 was merged to oslo.config master but it's not a backport candidate for stable/grizzly

Comment 5 Flavio Percoco 2013-08-02 08:21:03 UTC
A fix for oslo.config was released upstream[0]. The next thing to to is update Glance's requirements to point to that version.


[0] http://docs.openstack.org/developer/oslo.config/#a3

Comment 7 Scott Lewis 2013-11-19 16:54:37 UTC
Auto adding >= MODIFIED bugs to beta

Comment 8 Haim 2013-11-20 11:50:01 UTC
verification steps:

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

Comment 12 Flavio Percoco 2013-12-09 15:58:40 UTC
*** Bug 967781 has been marked as a duplicate of this bug. ***

Comment 16 errata-xmlrpc 2013-12-20 00:02:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html

Comment 17 Flavio Percoco 2014-01-06 16:56:56 UTC
*** Bug 1045049 has been marked as a duplicate of this bug. ***