Closed
Bug 870061
Opened 8 years ago
Closed 6 years ago
Add report of running builds on a per-slave basis to buildapi
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: jhopkins, Unassigned)
References
Details
buildapi doesn't support reporting running builds on a per-slave basis. For example: https://secure.pub.build.mozilla.org/buildapi/running/talos-r3-w7-088 This returns 0 records even when a build is running on that machine. We could make use of this feature in kittenherder so it can double-check that a build slave is not running a build before doing a reboot. That would guard against this scenario: - slave is idle for 6 hours (the threshold for kittenherder to take action) - slave starts a build - kittenherder checks the slave but cannot SSH in to look at the twistd.log timestamps - kittenherder assumes the slave needs a reboot and uses PDU or IPMI to reset it. - this kills the build in progress
Comment 1•8 years ago
|
||
Unfortunately the buildbot scheduler db doesn't record which slave is running a job, so we don't have a way to do this cheaply. You can get the master that claimed a buildrequest, but have to hit the web ui on that master to figure out which slave is doing it. At which point you're probably better parsing pages like that http://buildbot-master80.srv.releng.usw2.mozilla.com:8201/buildslaves?no_builders=1 But sometimes the master gets confused and that will tell you lies, and it can be slow to load if the master is busy.
Comment 2•8 years ago
|
||
Is there a way we can coerce the scheduler DB to know the slavename relatively cheaply?
Comment 3•8 years ago
|
||
302 Dustin.
Comment 4•8 years ago
|
||
If it's not in there, it's not in there :) You can, of course, hack the code to put it in there..
Reporter | ||
Comment 5•8 years ago
|
||
Adding a buildslave field is part of the planned 'nine' release of buildbot: http://trac.buildbot.net/ticket/1771
Assignee | ||
Updated•8 years ago
|
Product: mozilla.org → Release Engineering
Found in triage. aiui, the buildapi would first need the data to be stored in the scheduler db... a feature upcoming in buildbot0.9?
Component: Other → Tools
Comment 7•8 years ago
|
||
Yes, in Buildbot nine there is a buildslave associated with each build in the Buildbot database.
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
QA Contact: hwine
Resolution: --- → WONTFIX
Assignee | ||
Updated•4 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•