1. 28 May, 2014 1 commit
  2. 26 May, 2014 2 commits
  3. 23 May, 2014 1 commit
    • Dimitris Aragiorgis's avatar
      Fix QueryNetworks wrt instances · 96092119
      Dimitris Aragiorgis authored
      QueryNetworks tries to find which instances are connected to which
      networks. The query mechanism in Haskell was written back when NICs
      referred to a network via its name and not its UUID. Fix luxi to
      comply with the current implementation (network slot of NIC object
      is a UUID).
      Fix old style query mechanism to return a list of names instead of
      UUIDs for the instances that are connected to a network.
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
  4. 22 May, 2014 1 commit
  5. 20 May, 2014 2 commits
  6. 19 May, 2014 1 commit
  7. 16 May, 2014 1 commit
  8. 08 May, 2014 3 commits
  9. 29 Apr, 2014 1 commit
  10. 10 Apr, 2014 1 commit
    • Hrvoje Ribicic's avatar
      Fix non-running test and remove custom_nicparams rename · bd9ef845
      Hrvoje Ribicic authored
      Due to a missing base class, the test that was supposed to check if
      RAPI instance parameter renames during modifications are working did
      not execute. As the instances are not covered by the QA tests, the
      tests failed to show that custom nicparams cannot actually be set
      through RAPI at the time. Given that the instance interface is
      asymmetric beyond simple repairs, this is fine in 2.10. This patch
      sets the test to execute, removes the setting of custom_nicparams in
      the test, and removes the renaming of the param in the RAPI request.
      Signed-off-by: default avatarHrvoje Ribicic <riba@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
  11. 26 Mar, 2014 5 commits
  12. 07 Mar, 2014 1 commit
  13. 04 Mar, 2014 1 commit
  14. 24 Feb, 2014 1 commit
  15. 29 Jan, 2014 1 commit
  16. 28 Jan, 2014 1 commit
    • Ilias Tsitsimpis's avatar
      Assign unique filenames to filebased disks · 94e252a3
      Ilias Tsitsimpis authored
      With the new format for cmdline arguments, the user is able to add a
      disk to an instance at a specific index. But filebased disks' filenames
      have the form "{0}/disk{1}" where '{0}' is the file_storage_dir and
      '{1}' is the index of the disk. So if an instance has 3 disks and we
      try to create a new one at index 1, the operation will fail because the
      filename "{0}/disk1" already exists.
      This patch fixes the above problem and also makes the naming of file and
      shared disks uniform with other templates.
      Signed-off-by: default avatarIlias Tsitsimpis <iliastsi@grnet.gr>
      Signed-off-by: default avatarKlaus Aehlig <aehlig@google.com>
      Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
  17. 20 Jan, 2014 1 commit
  18. 20 Dec, 2013 2 commits
    • Michele Tartara's avatar
      Ensure that all the hypervisors exist in the config file · 6ee8fdd3
      Michele Tartara authored
      All the hypervisors are supposed to exist in the config file, but it might not
      be so after upgrades from old versions. This patch ensures that all the missing
      hypervisors are added with their default values to the config file.
      Also, some tests are adapted, because now they receive the default values
      instead of an empty dictionary when they are working using a minimal cluster
      config as their input.
      Fixes Issue 640.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
    • Michele Tartara's avatar
      Fix testEncodeInstance test input · 52a988f2
      Michele Tartara authored
      The input of the testEncodeInstance test was not adherent to the actual format
      of the Ganeti configuration file: kvm has no HV_BLOCKDEV_PREFIX, and "hvparams"
      inside an instance should only contain the values of the hypervisor parameters,
      not the hypervisor name, which is already declared in the "hypervisor" field,
      and which was not correctly aligned with the parameters in the "hvparams"
      All these problems are now fixed, and the assertions are changed accordingly.
      Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
  19. 16 Dec, 2013 2 commits
  20. 05 Dec, 2013 1 commit
  21. 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>
  22. 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>
  23. 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>
  24. 11 Nov, 2013 1 commit
  25. 31 Oct, 2013 1 commit
  26. 28 Oct, 2013 1 commit
  27. 24 Oct, 2013 4 commits