summaryrefslogtreecommitdiff
path: root/lorrycontroller
Commit message (Collapse)AuthorAgeFilesLines
* Support HTTP(S) proxies which don't require username and passwordSam Thursfield2014-11-241-10/+25
| | | | | Previously the proxy.conf file had to contain 'username' and 'password' fields, which meant that it didn't work for some HTTP proxy setups.
* Merge remote-tracking branch 'origin/baserock/liw/lc-list-failed-jobs'Sam Thursfield2014-11-172-12/+36
|\ | | | | | | | | Reviewed-By: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> Reviewed-By: Sam Thursfield <sam.thursfield@codethink.co.uk>
| * Add lists of failed, all jobs to lorry spec infobaserock/liw/lc-list-failed-jobsLars Wirzenius2014-09-092-12/+36
| | | | | | | | This adds them to both the JSON and HTML outputs.
* | Handle case when there is no disk usage infoLars Wirzenius2014-10-221-1/+1
|/ | | | | | | Use 0 instead. This was exposed by a test suite change: test suite creates a dummy job, but doesn't fill in all the fields. With this change, WEBAPP doesn't crash when it tries to report a job's information when not all fields are filled in.
* Implement /1.0/remove-ghost-jobsLars Wirzenius2014-09-044-11/+100
|
* Merge branch 'liw/move-error-msgs'Lars Wirzenius2014-07-071-22/+34
|\ | | | | | | | | Reviewed-by: Sam Thursfield Reviewed-by: Richard Maw
| * Improve move-to-top/bottom API call error messagesliw/move-error-msgsLars Wirzenius2014-06-231-0/+12
| |
| * Move shared code to a base class, less code duplicationLars Wirzenius2014-06-231-22/+22
| |
* | Also catch IOErrorRichard Ipsum2014-06-231-1/+1
| | | | | | | | | | Failure to remove the temp file due to full disk or other IO error is acceptable.
* | Write static status HTML page via temporary fileLars Wirzenius2014-06-231-1/+26
| | | | | | | | This will avoid the file being truncated if the disk fills up.
* | Forget "kill_job" flag for future runs of a lorryliw/anti-exterminateLars Wirzenius2014-06-233-17/+36
|/ | | | | | | | | We do this by moving the "kill_job" column from the lorries table to the jobs table, renaming it to "kill" in the process. It makes no sense to have the flag to kill a specific job in the lorries table. This avoids the need to reset the flag, since it affects only a specific job, instead of all jobs of a lorry.
* Fix job showerbaserock/richardipsum/fix_job_showerRichard Ipsum2014-06-191-1/+1
| | | | | | | | | | If our job hasn't ended then our query for (started, ended) returns the start time and NULL for the end time. With sqlite3 NULL maps to None. time.gmtime(None) returns the current time, so instead of displaying nothing a job that hasn't ended will display the current time as its ended time.
* Merge branch 'baserock/liw/lc-list-all-jobs-optimisation'Lars Wirzenius2014-05-222-3/+22
|\ | | | | | | | | Reviewed-by: Sam Thursfield Reviewed-by: Daniel Silverstone
| * Make listjobs faster by getting all info in one querybaserock/liw/lc-list-all-jobs-optimisationLars Wirzenius2014-05-222-3/+22
| |
* | Merge branch 'master' of ↵Lars Wirzenius2014-05-221-3/+3
|\ \ | | | | | | | | | git://git.baserock.org/baserock/baserock/lorry-controller
| * | Fix over-indentation in readconf.pybaserock/pedroalvarez/fix-readconfPedro Alvarez2014-05-211-3/+3
| |/ | | | | | | | | | | The bottle.redirect method raises an HTTP Response. With the over-indentation it was being called inside a 'with' block, making the entire block fail.
* | Render static HTML page without linksbaserock/liw/lc-static-html-without-linksLars Wirzenius2014-05-091-1/+4
|/ | | | The links won't work, so there's no point in having them.
* Fix log messageRichard Ipsum2014-05-061-1/+1
| | | | | Reviewed by: Lars Wirzenius
* Update CONFGIT mirror more robustlyLars Wirzenius2014-05-061-3/+23
| | | | The sequence of git operations suggested by Daniel Silverstone.
* Simplify code by using "with ... as ..."Lars Wirzenius2014-04-221-2/+1
|
* Proof code against whitespace in repo namesLars Wirzenius2014-04-221-1/+1
|
* Fix minor race condition in giving out jobsLars Wirzenius2014-04-221-4/+3
| | | | | Do the check for whether we're allowed to give out jobs in the transaction.
* Goodbye, Scotty, we will miss youLars Wirzenius2014-04-221-7/+0
|
* Add a version tableLars Wirzenius2014-04-221-0/+4
|
* Use proper boolean constantsLars Wirzenius2014-04-221-2/+2
|
* Move exception class earlier in fileLars Wirzenius2014-04-221-6/+6
| | | | Suggested-by: Daniel Silverstone
* Validate protocol field in lorry-controller.confLars Wirzenius2014-04-221-0/+8
|
* Clarify code by removing confusingly named methodLars Wirzenius2014-04-221-8/+5
|
* Rename variables for clarityLars Wirzenius2014-04-221-10/+9
|
* Remove dead code, update FIXME commentLars Wirzenius2014-04-221-5/+4
|
* Move new_gitano_command to a function; add LocalTroveGitanoCommandLars Wirzenius2014-04-225-13/+32
| | | | | This clean up the code a bit, by not making LorryControllerRoute have less code in it that is unrelated to routing web requests.
* Add new Lorry ControllerLars Wirzenius2014-04-1522-0/+2425
|
* Remove old Lorry Controller to make room for new oneLars Wirzenius2014-04-104-766/+0
|
* Fix the construction of https urls in confparseradamcoldrick/https-fix-rebaseAdam Coldrick2014-03-201-8/+4
|
* Fix a typo bug that I somehow didn't notice when merging.Adam Coldrick2014-03-121-1/+1
|
* Update confparser to allow for requests using protocols other than ssh.Adam Coldrick2014-03-061-6/+51
| | | | | | | Add a method that constructs either an ssh command or an http GET request based on the access protocol of the trove. Make sure that when constructing lorries the url is in the correct form for a given protocol.
* Update copyright and license (Use GPL)liw/new-lorry-controllerRichard Ipsum2013-12-164-7/+59
|
* Disable status page from automatically reloadingliw/no-reloadLars Wirzenius2013-02-271-13/+3
|
* Fix so lorry files don't require source-HEAD if they use the default.Joe Burmeister2012-11-141-0/+2
|
* Remove spurious tuple-generating commaDaniel Silverstone2012-10-301-1/+1
|
* Fix up bugs in conf parsingDaniel Silverstone2012-10-301-2/+4
|
* Date/time and sortingDaniel Silverstone2012-10-121-18/+31
|
* More tweaks to HTML status reportingDaniel Silverstone2012-10-113-8/+24
|
* Support generating HTML status messagesDaniel Silverstone2012-10-113-1/+265
|
* Support destroying dead lorries. Also fix up dry-run a bit moreDaniel Silverstone2012-10-101-1/+1
|
* Purge dead trovesDaniel Silverstone2012-10-101-0/+15
|
* Default last-ls-output should be a dictDaniel Silverstone2012-10-101-1/+1
|
* Support HEAD settingDaniel Silverstone2012-10-091-8/+20
|
* Support tarball config option replete with always/never/first supportDaniel Silverstone2012-10-082-6/+9
|
* Cope with lorries changing uuid and being destroyed in the same runDaniel Silverstone2012-10-081-3/+0
|