eucalyptus upstart job doesn't start NC or CC services

Bug #504521 reported by Mathias Gug
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
Fix Released
High
Dustin Kirkland 
Lucid
Fix Released
High
Dustin Kirkland 

Bug Description

On an NC, doing a "start eucalyptus" does not start eucalyptus-nc. However Walrus, SC, Cloud services can all be started with start eucalyptus. The same is true for the CC service. The eucalyptus upstart job could be used to start any of the eucalyptus services.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Mathias-

So I have some code (attached) that *should* do this for us. Basically, we need to create a dummy event (a long sleep) in the eucalyptus upstart job if this is a eucalyptus node.

However, I'm having upstart troubles. Using the attached patch, I can:
 * eucalyptus & eucalyptus-nc to start on boot
 * eucalyptus & eucalyptus-nc to stop on "sudo stop eucalyptus"

But when I try to "sudo start eucalyptus", eucalyptus starts, but not eucalyptus-nc. It has something to do with the "and libvirt-bin". If I drop that off, that works, but that would cause a regression elsewhere.

Changed in eucalyptus (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Partially working patch attached.

Revision history for this message
Thierry Carrez (ttx) wrote :

@Dustin: I think with the "and" you hit the same issue ("The Upstart Bug", to quote slangasek) than I do in the publication scripts when I try to "start on (started ssh and started avahi-daemon)". You'd have to start libvirt-bin again if you want eucalyptus-nc to get it.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

This needs to be solved in a similar manner described in Bug #503180. We need to emit an event when something explicit happens.

Changed in eucalyptus (Ubuntu):
importance: Low → High
assignee: nobody → Dustin Kirkland (kirkland)
status: Triaged → Fix Committed
milestone: none → lucid-alpha-3
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eucalyptus - 1.6.2~bzr1166-0ubuntu2

---------------
eucalyptus (1.6.2~bzr1166-0ubuntu2) lucid; urgency=low

  * clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/client/EucalyptusWebInterface.java:
    use upstream's better method of getting the version displayed in the web
    login page
  * tools/euca_conf.in: add known_hosts -> /dev/null to the SCP_OPT
  * debian/eucalyptus-common.eucalyptus.upstart: allow for simple
    eucalyptus process management with 'start,stop,status' of 'eucalyptus'
    by ensuring that a dummy sleep process at least runs when the cc or
    nc are started, LP: #504521, #504704
  * debian/eucalyptus-cc.upstart, debian/eucalyptus.conf,
    tools/eucalyptus.conf.5: document CC clean restart, LP: #464384
 -- Dustin Kirkland <email address hidden> Wed, 03 Feb 2010 13:59:37 -0800

Changed in eucalyptus (Ubuntu Lucid):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Patches

Remote bug watches

Bug watches keep track of this bug in other bug trackers.