Merge lp:~vila/udd/719888-log-config into lp:udd
Status: | Merged |
---|---|
Merged at revision: | 418 |
Proposed branch: | lp:~vila/udd/719888-log-config |
Merge into: | lp:udd |
Diff against target: |
486 lines (+258/-52) (has conflicts) 12 files modified
categorise_failures.py (+24/-1) etc-apache2-sites-available-package-import.ubuntu.com (+18/-0) etc-init.d-mass-import (+1/-2) icommon.py (+4/-3) iconfig.py (+32/-0) import_package.py (+6/-4) importer.crontab (+9/-6) importer.logrotate (+0/-17) logrotate.py (+53/-0) mass_import.py (+33/-19) pkgimport.conf (+18/-0) tests.py (+60/-0) Text conflict in tests.py |
To merge this branch: | bzr merge lp:~vila/udd/719888-log-config |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Westby | Approve | ||
Review via email: mp+54572@code.launchpad.net |
Description of the change
This introduces a configuration file for the package importer so that the directory used for log files can be changed more easily.
Tons of yak shaving to get there so I apologize in advance for the diff which will be a bit hard to read.
Further modifications of icommon.py to transfer more constants in pkgimport.conf should be easier now.
Note that I didn't (yet) support modifying the config via locations.conf (for tests) so the needed modifications can be reviewed separately.
This changes significant parts of the configuration and requires
some specific actions when deploying:
- stop the importer gracefully
- empty the crontab
- pull lp:udd
- rsync/delete the log files (for those interested)
That means debug_log*, process_log* and logs/*
- re-install the crontab
- restart the installer
- run categorize_
- update the apache config to use www/ instead of logs/ (see provided file in the branch)
- restart apache ?
Forget about the diff in mass-import-in-etc, it's just a catch-up with the actual jubany config.
210 +17 * * * * /usr/bin/python ${SCRIPTS_ DIR}/logrotate. py
I don't see that script in the diff, did you forget to add it?
379 + log_process_path = conf.get( 'pkgimport. driver. log.process' )
The file is "progress_log", not "process_log". If you want to rename that's fine,
otherwise I think we should stay consistent (there is "progress_handler" later
in this function.)
Thanks,
James