<HTML>
<HEAD>
<TITLE>Re: [Openstack] eventlet weirdness</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Does anyone else feel that the following seems really “dirty”, or is it just me.<BR>
<BR>
“adding a few sleep(0) calls in various places in the<BR>
Nova codebase (as was recently added in the _sync_power_states()<BR>
periodic task) is an easy and simple win with pretty much no ill<BR>
side-effects. :)”<BR>
<BR>
Dirty in that it feels like there is something wrong from a design point of view.<BR>
Sprinkling “sleep(0)” seems like its a band-aid on a larger problem imho. <BR>
But that’s just my gut feeling.<BR>
<BR>
<I>:-(<BR>
</I><BR>
On 3/2/12 8:26 AM, "Armando Migliaccio" <<a href="Armando.Migliaccio@eu.citrix.com">Armando.Migliaccio@eu.citrix.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I knew you'd say that :P<BR>
<BR>
There you go: <a href="https://bugs.launchpad.net/nova/+bug/944145">https://bugs.launchpad.net/nova/+bug/944145</a><BR>
<BR>
Cheers,<BR>
Armando<BR>
<BR>
> -----Original Message-----<BR>
> From: Jay Pipes [<a href="mailto:jaypipes@gmail.com">mailto:jaypipes@gmail.com</a>]<BR>
> Sent: 02 March 2012 16:22<BR>
> To: Armando Migliaccio<BR>
> Cc: <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
> Subject: Re: [Openstack] eventlet weirdness<BR>
><BR>
> On 03/02/2012 10:52 AM, Armando Migliaccio wrote:<BR>
> > I'd be cautious to say that no ill side-effects were introduced. I found a<BR>
> race condition right in the middle of sync_power_states, which I assume was<BR>
> exposed by "breaking" the task deliberately.<BR>
><BR>
> Such a party-pooper! ;)<BR>
><BR>
> Got a link to the bug report for me?<BR>
><BR>
> Thanks!<BR>
> -jay<BR>
<BR>
_______________________________________________<BR>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>