Add --config-file option
Bug #715372 reported by
Rick Harris
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
lp:~jaypipes/glance/bug742190
- Rick Harris (community): Approve
- Devin Carlen (community): Approve
-
Diff: 384 lines (+228/-23)6 files modifiedbin/glance-manage (+9/-2)
doc/source/configuring.rst (+164/-5)
etc/glance.conf.sample (+1/-3)
glance/common/config.py (+48/-9)
glance/registry/db/__init__.py (+1/-1)
tests/unit/test_config.py (+5/-3)
Changed in glance: | |
assignee: | nobody → Rick Harris (rconradharris) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in glance: | |
milestone: | none → cactus-2011-03-14 |
Changed in glance: | |
assignee: | Rick Harris (rconradharris) → Jay Pipes (jaypipes) |
status: | In Progress → Triaged |
milestone: | cactus-2011-03-14 → cactus-2011-03-24 |
Changed in glance: | |
assignee: | nobody → Jay Pipes (jaypipes) |
milestone: | none → cactus-2011-04-07 |
status: | Triaged → In Progress |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | cactus-2011-04-07 → 2011.2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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 venv)jpipes@ serialcoder: ~/repos/ glance/ use-paste- deploy$ ./bin/glance-api etc/glance. cnf.sample 0.0.0.0: 9292/
ERROR: Unable to locate any configuration file. Cannot load application glance-api
(.glance-
(11184) wsgi starting up on http://