Merge lp:~jtv/maas/bug-1041318 into lp:maas/trunk
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Jeroen T. Vermeulen on 2012-08-27 | ||||
| Approved revision: | 932 | ||||
| Merged at revision: | 936 | ||||
| Proposed branch: | lp:~jtv/maas/bug-1041318 | ||||
| Merge into: | lp:maas/trunk | ||||
| Diff against target: |
100 lines (+39/-7) 3 files modified
src/provisioningserver/pxe/config.py (+3/-0) src/provisioningserver/tests/test_tftp.py (+27/-2) src/provisioningserver/tftp.py (+9/-5) |
||||
| To merge this branch: | bzr merge lp:~jtv/maas/bug-1041318 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gavin Panella (community) | 2012-08-24 | Approve on 2012-08-24 | |
|
Review via email:
|
|||
Commit Message
Allow PXE configs to come from TFTP paths starting at “pxelinux.cfg”
Description of the Change
This may help Andres with his upgrade Q/A. He is not running MAAS's DHCP server, and so PXE clients are directed to download “pxelinux.0” (at the TFTP root, not in the “maas” directory).
That works for pxelinux.0 itself (you get the version pxelinux-common installs), but not for the config files. But it looks like the “maas” directory has been more or less abstracted away anyawy, so in this branch I make it optional. It's mostly just a small change to the regex in the TFTPBackend. That will still leave multi-architecture problems, but at least it will support i386 smoothly as a default.
I also added some missing negative tests for the regex. There were no tests to establish that the config-path regex was not matching things it shouldn't.
Jeroen
| Gavin Panella (allenap) wrote : | # |
Some context that I was previously unaware of: Andres has said that
this is a problem for upgrades only, where users are running their own
DHCP servers. Their settings for MAAS in 12.04 will not work with the
current versions. This branch smooths the upgrade.
The question still stands about removing the maas/ prefix entirely.
| Julian Edwards (julian-edwards) wrote : | # |
On Friday 24 August 2012 22:04:19 Gavin Panella wrote:
> Some context that I was previously unaware of: Andres has said that
> this is a problem for upgrades only, where users are running their own
> DHCP servers. Their settings for MAAS in 12.04 will not work with the
> current versions. This branch smooths the upgrade.
>
> The question still stands about removing the maas/ prefix entirely.
It doesn't make a lot of sense to keep it, given that it's now optional.


> This may help Andres with his upgrade Q/A. He is not running MAAS's
> DHCP server, and so PXE clients are directed to download
> “pxelinux.0” (at the TFTP root, not in the “maas” directory).
Do you have any insight into why this is happening? Is is not possible
to configure the boot filename on Andres' DHCP server? This has a
bearing on our not-managing-DHCP story.
Should we get rid of the bootpath altogether, instead of making it
optional, or does it still serve a purpose? I think its original
purpose was so that MAAS's boot files could coexist alongside other
resources served by the TFTP server. Now that MAAS has a dedicated
server this is largely irrelevant.