Skip to content

Commit

Permalink
Style: How client and server interact during poll
Browse files Browse the repository at this point in the history
The iPXE client just repeats the same request, a.k.a. "polling".
It is the Shoelaces server that can break the polling loop.
Either by handing out automated boot entry point based on IP address
or DNS PTR record,  hand picked boot entry point from Web UI
or due retry maximum reached.

Signed-off-by: Geert Stappers <[email protected]>
  • Loading branch information
stappersg authored and raul-te committed Jan 23, 2023
1 parent 5d7eada commit 8b80016
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/polling/polling.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const (
" && chain -ar http://{{.baseURL}}/ipxemenu \\\n" +
" || chain -ar http://{{.baseURL}}/poll/1/{{.macAddress}}\n\n" +
"# Note: the iPXE client will see the above code as an endless loop.\n" +
"# However, Shoelaces will break that loop after a fixed number of retries.\n"
"# However, Shoelaces server can break that loop to enable further booting.\n"

timeoutScript = "#!ipxe\n" +
"echo\n" +
Expand Down
2 changes: 1 addition & 1 deletion test/integ-test/expected-results/poll-unknown.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ prompt --key 0x02 --timeout 7000 shoelaces: Press Ctrl-B for manual override...
|| chain -ar http://localhost:18888/poll/1/06-66-de-ad-be-ef

# Note: the iPXE client will see the above code as an endless loop.
# However, Shoelaces will break that loop after a fixed number of retries.
# However, Shoelaces server can break that loop to enable further booting.
2 changes: 1 addition & 1 deletion test/integ-test/expected-results/poll.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ prompt --key 0x02 --timeout 7000 shoelaces: Press Ctrl-B for manual override...
|| chain -ar http://localhost:18888/poll/1/ff-ff-ff-ff-ff-ff

# Note: the iPXE client will see the above code as an endless loop.
# However, Shoelaces will break that loop after a fixed number of retries.
# However, Shoelaces server can break that loop to enable further booting.

0 comments on commit 8b80016

Please sign in to comment.