low visibility of errors when using swift-init
Bug #639710 reported by
clayg
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
clayg |
Bug Description
When there's a typo in a config file, starting a server with swift-init can't display an error to stderr (already damonized) and can't log to syslog (not configed yet!)
It MAY be able to recognize that the server failed to start and possibly suggest you try to start it directly? (e.g. swift-init proxy start fails, try swift/bin/
Related branches
lp:~clay-gerrard/swift/swift_init_ng
- Chuck Thier (community): Approve
- gholt (community): Approve
-
Diff: 2813 lines (+2473/-193)10 files modifiedbin/swift-init (+55/-175)
doc/source/development_saio.rst (+2/-14)
doc/source/misc.rst (+7/-0)
swift/common/daemon.py (+1/-1)
swift/common/manager.py (+605/-0)
swift/common/utils.py (+59/-1)
swift/common/wsgi.py (+3/-2)
test/unit/__init__.py (+23/-0)
test/unit/common/test_manager.py (+1636/-0)
test/unit/common/test_utils.py (+82/-0)
Changed in swift: | |
assignee: | nobody → clayg (clay-gerrard) |
importance: | Undecided → Low |
Changed in swift: | |
status: | New → In Progress |
Changed in swift: | |
milestone: | none → 1.3.0 |
Changed in swift: | |
status: | In Progress → Fix Committed |
Changed in swift: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think you could push the devnull dup2ing of the stdio fds down to where sys.stdout and stderror are replaced with LoggerFileObjects in common. (daemon| wsgi). Then any errors that occur between those two operations should go to the terminal instead of being blackholed.