Feature #1323

init script for snf-ganeti-eventd

Added by Costas Drogos almost 13 years ago. Updated almost 12 years ago.

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

snf-ganeti-eventd.tar (10 kB) Costas Drogos, 09/28/2011 02:26 pm

snf-ganeti-eventd.diff Magnifier (925 Bytes) Costas Drogos, 10/16/2011 04:28 pm


Related issues

related to Synnefo - Bug #1505: snf-ganeti-eventd init script ignores defaults file Closed 10/17/2011

Associated revisions

Revision 33f9e688
Added by Vangelis Koukis almost 12 years ago

Set SNF_EVENTD_ENABLE=false in shipped defaults

Set SNF_EVENTD_ENABLE=false in shipped defaults, refs #1323

Revision fc2c900d
Added by Vangelis Koukis almost 12 years ago

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

Revision 98340727
Added by Constantinos Venetsanopoulos almost 12 years ago

Fix in snf-ganeti-eventd init script

Saner check of the ganeti master. Provided by
[costasd] Refs #1323

Revision 981ff7aa
Added by Constantinos Venetsanopoulos almost 12 years ago

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

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

Also available in: Atom PDF