[Documentation] Improve compute node setup script
Near the bottom of the compute node install guide, there's a shell script that includes a Python script to create the initial compute node record in Arvados. This script needs the following improvements:
socket.gethostname()may return the shortname or FQDN depending on exactly how
/etc/hostsis written, which we don't want to fix. Improvement: make sure to always get the FQDN, then split it up into shortname and domain parts.
- The body of the create request should include the address and domain fields.
- The shell should should
$ARVADOS_API_HOSTin URLs, rather than the
apishortname, to work in a wider variety of installations.
#3 Updated by Brett Smith over 4 years ago
- The curl command at the very end of the script also needs its URL changed to use
- Would it maybe be a little nicer to pass
socket.gethostbyname()? I think that would help be even more sure that the results are internally consistent.
This is good to merge with at least the first change. Thanks.