Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 278693 Details for
Bug 373581
app-emulation/ganeti: init script should not try to start/stop masterd and rapi on non-master nodes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch to fix service startup on non-master nodes
ganeti-2.1.initd-fix_masterd_startup.patch (text/plain), 872 bytes, created by
Heiko Baumann
on 2011-06-30 12:09:24 UTC
(
hide
)
Description:
patch to fix service startup on non-master nodes
Filename:
MIME Type:
Creator:
Heiko Baumann
Created:
2011-06-30 12:09:24 UTC
Size:
872 bytes
patch
obsolete
>--- ganeti-2.1.initd.org 2010-03-07 21:56:02.000000000 +0100 >+++ ganeti-2.1.initd 2011-06-30 15:47:35.000000000 +0200 >@@ -67,9 +67,21 @@ > fi > } > >+get_master_node () { >+ MASTER_NODE="`gnt-cluster getmaster`" >+ HOSTNAME="`hostname -f`" >+ if [ "$MASTER_NODE" = "$HOSTNAME" ] ; then >+ DAEMONS="${NODED} ${MASTERD} ${CONFD} ${RAPI}" >+ else >+ DAEMONS="${NODED} ${CONFD}" >+ fi >+} >+ > start_all() { > check_config >- for i in ${NODED} ${MASTERD} ${CONFD} ${RAPI}; do \ >+ get_master_node >+ >+ for i in ${DAEMONS} ; do \ > case "${i}" in > ganeti-masterd) > GANETI_OPTS="${GANETI_OPTS} ${GANETI_MASTERD_OPTS}" >@@ -83,7 +95,8 @@ > } > > stop_all() { >- for i in ${RAPI} ${CONFD} ${MASTERD} ${NODED}; do \ >+ get_master_node >+ for i in ${DAEMONS} ; do \ > maybe_do "${1}" stop_action ${i} > done > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 373581
: 278693