all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 03543167f6378f431114cd28d55d4b61a88cbd0a 1071 bytes (raw)
name: gnu/packages/patches/ganeti-openvswitch-may-exist.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
19
20
21
22
23
24
25
 
It is possible that the switch is already configured by external tools.
Do not error out when that is the case.

Submitted upstream: <https://github.com/ganeti/ganeti/pull/1495>.

diff --git a/lib/backend.py b/lib/backend.py
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -5865,14 +5865,14 @@ def ConfigureOVS(ovs_name, ovs_link):
 
   """
   # Initialize the OpenvSwitch
-  result = utils.RunCmd(["ovs-vsctl", "add-br", ovs_name])
+  result = utils.RunCmd(["ovs-vsctl", "--may-exist", "add-br", ovs_name])
   if result.failed:
     _Fail("Failed to create openvswitch. Script return value: %s, output: '%s'"
           % (result.exit_code, result.output), log=True)
 
   # And connect it to a physical interface, if given
   if ovs_link:
-    result = utils.RunCmd(["ovs-vsctl", "add-port", ovs_name, ovs_link])
+    result = utils.RunCmd(["ovs-vsctl", "--may-exist", "add-port", ovs_name, ovs_link])
     if result.failed:
       _Fail("Failed to connect openvswitch to  interface %s. Script return"
             " value: %s, output: '%s'" % (ovs_link, result.exit_code,

debug log:

solving 03543167f6 ...
found 03543167f6 in https://yhetil.org/guix/20200708101118.3579-1-marius@gnu.org/

applying [1/1] https://yhetil.org/guix/20200708101118.3579-1-marius@gnu.org/
diff --git a/gnu/packages/patches/ganeti-openvswitch-may-exist.patch b/gnu/packages/patches/ganeti-openvswitch-may-exist.patch
new file mode 100644
index 0000000000..03543167f6

1:16: trailing whitespace.
 
1:24: trailing whitespace.
 
Checking patch gnu/packages/patches/ganeti-openvswitch-may-exist.patch...
Applied patch gnu/packages/patches/ganeti-openvswitch-may-exist.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 03543167f6378f431114cd28d55d4b61a88cbd0a	gnu/packages/patches/ganeti-openvswitch-may-exist.patch

(*) 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.