1. 03 Feb, 2009 6 commits
    • Iustin Pop's avatar
      An attempt at fixing some encoding issues · 26f15862
      Iustin Pop authored
      This patch unifies the hardcoded re-encoding attempts into a single
      function in utils.py. This function is used to take either an unicode or
      str object and convert it to a ASCII-only str object which can be safely
      displayed and transmitted.
      
      We replace then the current manual re-encodings with this function. In
      mcpu we stop re-encoding the hooks output and instead we do it right at
      the hook generation in backend.py.
      
      This passes on my 'custom' lvs output with non-ASCII chars. But there
      are probably other places we will need to fix.
      
      Reviewed-by: ultrotter
      26f15862
    • Iustin Pop's avatar
      lvmstrap: allow removable devices too · d1687c6f
      Iustin Pop authored
      For testing or just in case a device is exported by a bad driver with
      the 'removable' flag set, this patch adds a flag to lvmstrap that allows
      it to use these devices too.
      
      Reviewed-by: ultrotter
      d1687c6f
    • Iustin Pop's avatar
      Documentation: update the gnt-os manpage · 216842d7
      Iustin Pop authored
      This patch updates the gnt-os man page and the common footer page for
      ganeti 2.0.
      
      Reviewed-by: ultrotter
      216842d7
    • Iustin Pop's avatar
      Small patch for handling errors in node add · bafc1d90
      Iustin Pop authored
      This small path hopefully fixes the handling of ssh verify errors in
      node add (note: untested).
      
      Reviewed-by: ultrotter
      bafc1d90
    • Iustin Pop's avatar
      ssh: more details on failure · a162cf5b
      Iustin Pop authored
      In case we fail without output from the ssh command, we should at least
      add the exit code or any other failure reason to the error message, and
      log it and the cmdline used to the node daemon log.
      
      Reviewed-by: imsnah
      a162cf5b
    • Guido Trotter's avatar
      Give a sane permission to the known_host file · a3f9f296
      Guido Trotter authored
      Reviewed-by: iustinp
      a3f9f296
  2. 02 Feb, 2009 3 commits
  3. 01 Feb, 2009 2 commits
  4. 29 Jan, 2009 18 commits
    • Guido Trotter's avatar
      KVM: advise about VNC support on GetShellCommand · 3be34f57
      Guido Trotter authored
      Reviewed-by: iustinp
      3be34f57
    • Guido Trotter's avatar
      KVM: enable VNC if a VNC_BIND_ADDRESS is defined · 8470c8db
      Guido Trotter authored
      We'll also enable a tablet usb device, as suggested by the kvm man page.
      
      Reviewed-by: iustinp
      8470c8db
    • Guido Trotter's avatar
      KVM: Allow the HV_VNC_BIND_ADDRESS parameter · 56fee73b
      Guido Trotter authored
      Reviewed-by: iustinp
      56fee73b
    • Guido Trotter's avatar
      LUAddNode: copy the vnc password file also for KVM · 2928f08d
      Guido Trotter authored
      Before we used to copy the file if xen-hvm was enabled on the cluster,
      no we'll do that if any enabled hypervisor is in the new HTS_USE_VNC
      group.
      
      Reviewed-by: iustinp
      2928f08d
    • Guido Trotter's avatar
      Add HT_KVM to HTS_REQ_PORT · fd4daa3a
      Guido Trotter authored
      HT_KVM doesn't technically require a port, but if it has one it can give
      vnc displays to instances.
      
      Reviewed-by: iustinp
      fd4daa3a
    • Guido Trotter's avatar
      KVM: make the kernel and initrd arguments optional · df5ab9f0
      Guido Trotter authored
      Under KVM we don't strictly need a kernel and initrd. If some are passed
      we'll use them, otherwise the guest OS will need to behave as fully
      native, and have its own boot loader and kernel. 
      The root_path hypervisor parameter becomes mandatory only if a kernel is
      specified.
      
      Reviewed-by: iustinp
      df5ab9f0
    • Guido Trotter's avatar
      KVM: add the HV_SERIAL_CONSOLE parameter · a2faf9ee
      Guido Trotter authored
      Up until now a KVM instance was forced to have a serial port.
      With this change this is no longer mandatory, by default we'll use one,
      but if the HV_SERIAL_CONSOLE parameter is set to False we'll do without.
      
      Reviewed-by: iustinp
      a2faf9ee
    • Guido Trotter's avatar
      GetShellCommand: get hvparams and beparams · 5431b2e4
      Guido Trotter authored
      Sometimes the hypervisor will use the instance hv and/or be parameters
      to determine the best shell command. This is not possible, though,
      currently, as the instance hv/beparams are not filled, so we have to
      pass the filled versions separately.
      
      Reviewed-by: iustinp
      5431b2e4
    • Iustin Pop's avatar
      Implement software release version checks too · e9ce0a64
      Iustin Pop authored
      Currently the LUVerifyCluster only reports the protocol version changes,
      not software ones. This is useful to know/monitor, so we add this too as
      a warning.
      
      Reviewed-by: ultrotter
      e9ce0a64
    • Iustin Pop's avatar
      gnt-instance list: accept input names · 5ffaa51d
      Iustin Pop authored
      Currently gnt-instance list will refuse to take arguments, and always
      return the full list of instances. This patch allows it to pass names to
      LUQueryInstances, so that we restrict the input to a given set of
      instances.
      
      Reviewed-by: ultrotter
      5ffaa51d
    • Iustin Pop's avatar
      LUQueryInstances: keep the given order of names · a7f5dc98
      Iustin Pop authored
      Currently LUQueryInstances keeps the ordering of instances only in some cases,
      and in others it will reorder the list. This patch fixes this by more clearly
      separating the various cases (names passed or not and locking or not locking),
      so that the output list is in the same order as always.
      
      Of course, this disables the sorting when arguments are passed.
      
      Reviewed-by: ultrotter
      a7f5dc98
    • Iustin Pop's avatar
      locking.LockSet: don't modify input arguments · 2a21bc88
      Iustin Pop authored
      Currently LockSet.acquire() sorts in place it's input argument if it's a
      list. This is not good, since callers might depend on a specific
      ordering of the input data, and this is a 'hidden' modification.
      
      We fix it by simply using a sorted copy, instead of sorting in place.
      
      Reviewed-by: ultrotter
      2a21bc88
    • Iustin Pop's avatar
      Re-wrap some lines to keep them under 80 chars · f12eadb3
      Iustin Pop authored
      This non-code change rewraps some lines in locking.py to keep them under
      80 chars.
      
      Reviewed-by: ultrotter
      f12eadb3
    • Iustin Pop's avatar
      Check that instance exists before confirm. queries · a76f0c4a
      Iustin Pop authored
      Currently we ask the user for confirmation, and only after (try to)
      remove, failover or migrate the instance. This doesn't work nicely if
      the instance doesn't exist, so we make a query for the instance before
      the prompt, which will throw an error in case it doesn't exist.
      
      Side-note: the way the query works today is not really nice. It would be
      better if we could query explicitly for a missing instance name, so that
      this is done cleaner (explicit check) instead of side-effect (throw
      exception). We do add code for this explicit check, except that today it
      won't be used actually.
      
      Reviewed-by: ultrotter
      a76f0c4a
    • Oleksiy Mishchenko's avatar
      RAPI: tag work · 18cb43a2
      Oleksiy Mishchenko authored
      Generalize tag work for instances/nodes/cluster tag management.
      
      Reviewed-by: iustinp
      18cb43a2
    • Oleksiy Mishchenko's avatar
      RAPI: rlib1 removal · 4e5a68f8
      Oleksiy Mishchenko authored
      The resources we still need moved to rlib2.
      
      Reviewed-by: iustinp
      4e5a68f8
    • Oleksiy Mishchenko's avatar
      RAPI: Implement /2 resource · fc72a3a3
      Oleksiy Mishchenko authored
      Reviewed-by: iustinp
      fc72a3a3
    • Oleksiy Mishchenko's avatar
      RAPI: Deprecate version Rapi version1 · dc824c9f
      Oleksiy Mishchenko authored
      It is impossible to keep backward compatibility due to
      significant changes in the Ganeti core.
      
      Reviewed-by: iustinp
      dc824c9f
  5. 28 Jan, 2009 3 commits
  6. 27 Jan, 2009 8 commits
    • Guido Trotter's avatar
      Xen: use utils.WriteFile for the instance configs · 73cd67f4
      Guido Trotter authored
      Also raise HypervisorError rather than OpExecError.
      
      Reviewed-by: iustinp
      73cd67f4
    • Guido Trotter's avatar
      Xen: use utils.Readfile to read the VNC password · 78f66a17
      Guido Trotter authored
      Also raise HypervisorError rather than OpExecError.
      
      Reviewed-by: iustinp
      78f66a17
    • Iustin Pop's avatar
      Implement disk verify checks in config verify · 332d0e37
      Iustin Pop authored
      This patch adds a simple check that the 'mode' attribute of top-level disks is
      correct. It does not recurse over children.
      
      The framework could be extended with other checks in the future.
      
      Reviewed-by: imsnah
      332d0e37
    • Iustin Pop's avatar
      Fix the mode attribute of newly-created disks · 6ec66eae
      Iustin Pop authored
      Currently, only the LUSetInstanceParams correctly sets up the mode
      attribute via a manual operation. We remove this and instead do the
      correct setting in the generic _GenerateDiskTemplate function, so that
      we set the mode correctly for all disk creations.
      
      Reviewed-by: ultrotter
      6ec66eae
    • Iustin Pop's avatar
      Rework the multi-instance gnt commands · 479636a3
      Iustin Pop authored
      This patch changes the multi-instance gnt-* commands (gnt-instance
      start/stop, gnt-node evacuate/failover) such that the individual
      operations are submitted in parallel, ideally improving the speed of the
      execution.
      
      The patch does this by abstracting the job set functionality into a new
      class in cli.py, that takes care of the job submit, job poll and error
      handling.
      
      Reviewed-by: ultrotter
      479636a3
    • Iustin Pop's avatar
      Fix single-job archiving (gnt-job archive) · 5278185a
      Iustin Pop authored
      This is a simply typo from the conversion to multi-job archiving.
      
      Reviewed-by: imsnah
      5278185a
    • Guido Trotter's avatar
      KVM and Xen: add the HV_ROOT_PATH parameter · 074ca009
      Guido Trotter authored
      This parameter allows a different path to be passed to the instance
      kernel. The new parameter is mandatory, and by default has the value of
      the old hardcoded value for both kvm and xen.
      
      Beta1 clusters will need to have this parameter added for their
      instances to be able to boot.
      
      Reviewed-by: iustinp
      074ca009
    • Guido Trotter's avatar
      KVM: implement GetShellCommandForConsole · 637ce7f9
      Guido Trotter authored
      This is a class method, because it calls _InstanceSerial, which is
      another class method. The patch changes it to classmethod for all the
      hypervisor classes.
      
      Reviewed-by: iustinp
      637ce7f9