eucalyptus-cc init script doesn't always clear /var/lib/eucalyptus/CC

Bug #490382 reported by Dustin Kirkland 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eucalyptus (Ubuntu)
In Progress
High
Dustin Kirkland 
Karmic
In Progress
High
Dustin Kirkland 
Lucid
In Progress
High
Dustin Kirkland 

Bug Description

For a currently unknown reason, /var/lib/eucalyptus/CC isn't always cleaned out on eucalyptus restart.

I noticed this sometimes when I change the SCHEDPOLICY between POWERSAVE and ROUNDROBIN in /etc/eucalyptus/eucalyptus.conf and restart eucalyptus. Sometimes the changes don't take affect because the CC state isn't cleared.

Changed in eucalyptus (Ubuntu):
status: New → Triaged
assignee: nobody → Dustin Kirkland (kirkland)
importance: Undecided → Medium
Changed in eucalyptus (Ubuntu Karmic):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
milestone: none → karmic-updates
Revision history for this message
Thierry Carrez (ttx) wrote :

Should be cleared if CLEAN=1 is passed to upstart. It's a bug if it's not.

Revision history for this message
Dustin Kirkland  (kirkland) wrote : Re: [Bug 490382] Re: eucalyptus-cc init script doesn't always clear /var/lib/eucalyptus/CC

There seems to be some non-determinism, here.

I can confirm that sometimes when I pass CLEAN=1, it is cleared, and
sometimes it's not.

This needs to be fixed.

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

CLEAN=1 is supported in eucalyptus-cc.conf, not in eucalyptus.conf. So maybe it's something like:
stop eucalyptus CLEAN=1 -> FAIL (env not passed to eucalyptus-cc)
stop eucalyptus-cc CLEAN=1 -> PASS
start eucalyptus[-cc] CLEAN=1 -> FAIL (start not supported, bug 491254)
restart eucalyptus CLEAN=1 -> FAIL (env not passed to eucalyptus-cc)

Looks quite non-deterministic from here.
Dustin, if you can confirm the above behavior, in the end it's a matter of what CLEAN commands we want to support. IMHO we should support "restart eucalyptus CLEAN=1" and "stop eucalyptus CLEAN=1", "start eucalyptus CLEAN=1", "stop eucalyptus-cc CLEAN=1" and "start eucalyptus[-cc] CLEAN=1", since we mainly use the eucalyptus script to drive eucalyptus in general, but should also support stopping and starting eucalyptus-cc only.

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

Thierry-

I'm somewhat happy you could confirm the non-determinism, though it
means that we really need to get this fixed.

I also agree with your analysis of the supported CLEAN=1 states. I
saw your other bug filed and assigned it to myself.

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

I meant "Looks quite deterministic from here".
i.e. stop eucalyptus-cc CLEAN=1 always PASSed

Changed in eucalyptus (Ubuntu Karmic):
status: Triaged → In Progress
Changed in eucalyptus (Ubuntu Lucid):
status: Triaged → In Progress
Changed in eucalyptus (Ubuntu Karmic):
importance: Medium → High
Changed in eucalyptus (Ubuntu Lucid):
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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