Closed Bug 1275428 Opened 9 years ago Closed 9 years ago

Weekly master restart should add comment to slavealloc while disabled

Categories

(Infrastructure & Operations Graveyard :: CIDuty, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: aobreja)

References

Details

Attachments

(1 file, 2 obsolete files)

The recent buildbot master lag alerts were debugged by Alin to be 13 masters being disabled in slavealloc, presumably because something went wrong with their restarts. We should try to figure out the root cause (in bug 1256118) but in the meantime drop a comment in slavealloc like 'master restart YYYYMMDD' while they're disabled.
This patch should give us notifications in slavealloc about the master when was disabled. I will still need to test this modifications on local,can you give me any advise how can I begin testing this?and to what should I be aware of? thank you
Attachment #8756892 - Flags: feedback?(coop)
Attachment #8756892 - Flags: feedback?(coop) → feedback+
Assignee: nobody → andrei.obreja
This patch will give us notifications in slavealloc about the master when was disabled while is been disabled.
Attachment #8777314 - Flags: review?(coop)
Comment on attachment 8777314 [details] [diff] [review] bug_1275428_notification_slavealloc.patch Review of attachment 8777314 [details] [diff] [review]: ----------------------------------------------------------------- r+ with nit fixed. ::: buildfarm/maintenance/restart_masters.py @@ +263,4 @@ > # and possibly getting hung. > log.debug("Disabling %s in slavealloc." % master['hostname']) > disable_url = furl(slavealloc_api_url + "/" + str(master_ids[master['name']])) > + put_data = {"enabled": 0, "notes": "master disabled at %s " %datetime.datetime.now().strftime("%d-%m-%y %H:%M")} Nit: I prefer %Y-%m-%d as the date format because it's sortable.
Attachment #8777314 - Flags: review?(coop) → review+
Attachment #8756892 - Attachment is obsolete: true
Attachment #8777314 - Attachment is obsolete: true
Attachment #8777802 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Release Engineering → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: