Skip to content
Snippets Groups Projects
  1. Sep 25, 2009
    • Iustin Pop's avatar
      Automatically cleanup _temporary_ids at save · 8db31d6b
      Iustin Pop authored
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      (cherry picked from commit 34d657ba)
      8db31d6b
    • Iustin Pop's avatar
      Separate the computation of all config IDs · 26b316d0
      Iustin Pop authored
      
      We will need this in another place, so we abstract the 'compute all
      current IDs' functionality into a separate function. We also change the
      name of the _ComputeAllLVs to _AllLVs to match the other _All*s
      functions.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      (cherry picked from commit 34e54ebc)
      26b316d0
    • Iustin Pop's avatar
      Change config upgrade to be explicit · 2d90608c
      Iustin Pop authored
      
      Currently the config upgrade is done at each object instantiation, that
      means that ganeti-noded will run UpgradeConfig on all objects received
      remotely (instances, disks, nics). This is not so good, so this patch
      changes it so that only the ConfigWriter runs this method at
      configuration load time.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      (cherry picked from commit 90d726a8)
      2d90608c
    • Iustin Pop's avatar
      Merge commit 'origin/next' · 59b76636
      Iustin Pop authored
      * commit 'origin/next': (74 commits)
        Fix gnt-node modify online help
        Fix gnt-job info entry in gnt-job(8)
        locking: Don't swallow exceptions
        Add check for duplicate MACs in instance add
        scripts/gnt-node: fix a help string
        Optimise multi-job submit
        Extend gnt-debug with more debugging options
        Return cluster tags from LUQueryClusterInfo
        Add script to clean archived jobs after 21 days
        rapi: export more static node information
        Pass the correct signal to handlers
        cli: Use ToStdout/ToStderr instead of print
        Fix small typo in gnt-node
        Simplify handling of boolean args in rapi
        Fix checks in LUSetNodeParms for the master node
        Improve the example startup script
        Fix insserv dependencies
        Fix a typo in InitCluster
        Ignore results from drained nodes in iallocator
        Ship the ethers hook
        ...
      59b76636
  2. Sep 14, 2009
  3. Sep 11, 2009
  4. Sep 08, 2009
  5. Sep 07, 2009
    • Guido Trotter's avatar
      scripts/gnt-node: fix a help string · 862b1b2b
      Guido Trotter authored
      
      gnt-node modify says it wants an "<instance>". Changing it to
      "<node_name>" as for the other commands.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      862b1b2b
    • Iustin Pop's avatar
      Optimise multi-job submit · 009e73d0
      Iustin Pop authored
      
      Currently, on multi-job submits we simply iterate over the
      single-job-submit function. This means we grab a new serial, write and
      replicate (and wait for the remote nodes to ack) the serial file, and
      only then create the job file; this is repeated N times, once for each
      job.
      
      Since job identifiers are ‘cheap’, it's simpler to simply grab at the
      start a block of new IDs, write and replicate the serial count file a
      single time, and then proceed with the jobs as before. This is a cheap
      change that reduces I/O and reduces slightly the CPU consumption of the
      master daemon: submit time seems to be cut in half for big batches of
      jobs and the masterd cpu time by (I can't get consistent numbers)
      between 15%-50%.
      
      Note that this doesn't change anything for single-job submits and most
      probably for < 5 job submits either.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      009e73d0
    • Iustin Pop's avatar
      Extend gnt-debug with more debugging options · 9d95c3af
      Iustin Pop authored
      
      This patch extends gnt-debug to be able to submit multiple copies of the
      input jobs and job contents, in order to simplify testing. It also adds
      a timing mode, and splits the execution into separate submit and
      execution stages (for timing purposes).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      9d95c3af
  6. Aug 31, 2009
  7. Aug 28, 2009
  8. Aug 25, 2009
  9. Aug 21, 2009
  10. Aug 20, 2009
  11. Aug 19, 2009
  12. Aug 17, 2009
  13. Aug 14, 2009
  14. Aug 13, 2009
    • Iustin Pop's avatar
      Improve the example startup script · 82cd7760
      Iustin Pop authored
      
      Currently, the supplised script has two issues:
        - it doesn't use start-stop-daemon --start correctly, leading to
          messages like "ganeti.errors.GenericError:
          /var/run/ganeti/ganeti-rapi.pid contains a live process" in the logs
        - it doesn't allow start/stop/restart of a single daemon, which leads
          to manual launch, which is bad because we don't reuse the settings
          from the defaults file
      
      For the first one, we change from ‘--exec …’ to ‘--startas …’, which is
      the actual option used for start, whereas exec is a test (that also
      supplies the default to startas). We also add ‘--oknodo’ as per recent
      Debian policy changes.
      
      For the second, we do a bigger change; we basically remove the full-path
      and pid variables, and construct these two from the daemon name. We then
      check if we are given a daemon name (in which case we only do that)
      otherwise we do the requested action on all daemons.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      82cd7760
    • Iustin Pop's avatar
      Fix insserv dependencies · a02b4427
      Iustin Pop authored
      
      (import of a Debian patch)
      
      This patch removes xend from the list of dependencies.
      
      Ganeti doesn't need xend running to startup, it will only need it later
      (and only if xen is used as virtualisation technology). It also removes
      'Xen' from the description in the init script.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      a02b4427
    • Guido Trotter's avatar
      Fix a typo in InitCluster · bec0522b
      Guido Trotter authored
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      (cherry picked from commit 022c3a0b)
      bec0522b
  15. Aug 12, 2009
  16. Aug 11, 2009
  17. Aug 10, 2009
  18. Aug 07, 2009
    • Guido Trotter's avatar
      Merge branch 'master' into next · 8486ffc0
      Guido Trotter authored
      
      * master:
        Update NEWS and version for 2.0.3 release
        devel/upload: revert rsync -p
        export: add meaningful exit code
        Fix detecting of errors in export
        Implement gnt-cluster check-disk-sizes
        rpc: add rpc call for getting disk size
        bdev: Add function for reading actual disk size
        Implement --ignore-size in activate-disks
        Add ignore size support in _AssembleInstanceDisks
        Add a objects.Disk.UnsetSize() method
        bdev: allow ignoring of size in Assemble()
        Fix instance import net option
        Simplify the devel/upload script
        Add a Copy method to object.ConfigObject
        Extend call_node_start_master rpc with no_voting
      
      Conflicts:
      
        daemons/ganeti-masterd
          s/SimpleConfigReader/SimpleStore/ VS start-master no-voting
          (kept both)
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      8486ffc0
    • Iustin Pop's avatar
      v2.0.3
      9d725d41
  19. Aug 06, 2009
  20. Aug 05, 2009
Loading