Wrong TFTP path

Bug #1042877 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Jeroen T. Vermeulen

Bug Description

The default ROOT TFTP path is "/var/lib/tftpboot". However, when we are using an external DHCP server, the standard pxelinux.0 path is "pxelinux.0".

Having the defaults, PXE Booting wouldn't work because there's no "pxelinux.0" under "/var/lib/tftpboot". This means that we would have to change the DHCP server to tell the path as "maas/pxelinux.0". However, this is undesired as it is a non-default path.

Now, if we edit "/etc/maas/pserv.yaml", and set the tftp option of:
tftp:
  root: /var/lib/tftpboot/maas

would not require DHCP server reconfiguration as it would look for "pxelinux.0" under "/var/lib/tftpboot/maas". However, the issue is that when it looks for the images, it continues to prepend the "maas" path, hance, PXE Booting continues to fail with:

"could not find kernel image: maas/amd64/generic/precise/commissioning/linux"

== Possible Solution ==
A possible solution would be to set the default root path for tftp as:
"/var/lib/tftpboot/maas"

And the images should be accessed as
"<arch>/generic/precise/commissioning/linux"

And NOT

"maas/<arch>/generic/precise/commissioning/linux""

Related branches

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

Re-opening. The original fix broke tests, and reportedly also changed things it shouldn't have.

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

Other bug subscribers

Remote bug watches

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