Merge lp:~tyler-baker/lava-dispatcher/consolidate-busybox-httpd into lp:lava-dispatcher
Status: | Merged |
---|---|
Merged at revision: | 677 |
Proposed branch: | lp:~tyler-baker/lava-dispatcher/consolidate-busybox-httpd |
Merge into: | lp:lava-dispatcher |
Diff against target: |
261 lines (+49/-108) 3 files modified
lava_dispatcher/device/bootloader.py (+6/-49) lava_dispatcher/device/ipmi_pxe.py (+4/-55) lava_dispatcher/device/target.py (+39/-4) |
To merge this branch: | bzr merge lp:~tyler-baker/lava-dispatcher/consolidate-busybox-httpd |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Antonio Terceiro | 2013-09-06 | Approve on 2013-09-09 | |
Review via email:
|
Description of the change
Consolidation of the busybox httpd logic. The ipmi_pxe and bootloader class both use these functions to allow the exchange of files to and from the target. It makes sense to reuse a single implementation, rather than maintaining both.
* Moved all the functionality into target.py for reuse.
* start_http_server -> start_busybox_
* stop_http_server -> stop_busybox_
Tested these changes on a bootloader device.
http://
However, I cannot test these changes on a highbank node until merged into staging.
Michael Hudson-Doyle (mwhudson) wrote : | # |
Antonio Terceiro (terceiro) wrote : | # |
Looks good to me.
I also agree with Michael's comments - doing that will simplify the code even more.
review approve
Tyler Baker (tyler-baker) wrote : | # |
I'll update the branch per Michael's comments after I retest. Thanks for the suggestion!
- 676. By Tyler Baker on 2013-09-10
-
Remove httpd pid
- 677. By Tyler Baker on 2013-09-10
-
Remove the dead code
Tyler Baker (tyler-baker) wrote : | # |
Branch updated to reflect comments.
Tested the changes on a bootloader device:
http://
Merging to test on the highbank in staging.
Tyler Baker (tyler-baker) wrote : | # |
Confirmed logic works correctly on highbank in staging.
I know you're just moving code around so this is a side comment but does the httpd's pid really need to come to the host? Seems we could just execute
$ busybox httpd &
$ echo $! > /tmp/httpd.pid
to start and
$ kill `cat /tmp/httpd.pid`
to stop it.