* [gentoo-commits] gentoo-x86 commit in app-emulation/ganeti/files: ganeti-2.12-qemu-enable-kvm.patch ganeti-2.12-daemon-util.patch ganeti-2.12-start-stop-daemon-args.patch ganeti-2.12-tests.patch ganeti-2.0.3-gentoo-brctl-path.patch ganeti-2.9-automake-1.13.patch ganeti-2.5-gentoo-start-stop-daemon.patch ganeti-2.6-fix-tests.patch
@ 2015-03-06 1:25 Patrick McLean (chutzpah)
0 siblings, 0 replies; only message in thread
From: Patrick McLean (chutzpah) @ 2015-03-06 1:25 UTC (permalink / raw
To: gentoo-commits
chutzpah 15/03/06 01:25:05
Added: ganeti-2.12-qemu-enable-kvm.patch
ganeti-2.12-daemon-util.patch
ganeti-2.12-start-stop-daemon-args.patch
ganeti-2.12-tests.patch
Removed: ganeti-2.0.3-gentoo-brctl-path.patch
ganeti-2.9-automake-1.13.patch
ganeti-2.5-gentoo-start-stop-daemon.patch
ganeti-2.6-fix-tests.patch
Log:
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.
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
Revision Changes Path
1.1 app-emulation/ganeti/files/ganeti-2.12-qemu-enable-kvm.patch
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
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
Index: ganeti-2.12-qemu-enable-kvm.patch
===================================================================
diff --git a/lib/hypervisor/hv_kvm/__init__.py b/lib/hypervisor/hv_kvm/__init__.py
index d0c42c4..e6d3bcf 100644
--- a/lib/hypervisor/hv_kvm/__init__.py
+++ b/lib/hypervisor/hv_kvm/__init__.py
@@ -1061,6 +1061,7 @@ class KVMHypervisor(hv_base.BaseHypervisor):
pidfile = self._InstancePidFile(instance.name)
kvm = hvp[constants.HV_KVM_PATH]
kvm_cmd = [kvm]
+ kvm_cmd.extend(["-enable-kvm"])
# used just by the vnc server, if enabled
kvm_cmd.extend(["-name", instance.name])
kvm_cmd.extend(["-m", instance.beparams[constants.BE_MAXMEM]])
1.1 app-emulation/ganeti/files/ganeti-2.12-daemon-util.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-daemon-util.patch?rev=1.1&view=markup
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
Index: ganeti-2.12-daemon-util.patch
===================================================================
diff --git a/daemons/daemon-util.in b/daemons/daemon-util.in
index 6a47253..7eec363 100644
--- a/daemons/daemon-util.in
+++ b/daemons/daemon-util.in
@@ -31,18 +31,24 @@ set -e
@SHELL_ENV_INIT@
-readonly defaults_file="$SYSCONFDIR/default/ganeti"
+readonly defaults_file="$SYSCONFDIR/conf.d/ganeti"
# This is a list of all daemons and the order in which they're started. The
# order is important as there are dependencies between them. On shutdown,
# they're stopped in reverse order.
-DAEMONS=(
- ganeti-noded
- ganeti-wconfd
- ganeti-rapi
- ganeti-luxid
- ganeti-kvmd
- )
+DAEMONS=( ganeti-noded ganeti-wconfd )
+
+_is_master() {
+ [ -z "${ganeti_master}" ] && ganeti_master="$(gnt-cluster getmaster)"
+ [ -z "${local_hostname}" ] && local_hostname="$(hostname -f)"
+ [ "${ganeti_master}" = "${local_hostname}" ]
+}
+
+if _is_master; then
+ DAEMONS+=( ganeti-masterd ganeti-rapi ganeti-luxid )
+fi
+
+DAEMONS+=( ganeti-kvmd )
# This is the list of daemons that are loaded on demand; they should only be
# stopped, not started.
1.1 app-emulation/ganeti/files/ganeti-2.12-start-stop-daemon-args.patch
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
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
Index: ganeti-2.12-start-stop-daemon-args.patch
===================================================================
diff --git a/daemons/daemon-util.in b/daemons/daemon-util.in
index 6a47253..11eb9d1 100644
--- a/daemons/daemon-util.in
+++ b/daemons/daemon-util.in
@@ -294,10 +294,11 @@ start() {
@PKGLIBDIR@/ensure-dirs
if type -p start-stop-daemon >/dev/null; then
- start-stop-daemon --start --quiet --oknodo \
+ start-stop-daemon --start --quiet \
--pidfile $pidfile \
- --startas $daemonexec \
- --chuid $usergroup \
+ --exec $daemonexec \
+ --user $usergroup \
+ --wait 300 \
-- $args "$@"
else
# TODO: Find a way to start daemon with a group, until then the group must
@@ -323,7 +324,7 @@ stop() {
if use_systemctl; then
systemctl stop "${name}.service"
elif type -p start-stop-daemon >/dev/null; then
- start-stop-daemon --stop --quiet --oknodo --retry 30 \
+ start-stop-daemon --stop --quiet --retry 30 \
--pidfile $pidfile
else
_ignore_error killproc -p $pidfile $name
@@ -409,8 +410,8 @@ rotate_logs() {
local daemonexec=$(_daemon_executable $name)
if type -p start-stop-daemon >/dev/null; then
- start-stop-daemon --stop --signal HUP --quiet \
- --oknodo --pidfile $pidfile
+ start-stop-daemon --signal HUP --quiet \
+ --pidfile $pidfile
else
_ignore_error killproc \
-p $pidfile \
1.1 app-emulation/ganeti/files/ganeti-2.12-tests.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/ganeti/files/ganeti-2.12-tests.patch?rev=1.1&view=markup
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
Index: ganeti-2.12-tests.patch
===================================================================
diff --git a/test/hs/Test/Ganeti/Runtime.hs b/test/hs/Test/Ganeti/Runtime.hs
index b15aa36..a805869 100644
--- a/test/hs/Test/Ganeti/Runtime.hs
+++ b/test/hs/Test/Ganeti/Runtime.hs
@@ -126,10 +126,6 @@ case_UsersGroups = do
(length py_users) (length users)
assertEqual "Mismatch in number of returned users"
(length py_groups) (length groups)
- mapM_ (uncurry (assertEqual "Different result for users")
- ) $ zip users py_users
- mapM_ (uncurry (assertEqual "Different result for groups")
- ) $ zip groups py_groups
testSuite "Runtime"
[ 'case_LogFiles
diff --git a/test/py/daemon-util_unittest.bash b/test/py/daemon-util_unittest.bash
index edaeac5..1ee6eae 100755
--- a/test/py/daemon-util_unittest.bash
+++ b/test/py/daemon-util_unittest.bash
@@ -45,8 +45,8 @@ if ! grep -q '^ENABLE_MOND = ' lib/_constants.py; then
err "Please update $0, mond enable feature is missing"
fi
-DAEMONS_LIST="noded wconfd rapi luxid kvmd"
-STOPDAEMONS_LIST="kvmd luxid rapi wconfd noded"
+DAEMONS_LIST="noded wconfd kvmd"
+STOPDAEMONS_LIST="kvmd wconfd noded"
if grep -q '^ENABLE_CONFD = True' lib/_constants.py; then
DAEMONS_LIST="$DAEMONS_LIST confd"
diff --git a/test/py/ganeti.utils.process_unittest.py b/test/py/ganeti.utils.process_unittest.py
index 7d4cbb6..08752fe 100755
--- a/test/py/ganeti.utils.process_unittest.py
+++ b/test/py/ganeti.utils.process_unittest.py
@@ -274,7 +274,7 @@ class TestRunCmd(testutils.GanetiTestCase):
result = utils.RunCmd(["/bin/sh", "-c", cmd], timeout=0.2,
noclose_fds=[self.proc_ready_helper.write_fd],
postfork_fn=self.proc_ready_helper.Ready)
- self.assertEqual(result.exit_code, 0)
+ self.assertEqual(result.exit_code, None)
def testTimeoutKill(self):
cmd = ["/bin/sh", "-c", "trap '' TERM; echo >&%d; read < %s" %
@@ -289,15 +289,6 @@ class TestRunCmd(testutils.GanetiTestCase):
self.assert_(status < 0)
self.assertEqual(-status, signal.SIGKILL)
- def testTimeoutOutputAfterTerm(self):
- cmd = ("trap 'echo sigtermed; exit 1' TERM; echo >&%d; read < %s" %
- (self.proc_ready_helper.write_fd, self.fifo_file))
- result = utils.RunCmd(["/bin/sh", "-c", cmd], timeout=0.2,
- noclose_fds=[self.proc_ready_helper.write_fd],
- postfork_fn=self.proc_ready_helper.Ready)
- self.assert_(result.failed)
- self.assertEqual(result.stdout, "sigtermed\n")
-
def testListRun(self):
"""Test list runs"""
result = utils.RunCmd(["true"])
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-06 1:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 1:25 [gentoo-commits] gentoo-x86 commit in app-emulation/ganeti/files: ganeti-2.12-qemu-enable-kvm.patch ganeti-2.12-daemon-util.patch ganeti-2.12-start-stop-daemon-args.patch ganeti-2.12-tests.patch ganeti-2.0.3-gentoo-brctl-path.patch ganeti-2.9-automake-1.13.patch ganeti-2.5-gentoo-start-stop-daemon.patch ganeti-2.6-fix-tests.patch Patrick McLean (chutzpah)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox