From: Keir Fraser Subject: Re: Re: blktap race against xenstore startup Date: Fri, 29 Sep 2006 07:54:45 +0100 Message-ID: References: <1159485838.8884.38.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1159485838.8884.38.camel@sisko.scot.redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Stephen C. Tweedie" , Anthony Liguori Cc: Andrew Warfield , "xen-devel@lists.xensource.com" , Steven Rostedt , Julian Chesterfield List-Id: xen-devel@lists.xenproject.org On 29/9/06 12:23 am, "Stephen C. Tweedie" wrote: > It (the blktapctrl userland daemon) gets execve'd by xend: > > elif sys.argv[1] == 'start': > start_xenstored() > start_consoled() > start_blktapctrl() > return daemon.start() > > The problem is not that xenstored is dead: it's alive and running, it > just hasn't had the /local/domain tree filled in, so it returns ENOENT. > xenstored *is* ready, but that's not enough. Set a watch on /local/domain and wait for the directory to appear? Not a beautiful approach, but better than spinning a few times? :-) -- Keir