1. 18 Nov, 2013 1 commit
    • Dimitris Aragiorgis's avatar
      Allow instances to obtain externally reserved IPs · 031d2db1
      Dimitris Aragiorgis authored
      The administrator should be able to assign an externally reserved IP
      to a Ganeti instance manually, if desired. Currently this is not
      supported. External reservations should act as holes in the pool and
      not just as IPs already used by someone outside of Ganeti.
      Automatic allocation with ip=pool will continue to exclude those IPs
      as happens now.
      To allow such functionality the administrator needs to pass explicitly
      the desired IP along with the ``--no-conflicts-check`` option, or else
      an error will be produced as happens now.
      The aforementioned require the following changes:
       - Make IsReserved() to look either in reservations or external ones.
       - Make Reserve() and Release() to use IsReserved() with external
         argument True or False.
       - Pass extra option to ReserveIp() to bypass checking of external reservations
       - Update man pages and design doc for this change.
      Furthermore, a side effect of this patch is that it fixes the
      following problem:
      Currently, one could not mark an IP as external if it was already
      reserved (i.e. belonged to an instance). The code would produce a warning
      and fail silently.
      Fix config_mock.py so that if network and ip is given then reserve it in
      the pool.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarThomas Thrainer <thomasth@google.com>
  2. 23 Nov, 2012 1 commit
  3. 28 Mar, 2012 1 commit
    • Dimitris Aragiorgis's avatar
      Update IP pool management design doc · 2ac41278
      Dimitris Aragiorgis authored
      Update IP pool managenent design doc to be consistent
      with the implementation.
       * Add new NIC parameter: 'network'
         Can be None for backwards compatibility.
       * Introduce the term 'netparams'
         The NIC inherits netparams (mode, link) as its nicparams
         if assinged to a network. Netparams are defined during
         network connection to a nodegroup.
       * Introduce the term 'Conflicting IPs'
         Ensure IPs uniqueness inside nodegroups.
       * Update 'Hooks' section.
       * Update 'Hook variables' section
       * Update 'Userland interface' to reflect the implementation
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
  4. 17 Jun, 2011 1 commit