maas-import-pxe-files sets incorrect permissions for commissioning dir

Bug #1042865 reported by Andres Rodriguez
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Gavin Panella

Bug Description

maas-import-pxe-files creates the directory with the commissioning images with incorrect permissions. This causes that while PXE booting, the images are not accessible.

ubuntu@maas:/var/lib/tftpboot/maas/i386/generic/precise$ ls -l
total 8
drwx------ 2 root root 4096 Aug 28 13:18 commissioning
drwxr-xr-x 2 root root 4096 Aug 28 13:11 install

Doing:

chmod 755 /var/lib/tftpboot/maas/i386/generic/precise/commissioning

Fixes the issue.

Related branches

Changed in maas:
importance: Undecided → Critical
Changed in maas:
status: New → Triaged
Revision history for this message
Julian Edwards (julian-edwards) wrote :

The directory is created in the make_destination function in src/provisioningserver/pxe/install_image.py. It looks like the umask is too strict here, so the code should be more defensive and explicitly set the permissions it needs.

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Did this happen on a fresh installation, or during an upgrade from an older one where the script may already have run? The script should create everything as world-readable these days, but a leftover from an old version would be a different matter, possibly best solved in postinst.

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 1042865] Re: maas-import-pxe-files sets incorrect permissions for commissioning dir

On Wednesday 29 August 2012 05:18:20 you wrote:
> Did this happen on a fresh installation, or during an upgrade from an
> older one where the script may already have run? The script should
> create everything as world-readable these days, but a leftover from an
> old version would be a different matter, possibly best solved in
> postinst.

Fresh installation.

Changed in maas:
assignee: nobody → Jeroen T. Vermeulen (jtv)
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi All,

Re-opening this bug report. I just installed latest branch bzr953, which supposedly has this fix but:

ubuntu@maas:/var/lib/maas/tftp/amd64/generic/precise$ ls -l
total 8
drwx------ 2 root root 4096 Aug 31 09:55 commissioning
drwxr-xr-x 2 root root 4096 Aug 31 09:46 install

Changed in maas:
status: Fix Released → New
Gavin Panella (allenap)
Changed in maas:
status: New → In Progress
assignee: Jeroen T. Vermeulen (jtv) → Gavin Panella (allenap)
Gavin Panella (allenap)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.