1. 08 Apr, 2014 1 commit
  2. 20 Feb, 2014 2 commits
  3. 03 Feb, 2014 1 commit
  4. 11 Dec, 2013 2 commits
  5. 09 Dec, 2013 1 commit
  6. 05 Dec, 2013 1 commit
  7. 02 Dec, 2013 1 commit
  8. 27 Nov, 2013 1 commit
    • Thomas Thrainer's avatar
      Fix NODE/NODE_RES locking in LUInstanceCreate · 4289f617
      Thomas Thrainer authored
      Both NODE and NODE_RES locks were acquired opportunistically if so
      requested by the user. LUInstanceCreate requires, however, that the
      actually locked elements on NODE and NODE_RES level are the same.
      This patch changes the locking of NODE_RES such that those locks are not
      acquired opportunistically any more. Instead, the mandatory locks are
      set to the acquired NODE locks once they are actually granted.
      This fixes issue 622.
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
  9. 21 Nov, 2013 1 commit
    • Dimitris Aragiorgis's avatar
      Introduce --hotplug-if-possible option · 96ed3a3e
      Dimitris Aragiorgis authored
      This will be useful for an external entity using RAPI that
      wants to modify devices of instances.
      The common use case for that is:
      "I want to add a NIC/disk to an instance. If it is running
      then try to hotplug the device. If not, then just add it to config."
      Another use case is that if we are unaware of the instance's
      hypervisor: "I want do add a NIC/disk to an instance and if
      its hypervisor is KVM try to hotplug it."
      For all those cases just print a warning in CheckPrereq() and
      disable any further hotplug related actions (and let
      modifications take place after reboot).
      Add NoHoplugSupport and HotplugIfPossible unittests an modify
      existing by explicitly creating successful RPC results for
      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>
  10. 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>
  11. 14 Nov, 2013 1 commit
    • Thomas Thrainer's avatar
      Don't allow optional node parameters · 07e68848
      Thomas Thrainer authored
      Ganeti does not support optional fields in parameters
      (hypervisor-params, disk-params, etc.). OpenVSwitch related node
      parameters were the exception to this rule, which caused numerous
      problems related to import/export and (de-)serialization.
      The reason for making those parameters optional in the first place was to
      disallow them when OpenVSwitch is not used. This was not consistent with
      other parts of Ganeti, where we allow parameters to be set even though they
      are not actively used.
      This patch makes all node parameters mandatory and provides sensible
      defaults for them. Checks which make sure that certain parameters are
      not set in some cases were removed, and the tests adapted. Also, the
      inheritance logic from cluster -> node group -> node was implemented, as
      it was missing previously.
      Signed-off-by: default avatarThomas Thrainer <thomasth@google.com>
      Reviewed-by: default avatarHrvoje Ribicic <riba@google.com>
  12. 31 Oct, 2013 2 commits
  13. 28 Oct, 2013 1 commit
  14. 24 Oct, 2013 3 commits
  15. 09 Oct, 2013 1 commit
  16. 07 Oct, 2013 1 commit
  17. 02 Oct, 2013 1 commit
  18. 27 Sep, 2013 2 commits
  19. 26 Sep, 2013 2 commits
  20. 24 Sep, 2013 2 commits
  21. 17 Sep, 2013 1 commit
  22. 16 Sep, 2013 1 commit
  23. 12 Sep, 2013 2 commits
  24. 28 Aug, 2013 1 commit
  25. 22 Aug, 2013 1 commit
  26. 21 Aug, 2013 1 commit
  27. 20 Aug, 2013 3 commits
  28. 19 Aug, 2013 2 commits