Preflight check for log dirs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
We just had an inscrutable error about missing logdirs:
/home/
Starting bzr-sftp: twistdTraceback (most recent call last):
File "/srv/bazaar.
twisted.
File "/srv/bazaar.
app.run(runApp, ServerOptions)
File "/srv/bazaar.
runApp(config)
File "/srv/bazaar.
_SomeApplic
File "/srv/bazaar.
self.
File "/srv/bazaar.
observer = self._getLogObs
File "/srv/bazaar.
logFile = logfile.
File "/srv/bazaar.
os.
File "/srv/bazaar.
BaseLogFile
File "/srv/bazaar.
assert os.path.
AssertionError
.
The assertion can be improved but it would be nice to have a preflight check that this problem doesn't exist (for use before we shutdown services to start a bait-and-switch deployment).
tags: | added: canonical-losa-lp |
Changed in launchpad-code: | |
status: | New → Triaged |
status: | Triaged → In Progress |
status: | In Progress → New |
affects: | launchpad-code → launchpad-foundations |
Changed in launchpad: | |
status: | Incomplete → Triaged |
importance: | Undecided → Low |
I don't know what a preflight check is, but it sounds like look before you leap. It would make sense to have a way to create all necessary directories, and it would make sense to have a sane error message if we don't have the necessary log file directory, but do we really need a preflight check?