Add --config-file option

Bug #715372 reported by Rick Harris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Jay Pipes

Bug Description

We should add an option to specify exactly where we should read the config file from.

This functionality is already built, it's just not exposed as a command-line option.

Related branches

Changed in glance:
assignee: nobody → Rick Harris (rconradharris)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Jay Pipes (jaypipes) wrote :

Hi!

This is actually already in the use-paste-deploy branch, which uses the Swift model of requiring a configuration file as the first argument when starting a server program, as demonstrated below:

(.glance-venv)jpipes@serialcoder:~/repos/glance/use-paste-deploy$ ./bin/glance-api
ERROR: Unable to locate any configuration file. Cannot load application glance-api
(.glance-venv)jpipes@serialcoder:~/repos/glance/use-paste-deploy$ ./bin/glance-api etc/glance.cnf.sample
(11184) wsgi starting up on http://0.0.0.0:9292/

Jay Pipes (jaypipes)
Changed in glance:
milestone: none → cactus-2011-03-14
Jay Pipes (jaypipes)
Changed in glance:
assignee: Rick Harris (rconradharris) → Jay Pipes (jaypipes)
status: In Progress → Triaged
milestone: cactus-2011-03-14 → cactus-2011-03-24
Revision history for this message
Jay Pipes (jaypipes) wrote :

Setting to low since all programs now take as an argument the configuration file, so adding --config-file as a CLI option is really just a nice-to-have

Changed in glance:
milestone: cactus-2011-03-24 → none
assignee: Jay Pipes (jaypipes) → nobody
importance: Medium → Low
Jay Pipes (jaypipes)
Changed in glance:
assignee: nobody → Jay Pipes (jaypipes)
milestone: none → cactus-2011-04-07
status: Triaged → In Progress
Jay Pipes (jaypipes)
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: cactus-2011-04-07 → 2011.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.