Merge ~blake-rouse/maas:http-boot-endpoint into maas:master
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Blake Rouse | ||||
Approved revision: | 1b3e28cc023852ea50daabf803fc44f0bc78bc3e | ||||
Merge reported by: | MAAS Lander | ||||
Merged at revision: | not available | ||||
Proposed branch: | ~blake-rouse/maas:http-boot-endpoint | ||||
Merge into: | maas:master | ||||
Diff against target: |
462 lines (+370/-5) 4 files modified
src/provisioningserver/rackdservices/http.py (+97/-0) src/provisioningserver/rackdservices/tests/test_http.py (+260/-3) src/provisioningserver/rackdservices/tftp.py (+5/-2) src/provisioningserver/templates/http/rackd.nginx.conf.template (+8/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andres Rodriguez (community) | Approve | ||
Alberto Donato (community) | Approve | ||
MAAS Lander | unittests | Pending | |
Review via email: mp+364892@code.launchpad.net |
Commit message
Add a HTTP /boot endpoint inside of the rackd process that takes a request and processes it through the same backend as the TFTP server. Add / proxy_pass to the nginx configuration to send requests on 5248 to the /boot endpoint.
Description of the change
This only adds the endpoint it does *not* update any booting machine to actually use the endpoint. That will occur in a following branch.
To validate that it works on a machine with the rackd install the following command should generate the same file that is located in /var/lib/
curl http://
To test with PXE and a dynamically generated file use:
curl http://
Nice! +1
It would be nice to also add a metric for transfer times for http boot resources (similarly to the one we have for tftp).
It's not a blocker for this branch, though