Closed
Bug 1011257
Opened 11 years ago
Closed 11 years ago
/builds/slave is read only for cltbld
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rail, Assigned: massimo)
References
Details
Attachments
(1 file, 3 obsolete files)
2.51 KB,
patch
|
rail
:
review+
massimo
:
checked-in+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•11 years ago
|
||
Hi rail,
this patch updates permissions on /builds/slave and /build/ccache
Assignee: nobody → mgervasini
Attachment #8423857 -
Flags: review?(rail)
Reporter | ||
Comment 2•11 years ago
|
||
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-
Assignee | ||
Comment 3•11 years ago
|
||
removed uid=cltbld,gid=cltbld options for ccache in /etc/fstab
Attachment #8423857 -
Attachment is obsolete: true
Attachment #8423874 -
Flags: review?(rail)
Assignee | ||
Comment 4•11 years ago
|
||
replaced os.chown() calls with run_cmd(['chown'm ...]), renamed SSD_METADATA_FILE to JACUZZI_METADATA_JSON
Attachment #8423912 -
Flags: review?(rail)
Reporter | ||
Updated•11 years ago
|
Attachment #8423874 -
Attachment is obsolete: true
Attachment #8423874 -
Flags: review?(rail)
Assignee | ||
Comment 5•11 years ago
|
||
moved chown/mount under try: in main()
Attachment #8423912 -
Attachment is obsolete: true
Attachment #8423912 -
Flags: review?(rail)
Attachment #8423934 -
Flags: review?(rail)
Reporter | ||
Comment 6•11 years ago
|
||
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+
Assignee | ||
Updated•11 years ago
|
Attachment #8423934 -
Flags: checked-in+
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
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
•