unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 36a7918998cb570c70ec6a978fbc9663d3e86a9d 879 bytes (raw)
name: packages/patches/ganeti-shepherd-master-failover.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
By default, master-failover will call "herd start ganeti-wconfd" with
extra arguments such as --force-node.  That does not work with the
Shepherd, so the Guix service has a "force-start" action for this purpose.

diff --git a/lib/bootstrap.py b/lib/bootstrap.py
--- a/lib/bootstrap.py
+++ b/lib/bootstrap.py
@@ -1011,9 +1011,7 @@ def MasterFailover(no_voting=False):
 
   try:
     # Forcefully start WConfd so that we can access the configuration
-    result = utils.RunCmd([pathutils.DAEMON_UTIL,
-                           "start", constants.WCONFD, "--force-node",
-                           "--no-voting", "--yes-do-it"])
+    result = utils.RunCmd(["herd", "force-start", constants.WCONFD])
     if result.failed:
       raise errors.OpPrereqError("Could not start the configuration daemon,"
                                  " command %s had exitcode %s and error %s" %

debug log:

solving 36a7918998cb570c70ec6a978fbc9663d3e86a9d ...
found 36a7918998cb570c70ec6a978fbc9663d3e86a9d in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).