Bug 960670 - Give priority to CLI args
Summary: Give priority to CLI args
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-oslo-config
Version: 3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: beta
: 4.0
Assignee: Flavio Percoco
QA Contact:
URL:
Whiteboard:
: 967781 1045049 (view as bug list)
Depends On:
Blocks: 958782 1045049
TreeView+ depends on / blocked
 
Reported: 2013-05-07 15:58 UTC by Flavio Percoco
Modified: 2016-04-26 14:53 UTC (History)
9 users (show)

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.
Clone Of:
: 1045049 (view as bug list)
Environment:
Last Closed: 2013-12-20 00:02:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1176817 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

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. ***


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