Merge lp:~andreserl/maas/maas_set_correct_file_permissions into lp:maas/trunk
| Status: | Rejected |
|---|---|
| Rejected by: | Julian Edwards on 2012-08-31 |
| Proposed branch: | lp:~andreserl/maas/maas_set_correct_file_permissions |
| Merge into: | lp:maas/trunk |
| Prerequisite: | lp:~andreserl/maas/maas_fix_broken_tftppath_tests |
| Diff against target: |
33 lines (+5/-0) 2 files modified
src/provisioningserver/pxe/install_image.py (+1/-0) src/provisioningserver/utils.py (+4/-0) |
| To merge this branch: | bzr merge lp:~andreserl/maas/maas_set_correct_file_permissions |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Julian Edwards (community) | Needs Fixing on 2012-08-30 | ||
|
Review via email:
|
|||
This proposal supersedes a proposal from 2012-08-29.
| Julian Edwards (julian-edwards) wrote : | # |
BTW I took the liberty of re-proposing the merge so it has the pre-requisite branch set, which makes the diff only show what this branch changes.
| Jeroen T. Vermeulen (jtv) wrote : | # |
In src/provisionin
In src/provisionin
| Jeroen T. Vermeulen (jtv) wrote : | # |
Ah, I rubbed the sleep out of my eyes and took a better look. I was completely mistaken about the second issue -- although I still can't figure out what the basis for the assumption is. I suspect that chmod inside atomic_write may belong in the caller.
| Jeroen T. Vermeulen (jtv) wrote : | # |
Nope, caller is no good for this. It can't be done before or after atomic_write. But the chmod is in the wrong place: it effectively makes the write non-atomic by creating a race window where the file may be non-accessible for no good reason.
I still can't make sense of the comment... Clearly "filename" is not a directory. It is the file you just wrote.
| Jeroen T. Vermeulen (jtv) wrote : | # |
Anyway, as per the kanban board I already had a branch in progress for this. I'll move that forward; it's a bit simpler. I also marked the bug as in-progress and assigned to myself, to match the board.
Unmerged revisions
- 946. By Andres Rodriguez on 2012-08-29
-
Set correct permissions for commissioning/ directory that holds the commissioning images. Additionally, set correct permissions for other filenames
- 945. By Andres Rodriguez on 2012-08-29
-
Fix broken tftppath tests due to maas/trunk/
revision/ 940


This is great! But it needs tests...