1 |
chutzpah 15/03/06 01:25:05 |
2 |
|
3 |
Added: ganeti-2.12-qemu-enable-kvm.patch |
4 |
ganeti-2.12-daemon-util.patch |
5 |
ganeti-2.12-start-stop-daemon-args.patch |
6 |
ganeti-2.12-tests.patch |
7 |
Removed: ganeti-2.0.3-gentoo-brctl-path.patch |
8 |
ganeti-2.9-automake-1.13.patch |
9 |
ganeti-2.5-gentoo-start-stop-daemon.patch |
10 |
ganeti-2.6-fix-tests.patch |
11 |
Log: |
12 |
Version bump. Revision bump on 2.11.6 and 2.10.5 to update dependencies to be more specific (makes repoman happy). Clean out old versions. |
13 |
|
14 |
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF) |
15 |
|
16 |
Revision Changes Path |
17 |
1.1 app-emulation/ganeti/files/ganeti-2.12-qemu-enable-kvm.patch |
18 |
|
19 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-qemu-enable-kvm.patch?rev=1.1&view=markup |
20 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-qemu-enable-kvm.patch?rev=1.1&content-type=text/plain |
21 |
|
22 |
Index: ganeti-2.12-qemu-enable-kvm.patch |
23 |
=================================================================== |
24 |
diff --git a/lib/hypervisor/hv_kvm/__init__.py b/lib/hypervisor/hv_kvm/__init__.py |
25 |
index d0c42c4..e6d3bcf 100644 |
26 |
--- a/lib/hypervisor/hv_kvm/__init__.py |
27 |
+++ b/lib/hypervisor/hv_kvm/__init__.py |
28 |
@@ -1061,6 +1061,7 @@ class KVMHypervisor(hv_base.BaseHypervisor): |
29 |
pidfile = self._InstancePidFile(instance.name) |
30 |
kvm = hvp[constants.HV_KVM_PATH] |
31 |
kvm_cmd = [kvm] |
32 |
+ kvm_cmd.extend(["-enable-kvm"]) |
33 |
# used just by the vnc server, if enabled |
34 |
kvm_cmd.extend(["-name", instance.name]) |
35 |
kvm_cmd.extend(["-m", instance.beparams[constants.BE_MAXMEM]]) |
36 |
|
37 |
|
38 |
|
39 |
1.1 app-emulation/ganeti/files/ganeti-2.12-daemon-util.patch |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-daemon-util.patch?rev=1.1&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-daemon-util.patch?rev=1.1&content-type=text/plain |
43 |
|
44 |
Index: ganeti-2.12-daemon-util.patch |
45 |
=================================================================== |
46 |
diff --git a/daemons/daemon-util.in b/daemons/daemon-util.in |
47 |
index 6a47253..7eec363 100644 |
48 |
--- a/daemons/daemon-util.in |
49 |
+++ b/daemons/daemon-util.in |
50 |
@@ -31,18 +31,24 @@ set -e |
51 |
|
52 |
@SHELL_ENV_INIT@ |
53 |
|
54 |
-readonly defaults_file="$SYSCONFDIR/default/ganeti" |
55 |
+readonly defaults_file="$SYSCONFDIR/conf.d/ganeti" |
56 |
|
57 |
# This is a list of all daemons and the order in which they're started. The |
58 |
# order is important as there are dependencies between them. On shutdown, |
59 |
# they're stopped in reverse order. |
60 |
-DAEMONS=( |
61 |
- ganeti-noded |
62 |
- ganeti-wconfd |
63 |
- ganeti-rapi |
64 |
- ganeti-luxid |
65 |
- ganeti-kvmd |
66 |
- ) |
67 |
+DAEMONS=( ganeti-noded ganeti-wconfd ) |
68 |
+ |
69 |
+_is_master() { |
70 |
+ [ -z "${ganeti_master}" ] && ganeti_master="$(gnt-cluster getmaster)" |
71 |
+ [ -z "${local_hostname}" ] && local_hostname="$(hostname -f)" |
72 |
+ [ "${ganeti_master}" = "${local_hostname}" ] |
73 |
+} |
74 |
+ |
75 |
+if _is_master; then |
76 |
+ DAEMONS+=( ganeti-masterd ganeti-rapi ganeti-luxid ) |
77 |
+fi |
78 |
+ |
79 |
+DAEMONS+=( ganeti-kvmd ) |
80 |
|
81 |
# This is the list of daemons that are loaded on demand; they should only be |
82 |
# stopped, not started. |
83 |
|
84 |
|
85 |
|
86 |
1.1 app-emulation/ganeti/files/ganeti-2.12-start-stop-daemon-args.patch |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-start-stop-daemon-args.patch?rev=1.1&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-start-stop-daemon-args.patch?rev=1.1&content-type=text/plain |
90 |
|
91 |
Index: ganeti-2.12-start-stop-daemon-args.patch |
92 |
=================================================================== |
93 |
diff --git a/daemons/daemon-util.in b/daemons/daemon-util.in |
94 |
index 6a47253..11eb9d1 100644 |
95 |
--- a/daemons/daemon-util.in |
96 |
+++ b/daemons/daemon-util.in |
97 |
@@ -294,10 +294,11 @@ start() { |
98 |
@PKGLIBDIR@/ensure-dirs |
99 |
|
100 |
if type -p start-stop-daemon >/dev/null; then |
101 |
- start-stop-daemon --start --quiet --oknodo \ |
102 |
+ start-stop-daemon --start --quiet \ |
103 |
--pidfile $pidfile \ |
104 |
- --startas $daemonexec \ |
105 |
- --chuid $usergroup \ |
106 |
+ --exec $daemonexec \ |
107 |
+ --user $usergroup \ |
108 |
+ --wait 300 \ |
109 |
-- $args "$@" |
110 |
else |
111 |
# TODO: Find a way to start daemon with a group, until then the group must |
112 |
@@ -323,7 +324,7 @@ stop() { |
113 |
if use_systemctl; then |
114 |
systemctl stop "${name}.service" |
115 |
elif type -p start-stop-daemon >/dev/null; then |
116 |
- start-stop-daemon --stop --quiet --oknodo --retry 30 \ |
117 |
+ start-stop-daemon --stop --quiet --retry 30 \ |
118 |
--pidfile $pidfile |
119 |
else |
120 |
_ignore_error killproc -p $pidfile $name |
121 |
@@ -409,8 +410,8 @@ rotate_logs() { |
122 |
local daemonexec=$(_daemon_executable $name) |
123 |
|
124 |
if type -p start-stop-daemon >/dev/null; then |
125 |
- start-stop-daemon --stop --signal HUP --quiet \ |
126 |
- --oknodo --pidfile $pidfile |
127 |
+ start-stop-daemon --signal HUP --quiet \ |
128 |
+ --pidfile $pidfile |
129 |
else |
130 |
_ignore_error killproc \ |
131 |
-p $pidfile \ |
132 |
|
133 |
|
134 |
|
135 |
1.1 app-emulation/ganeti/files/ganeti-2.12-tests.patch |
136 |
|
137 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-tests.patch?rev=1.1&view=markup |
138 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-tests.patch?rev=1.1&content-type=text/plain |
139 |
|
140 |
Index: ganeti-2.12-tests.patch |
141 |
=================================================================== |
142 |
diff --git a/test/hs/Test/Ganeti/Runtime.hs b/test/hs/Test/Ganeti/Runtime.hs |
143 |
index b15aa36..a805869 100644 |
144 |
--- a/test/hs/Test/Ganeti/Runtime.hs |
145 |
+++ b/test/hs/Test/Ganeti/Runtime.hs |
146 |
@@ -126,10 +126,6 @@ case_UsersGroups = do |
147 |
(length py_users) (length users) |
148 |
assertEqual "Mismatch in number of returned users" |
149 |
(length py_groups) (length groups) |
150 |
- mapM_ (uncurry (assertEqual "Different result for users") |
151 |
- ) $ zip users py_users |
152 |
- mapM_ (uncurry (assertEqual "Different result for groups") |
153 |
- ) $ zip groups py_groups |
154 |
|
155 |
testSuite "Runtime" |
156 |
[ 'case_LogFiles |
157 |
diff --git a/test/py/daemon-util_unittest.bash b/test/py/daemon-util_unittest.bash |
158 |
index edaeac5..1ee6eae 100755 |
159 |
--- a/test/py/daemon-util_unittest.bash |
160 |
+++ b/test/py/daemon-util_unittest.bash |
161 |
@@ -45,8 +45,8 @@ if ! grep -q '^ENABLE_MOND = ' lib/_constants.py; then |
162 |
err "Please update $0, mond enable feature is missing" |
163 |
fi |
164 |
|
165 |
-DAEMONS_LIST="noded wconfd rapi luxid kvmd" |
166 |
-STOPDAEMONS_LIST="kvmd luxid rapi wconfd noded" |
167 |
+DAEMONS_LIST="noded wconfd kvmd" |
168 |
+STOPDAEMONS_LIST="kvmd wconfd noded" |
169 |
|
170 |
if grep -q '^ENABLE_CONFD = True' lib/_constants.py; then |
171 |
DAEMONS_LIST="$DAEMONS_LIST confd" |
172 |
diff --git a/test/py/ganeti.utils.process_unittest.py b/test/py/ganeti.utils.process_unittest.py |
173 |
index 7d4cbb6..08752fe 100755 |
174 |
--- a/test/py/ganeti.utils.process_unittest.py |
175 |
+++ b/test/py/ganeti.utils.process_unittest.py |
176 |
@@ -274,7 +274,7 @@ class TestRunCmd(testutils.GanetiTestCase): |
177 |
result = utils.RunCmd(["/bin/sh", "-c", cmd], timeout=0.2, |
178 |
noclose_fds=[self.proc_ready_helper.write_fd], |
179 |
postfork_fn=self.proc_ready_helper.Ready) |
180 |
- self.assertEqual(result.exit_code, 0) |
181 |
+ self.assertEqual(result.exit_code, None) |
182 |
|
183 |
def testTimeoutKill(self): |
184 |
cmd = ["/bin/sh", "-c", "trap '' TERM; echo >&%d; read < %s" % |
185 |
@@ -289,15 +289,6 @@ class TestRunCmd(testutils.GanetiTestCase): |
186 |
self.assert_(status < 0) |
187 |
self.assertEqual(-status, signal.SIGKILL) |
188 |
|
189 |
- def testTimeoutOutputAfterTerm(self): |
190 |
- cmd = ("trap 'echo sigtermed; exit 1' TERM; echo >&%d; read < %s" % |
191 |
- (self.proc_ready_helper.write_fd, self.fifo_file)) |
192 |
- result = utils.RunCmd(["/bin/sh", "-c", cmd], timeout=0.2, |
193 |
- noclose_fds=[self.proc_ready_helper.write_fd], |
194 |
- postfork_fn=self.proc_ready_helper.Ready) |
195 |
- self.assert_(result.failed) |
196 |
- self.assertEqual(result.stdout, "sigtermed\n") |
197 |
- |
198 |
def testListRun(self): |
199 |
"""Test list runs""" |
200 |
result = utils.RunCmd(["true"]) |