Skip to content
Snippets Groups Projects
  1. Jul 08, 2009
    • Guido Trotter's avatar
      Extend call_node_start_master rpc with no_voting · 3583908a
      Guido Trotter authored
      
      When the parameter is set to True and start_daemons is also True,
      ganeti-masterd will be started with the new --no-voting --yes-do-it
      options.
      
      This new option is set to True only on masterfailover, when no_voting is
      used. This changed the behavior from 2.0, where we didn't start the
      master daemon at all, when this option was used.
      
      The manpage is also updated to remove the 2.0 only change.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      3583908a
    • Guido Trotter's avatar
      Merge branch 'next' into branch-2.1 · 2f7140ba
      Guido Trotter authored
      
      * next:
        Create a new --no-voting option for masterfailover
        ganeti-masterd: allow non-interactive --no-voting
        Fix pylint warnings
        Add custom pylintrc
        bootstrap: Don't leak file descriptor when generating SSL certificate
        Fix problem with EAGAIN on socket connection in clients
        Fix some typos
        Increase maximum accepted size for a DRBD meta dev
        Cleanup config data when draining nodes
        Fix node readd issues
        backend.DemoteFromMC: don't fail for missing files
        Allow GetMasterCandidateStats to ignore some nodes
        Fix error message for extra files on non MC nodes
      
      Conflicts:
      
      	lib/backend.py
                Most of the conflicts where in the new rpcs VS pylint fixes
                and usually the new rpcs fixed the pylint problems as well
      	lib/bootstrap.py
                Small conflict between masterfailover --no-voting and new rpcs
      	lib/cmdlib.py
                Net parameters conflicted here, kept that version
      	lib/objects.py
                Same problem fixed in two different ways. 'next' version kept
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      2f7140ba
    • Guido Trotter's avatar
      Merge branch 'master' into next · fba15943
      Guido Trotter authored
      * master:
        Create a new --no-voting option for masterfailover
        ganeti-masterd: allow non-interactive --no-voting
      fba15943
    • Guido Trotter's avatar
      Create a new --no-voting option for masterfailover · 8e2524c3
      Guido Trotter authored
      
      This allows failing over in certain corner cases, such as a 2 node
      cluster with one node down. The man page is also updated to document
      this dangerous option and how to recover from this situation.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      8e2524c3
    • Guido Trotter's avatar
      ganeti-masterd: allow non-interactive --no-voting · 5e96d216
      Guido Trotter authored
      
      This will be used by ganeti-noded to start ganeti-masterd in a
      --no-voting masterfailover.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      5e96d216
  2. Jul 07, 2009
  3. Jul 01, 2009
  4. Jun 30, 2009
    • Iustin Pop's avatar
      Cleanup config data when draining nodes · dec0d9da
      Iustin Pop authored
      
      Currently, when draining nodes we reset their master candidate flag, but
      we don't instruct them to demote themselves. This leads to “ERROR: file
      '/var/lib/ganeti/config.data' should not exist on non master candidates
      (and the file is outdated)”.
      
      This patch simply adds a call to node_demote_from_mc in this case.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      dec0d9da
    • Iustin Pop's avatar
      Fix node readd issues · a8ae3eb5
      Iustin Pop authored
      
      This patch fixes a few node readd issues.
      
      Currently, the node readd consists of two opcodes:
        - OpSetNodeParms, which resets the offline/drained flags
        - OpAddNode (with readd=True), which reconfigures the node
      
      The problem is that between these two, the configuration is inconsistent
      for certain cluster configurations. Thus, this patch removes the first
      opcode and modified the LUAddNode to deal with this case too.
      
      The patch also modifies the computation of the intended master_candidate
      status, and actually sets the readded node to master candidate if
      needed. Previously, we didn't modify the existing node at all.
      
      Finally, the patch modifies the bottom of the Exec() function for this
      LU to:
        - trigger a node update, which in turn redistributes the ssconf files
          to all nodes (and thus the new node too)
        - if the new node is not a master candidate, then call the
          node_demote_from_mc RPC so that old master files are cleared
      
      My testing shows this behaves correctly for various cases.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
      a8ae3eb5
    • Iustin Pop's avatar
      backend.DemoteFromMC: don't fail for missing files · 9a5cb537
      Iustin Pop authored
      
      If the config file is missing when the DemoteFromMC() function is
      called, it will raise a ProgrammerError. Instead of changing the
      utils.CreateBackup() file which is called from multiple places, for now
      we only change the DemoteFromMC() function to not call it if the file is
      not existing (we rely on the master to prevent race conditions here).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarOlivier Tharan <olive@google.com>
      9a5cb537
    • Iustin Pop's avatar
      Allow GetMasterCandidateStats to ignore some nodes · 23f06b2b
      Iustin Pop authored
      
      This patch modifies ConfigWriter.GetMasterCandidateStats to allow it to
      ignore some nodes in the calculation, so that we can use it to predict
      cluster state without some nodes (which we know we will modify, and thus
      we should not rely on their state).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarOlivier Tharan <olive@google.com>
      23f06b2b
    • Iustin Pop's avatar
      Fix error message for extra files on non MC nodes · e631cb25
      Iustin Pop authored
      
      Currently the message for extraneous files on non master candidates is
      confusing, to say the least. This makes it hopefully more clear.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarOlivier Tharan <olive@google.com>
      e631cb25
  5. Jun 29, 2009
  6. Jun 26, 2009
  7. Jun 24, 2009
  8. Jun 23, 2009
  9. Jun 19, 2009
  10. Jun 18, 2009
Loading