esdc-ce icon indicating copy to clipboard operation
esdc-ce copied to clipboard

The first compute node installation fails without setting default gw

Open YanChii opened this issue 6 years ago • 2 comments

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 avatar Apr 26 '18 09:04 YanChii

@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...)

dn0 avatar Apr 26 '18 10:04 dn0

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

YanChii avatar Apr 26 '18 11:04 YanChii