« Previous | Next » 

Revision ff34e12d

IDff34e12d9f5b3f53b356cf223937b23cd05d439d

Added by Dimitris Aragiorgis over 10 years ago

Allow instances obtain a network's gateway IP

Until now once you define a gateway in a network it
gets externally reserved. This way we cannot define
a network with a gateway and spawn a VM inside that
network with the gateway's IP.

To overcome this restriction we do not mark
automatically the gateway as an external reservation.
If the user wants to avoid an instance obtain the
gateway's IP he must explicitelly reserve it externally.

So we have two use cases:
1) gateway outside ganeti # gnt-network add --gateway 10.0.0.1 --add-reserved-ips 10.0.0.1 net # gnt-instance add --net 0:ip=pool,network=net inst
2) VM with gateway's IP (e.g. a NAT server) # gnt-network add --gateway 10.0.0.1 net # gnt-instance add --net 0:ip=10.0.0.1,network=net nat-server # gnt-instance add --net 0:ip=pool,network=net inst

Additionally in case of network creation we reserve
externally the primary/secondary IP of nodes along with
the master's one.

Signed-off-by: Dimitris Aragiorgis <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences