Skip to content
Snippets Groups Projects
  1. Apr 16, 2008
    • Iustin Pop's avatar
      A pure whitespace change for style compliance · 35a0d128
      Iustin Pop authored
      Reviewed-by: amishchenko
      35a0d128
    • Iustin Pop's avatar
      IAllocator part 3: LUCreateInstance changes · 538475ca
      Iustin Pop authored
      This (final) patch allows the instance's nodes to be selected
      automatically based on the passed allocator algorithm.
      
      The patch changes the pnode opcode parameter from required to optional,
      now either the pnode or the iallocator must be passed.
      
      A possible improvement could be to organize all the _IAllocator
      functions into a separate class, but that can come later and the current
      version is functionally ok.
      
      Reviewed-by: ultrotter
      538475ca
    • Iustin Pop's avatar
      Allocator framework, 1st part: allocator input generation · d61df03e
      Iustin Pop authored
      In preparation for the introduction of automatic instance allocator,
      this patch adds an allocator simulation opcode, that based on the input
      parameters, will return either the input message to the allocator
      (implemented) or the result of the allocator run (not yet implemented).
      
      This allows algorithm tests against simulated allocations and the
      current cluster state.
      
      The patch adds the following:
        - a function that generates the generic cluster information for the
          allocator
        - a function that generates the 'new instance' information
        - a function that generates the 'replace_secondary' information
      
      These three functions will be used by the allocator framework later to
      generate the actual information for the external algorithms. Currently
      we just return the json-serialized text.
      
      Reviewed-by: imsnah
      d61df03e
  2. Apr 10, 2008
    • Guido Trotter's avatar
      Verify: make skipping checks possible · e54c4c5e
      Guido Trotter authored
      Add a general way to skip some checks at cluster-verify time and make the N+1
      memory redundancy check optional.
      
      Reviewed-by: iustinp
      
      e54c4c5e
    • Iustin Pop's avatar
      Rework the results of OpDiagnoseOS opcode · 1f9430d6
      Iustin Pop authored
      Currently, the opcode DiagnoseOS is the only opcode that return a
      structure of objects.OS (which is a custom class, and not a simple
      python object) and furthermore all the processing of OS validity across
      nodes is left to the clients of this opcode.
      
      It would be more logical to have this opcode be similar to list
      instances/nodes, in the sense that:
        - it should return a table of results
        - the fields in the table should be selectable
      
      This patch does the above. The possible fields are:
        - name (os name)
        - valid (bool representing validity across all nodes)
        - node_status, which is a complicated structure required for ‘gnt-os
          diagnose’
      
      With this patch, gnt-os list becomes a very simple iteration over the
      list of results, filtering out non-valid ones. gnt-os diagnose is still
      complicated, but no more than before.
      
      The burnin tool has also been modified to work with the modified
      results, and is simpler because of this (it only needs to know if an OS
      is valid or not, not the per-node details).
      
      Reviewed-by: imsnah
      1f9430d6
    • Iustin Pop's avatar
      Add generic opcode submit functionality to gnt-debug · f1c66d13
      Iustin Pop authored
      This patch enhances gnt-debug to be able to submit any opcodes. The
      opcodes are input from a json file containing a list of opcodes.
      
      This allows enhanced testing of opcodes until the other gnt-* commands
      are converted to use the master daemon.
      
      Reviewed-by: ultrotter
      f1c66d13
    • Iustin Pop's avatar
      Add per-opcode results to job processing · 35049ff2
      Iustin Pop authored
      This patch changes the definition of a job and introduces per-opcode
      results.
      
      First, the result and status fields of a job are condensed into a single
      'status' attribute. Then, we introduce an opcode status and one result
      list, that allow jobs to return values.
      
      The gnt-job script is also modified to allow these new fields to be
      queried.
      
      Note that the patch changes the opcode field to op_list, and it changes
      its return value from string to a list of (serialized) opcodes.
      
      Reviewed-by: ultrotter
      35049ff2
  3. Apr 08, 2008
  4. Apr 04, 2008
    • Iustin Pop's avatar
      Add a simple gnt-job script · 7a1ecaed
      Iustin Pop authored
      This patch adds a very basic gnt-job script that allows job querying.
      This goes on top of the previous master daemon patches.
      
      Currently, because of the not-changed cmd lock, you can't query the jobs
      as long as a job is running - you have to rm the cmd lock and then you
      can query the jobs.
      
      Reviewed-by: imsnah
      7a1ecaed
  5. Apr 01, 2008
    • Guido Trotter's avatar
      Fix gnt-instance failover help message · 99e2be3b
      Guido Trotter authored
      The message used to misleadingly say that failover just works with remote_raid1
      instances, while of course it works for drbd as well. Since remote_raid1 has
      been removed from the main development branch only drbd will be shown.  Thanks
      to Jesus Climent who spotted the bug.
      
      Reviewed-by: imsnah
      99e2be3b
    • Iustin Pop's avatar
      Add a gnt-debug tool · fd3ee040
      Iustin Pop authored
      This patch adds a script which submits a job consisting of the
      OpTestDelay opcode. This can be helpful for debugging and can be
      extended to execute other 'debug'-like tasks.
      
      Reviewed-by: ultrotter
      fd3ee040
  6. Mar 31, 2008
  7. Mar 27, 2008
  8. Mar 25, 2008
  9. Mar 19, 2008
  10. Mar 06, 2008
    • Guido Trotter's avatar
      Fix gnt-instance replace-disks online help · 457697bc
      Guido Trotter authored
      The "quick" online help just reported the option to change secondary node. Add
      the ones to just replace the disk locally on-primary or on-secondary. It is of
      course impossible to espress in one line everything needed to use this command,
      but at least now the most common options are spelled out immediately.
      
      Reviewed-by: iustinp, imsnah
      457697bc
  11. Mar 05, 2008
  12. Feb 28, 2008
  13. Feb 20, 2008
  14. Feb 18, 2008
  15. Feb 14, 2008
    • Iustin Pop's avatar
      Modify the default output of gnt-instance list · d8052456
      Iustin Pop authored
      This patch adds a new field available for selection in gnt-instance list
      names "status" which represents the combined value of "admin_state" and
      "oper_state". Since this is much easier to parse (e.g. gnt-instance list
      |grep ERROR), we also modify the default field list to use this instead
      of the admin/oper state fields.
      
      Reviewed-by: imsnah
      d8052456
  16. Jan 30, 2008
  17. Jan 28, 2008
    • Alexander Schreiber's avatar
      tiny typo fix · f2e9e0e8
      Alexander Schreiber authored
      Reviewed-by: iustinp
      
      f2e9e0e8
    • Iustin Pop's avatar
      Improve the documentation of query output fields · d8a4b51d
      Iustin Pop authored
      The gnt-node and gnt-instance list commands have a customizable list of
      output fields, but the list is not up to date (in the man page) and not
      easily understandable from the ‘--help’ output.
      
      This patch updates the man pages and adds the available fields and
      default fields in the ‘--help’ output, as part of the description.
      
      Example:
      Usage
      =====
        gnt-node list
      
      Lists the nodes in the cluster. The available fields are (see the man page for
      details): name, pinst_cnt, pinst_list, sinst_cnt, sinst_list, pip, sip,
      dtotal, dfree, mtotal, mnode, mfree, bootid. The default field list is (in
      order): name, dtotal, dfree, mtotal, mnode, mfree, pinst_cnt, sinst_cnt.
      
      Reviewed-by: imsnah,ultrotter
      d8a4b51d
    • Iustin Pop's avatar
      Add option for the number of VCPUs in instance listing · d6d415e8
      Iustin Pop authored
      Reviewed-by: ultrotter
      d6d415e8
  18. Jan 27, 2008
  19. Jan 21, 2008
    • Guido Trotter's avatar
      Add a few aliases for startup/shutdown · 536fda25
      Guido Trotter authored
      These aliases are widely used to think of these operations and save some typing
      too. Even though there is some thought to make start/stop the default operation
      name I don't think this should happen for 1.2, for now adding it as an alias is
      fine.
      
      Reviewed-by: iustinp
      
      536fda25
    • Guido Trotter's avatar
      Add the first command alias · dbfd89dd
      Guido Trotter authored
      Alias activate_block_devs to activate-disks, for ganeti 1.1 compatibility.
      
      Reviewed-by: iustinp
      
      dbfd89dd
    • Guido Trotter's avatar
      Check that we have a valid export list · 461f0538
      Guido Trotter authored
      Before iterating over the list of exports present on a node, check that what
      ganeti returned is actually a list. This solves the case when one of the nodes
      is down, and an error value is returned.
      
      This fixes issue 21
      
      Reviewed-by: imsnah
      461f0538
  20. Jan 16, 2008
  21. Jan 14, 2008
    • Guido Trotter's avatar
      Add mac="auto" at import time · c19dfc03
      Guido Trotter authored
      Mac is now a mandatory option for OpCreateInstance. Add it when we call this
      opcode at import time too. This is a quick fix for the code, but probably more
      work needs to be done to integrate mac addresses with the import/export
      functionality in a nice way.
      
      Reviewed-by: iustinp
      c19dfc03
  22. Jan 11, 2008
  23. Jan 10, 2008
    • Guido Trotter's avatar
      Fix gnt-backup import -s option · d5687e89
      Guido Trotter authored
      Update gnt-backup import to be in line with gnt-instance add about the os disk
      size option. Thanks to Gunnar Wagenknecht for spotting the issue.
      
      Reviewed-by: imsnah
      d5687e89
  24. Jan 08, 2008
Loading