esdc-ce
esdc-ce copied to clipboard
The first compute node installation fails without setting default gw
When not filling in the default gateway during the prompt-config, the headnode.sh
script generates invalid VM templates and whole installation fails.
Steps to reproduce (prompt-config):
- set any static admin IP addr. and subnet
- add external nic tag
- add external IP and set it to dhcp
- when asked for default gw, set it to
None
The prompt-config finishes successfully but in the resulting /usbkey/config
there are missing admin_gateway
and headnode_default_gateway
.
@YanChii Thanks for reporting this. Any suggestions on how the ideal fix should like? (We can have the gateway required, but I guess that is not an ideal solution...)
The prompt-config successfully configures the interfaces. So we have the right config at that time. We could pull the default gw from the netstat. E.g.
if headnode_default_gateway == None; then
headnode_default_gateway="$(netstat -rnf inet| awk '/^default/ {print $2}' | head -1)"
+ prompt for admin_gateway