Closed Bug 1011257 Opened 11 years ago Closed 11 years ago

/builds/slave is read only for cltbld

Categories

(Release Engineering :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: massimo)

References

Details

Attachments

(1 file, 3 obsolete files)

manage_instance_storage.py mounts the instance storage as /builds/slave but doesn't care about the ownership of the directory. On regular instances this is fixed by puppet, but for AMIs supposed to work without puppet this doesn't work.
Hi rail, this patch updates permissions on /builds/slave and /build/ccache
Assignee: nobody → mgervasini
Attachment #8423857 - Flags: review?(rail)
Comment on attachment 8423857 [details] [diff] [review] [puppet] Bug 1011257 - builds slave is read only for cltbld.patch Review of attachment 8423857 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/aws/files/manage_instance_storage.py @@ +539,5 @@ > + os.chown(CCACHE_DIR, uid, gid) > + > + # prepare bind shares > + remove_from_fstab(CCACHE_DIR) > + options = 'bind,noatime,uid=%s,gid=%s' % (FS_USER, FS_GROUP) ext3 doesn't support uid=xxx, it won't help chowning would be enough
Attachment #8423857 - Flags: review?(rail) → review-
removed uid=cltbld,gid=cltbld options for ccache in /etc/fstab
Attachment #8423857 - Attachment is obsolete: true
Attachment #8423874 - Flags: review?(rail)
replaced os.chown() calls with run_cmd(['chown'm ...]), renamed SSD_METADATA_FILE to JACUZZI_METADATA_JSON
Attachment #8423912 - Flags: review?(rail)
Attachment #8423874 - Attachment is obsolete: true
Attachment #8423874 - Flags: review?(rail)
moved chown/mount under try: in main()
Attachment #8423912 - Attachment is obsolete: true
Attachment #8423912 - Flags: review?(rail)
Attachment #8423934 - Flags: review?(rail)
Comment on attachment 8423934 [details] [diff] [review] [puppet] Bug 1011257 - builds slave is read only for cltbld.patch Review of attachment 8423934 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/aws/files/manage_instance_storage.py @@ +535,4 @@ > except OSError: > # mkdir failed, CCACHE_DIR not mounted > log.error('%s is not mounted', ccache_dst) > + return return is redundant here. Can you remove it?
Attachment #8423934 - Flags: review?(rail) → review+
Attachment #8423934 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: