Feature #1323
init script for snf-ganeti-eventd
Status: | Closed | Start date: | 09/28/2011 | |
---|---|---|---|---|
Priority: | Medium | Due date: | ||
Assignee: | Constantinos Venetsanopoulos | % Done: | 0% |
|
Category: | deployment | Spent time: | - | |
Target version: | v0.7.1 |
Description
Yeap, init script day :)
Attached you will find an init script (/etc/init.d/snf-ganeti-eventd) && the appropriate default file (/etc/init.d/snf-ganeti-eventd)
This script take care of running the snf-ganeti-eventd daemon, keeping in mind that eventd should run only from the ganeti master node.
Seems to work on staging :)
Costas Drogos
Related issues
Associated revisions
Set SNF_EVENTD_ENABLE=false in shipped defaults
Set SNF_EVENTD_ENABLE=false in shipped defaults, refs #1323
Fix init script for eventd failing on non-master
Fix init script failing on nodes other than the Ganeti master,
make it issue a warning instead.
Also fix the LSB Default-Stop entry.
Refs #1323
Fix in snf-ganeti-eventd init script
Saner check of the ganeti master. Provided by
[costasd] Refs #1323
Fix in snf-ganeti-eventd init script
Saner check of the ganeti master. Provided by
[costasd] Refs #1323
History
#1 Updated by Vangelis Koukis almost 13 years ago
- Category set to deployment
- Status changed from New to Assigned
- Assignee set to Constantinos Venetsanopoulos
- Target version set to v0.7
#2 Updated by Constantinos Venetsanopoulos almost 12 years ago
Done. The files will be installed in the right directories when the package is installed.
Before closing the ticket we should add a post install script that runs update-rc.d snf-ganeti-eventd defaults
#3 Updated by Vangelis Koukis almost 12 years ago
- Status changed from Assigned to Closed
Fixed initscript merged into master, updated debian packages built and tested on dev*.dev.grnet.gr.
The debian package creates links under /etc/rc.* automatically, the defaults file specifies the eventd as disabled by default.
Closing ticket.
#4 Updated by Costas Drogos almost 12 years ago
- File snf-ganeti-eventd.diff
added
- Status changed from Closed to Feedback
- Target version deleted (
v0.7)
Minor fix attached.
Solves the problematic case of an snf-ganeti-eventd run from a no-longer ganeti-master couldn't be stoped.
Steps to reproduce:
- On ganeti-master, run snf-ganeti-eventd
- Master-failover on another master-candidate
- Bam! /etc/init.d/snf-ganeti-eventd cannot be stopped on old master.
To solve it, I changed the getmaster check to be run only on start option
Attached diff should give you the idea.
Thanks!
#5 Updated by Vangelis Koukis almost 12 years ago
- Status changed from Feedback to Assigned
- Target version set to v0.7.1
#6 Updated by Constantinos Venetsanopoulos almost 12 years ago
- Status changed from Assigned to Feedback
Changes commited to master
#7 Updated by Vangelis Koukis almost 12 years ago
- Status changed from Feedback to Closed