WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] domain key gone from xenstore when calling offline hotpl

To: "Christopher S. Aker" <caker@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] domain key gone from xenstore when calling offline hotplug scripts
From: Ewan Mellor <ewan@xxxxxxxxxxxxx>
Date: Fri, 9 Dec 2005 11:21:41 +0000
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 09 Dec 2005 11:22:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <439963C8.3040605@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <439963C8.3040605@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Fri, Dec 09, 2005 at 05:00:24AM -0600, Christopher S. Aker wrote:

> I'm using a custom vif-script and I've noticed that when the "offline" 
> mode is called, I'm unable to retrieve the domain key from xenstore, 
> most likely because the domain has already been destroyed.
> 
> Is there any way to defer the removal of those keys until $vif-script 
> offline has been called, or possibly retain it in xend and pass it along 
> as a command arg?  The domain value is useful in the network 
> deconstruction I'm performing.

What do you mean by "the domain key"?  You get the path to the domain, the
device type and the vif ID passed as environment variables -- this should be
sufficient for you to use as a key to other databases or whathaveyou.  What
else do you require?

Ewan.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel