Closed
Bug 734764
Opened 13 years ago
Closed 13 years ago
Queues need to be created with mode 755 so that nagios can check status
Categories
(Release Engineering :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nthomas, Assigned: catlee)
Details
Attachments
(1 file)
1.15 KB,
patch
|
rail
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
Bug 734728 ended up rebooting four buildbot masters in SCL1, which had nagios alerts like this afterwards
buildbot-master04.build.scl1:Command Queue is UNKNOWN: Unhandled exception
It turned out that /dev/shm/queue and subdirs had mode 700 on cltbld:cltbld, so nagios can't come along and read the files there. A 'chmod -R 755 /dev/shm/queue' fixes it up, but we should create the dirs with the right mode.
Reporter | ||
Comment 1•13 years ago
|
||
At face value you'd expect this to have already fixed it
http://hg.mozilla.org/build/tools/rev/d9e1c085fa02
catlee said he'd take a look Monday.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → catlee
Priority: -- → P2
Assignee | ||
Comment 2•13 years ago
|
||
very strange...all the tools checkouts I can find on this machine are up-to-date. the only thing out of place I could find was an old lib/python/buildtools/queuedir.pyc reference. maybe some script was picking that up instead of lib/python/mozilla_buildtools/queuedir.py.
I've removed the old .pyc files and the empty directory.
Assignee | ||
Comment 3•13 years ago
|
||
bm04 was jsut rebooted, and this happened again.
/dev/shm/queue is 0700, as are /dev/shm/queue/{commands,pulse}. The subdirectories of {commands,pulse} are 0755 though.
Assignee | ||
Comment 4•13 years ago
|
||
so one way to reproduce this is if you have a umask of 077. then os.makedirs(dirname, 0755) results in 0700 permissions on those directories. I'm not sure if this is actually happening or not, but one change we could make is to explicitly set the umask of buildbot and the queue consumers to 022.
Assignee | ||
Comment 5•13 years ago
|
||
the problem here is that buildbot is running with umask 077, and it starts before the queue processors do, so the directories get created with too-restrictive directories.
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #609394 -
Flags: review?(rail)
Updated•13 years ago
|
Attachment #609394 -
Flags: review?(rail) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #609394 -
Flags: checked-in+
Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•