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-api

Re: [Xen-API] Re: Xen-API SDK - clean_shutdown- not working?

To: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
Subject: Re: [Xen-API] Re: Xen-API SDK - clean_shutdown- not working?
From: Chonduy Nguyen <chonduy9@xxxxxxxxx>
Date: Wed, 10 Feb 2010 14:26:21 -0800 (PST)
Cc: "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 10 Feb 2010 14:26:18 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1265840781; bh=J94jS2g82O0QVc0klAL+v7FUEwD7ICXryBgVpemb3PM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=xV+feW74CVAC4lskKzQB4T+9rZJPTNO4Htpdwnql1pxJ706ercmzxB+8jhadGiuBdsRpPFkBoqqvJwMserQxzS5+e2zb7pr443wo2O3TYmEgFKNihyjRypINewhGhJ5cdL/jPPUVhJVjejB7vWCWnNrdgQBOtxlxI/7QZnls3vU=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=AGDsGukKtUyB7QdluIdVa7pk0l85bd2T9rCxjmi7i/m9kSOL108QV7O23o7n0zKTfa+Ge009jzAS4qbZOM/D0Vjd5EiqbJuaU3dQBRlDvmQPNniKAG/AtFDvSvDto3XbcovfXJMJDLg6G0TfpJ3L4c9wFGNOxOptDj5Ss6V3XgQ=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <B9EFD67B-CDD9-43F6-8AC3-8A136532D862@xxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <834780.8547.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <B9EFD67B-CDD9-43F6-8AC3-8A136532D862@xxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi

I tried to run api clean_shutdown - I saw the program runs up to that point and stuck
(synchronous call) taking too long - for more than 5 minutes no return

I checked the gui of openxencenter - nothing reacts
i saw on the console openxencetner appeared the below message continously
but the uuid here is not on the vm uuid list that test program shows.
VM.clean_shutdown pending 0.666671376874:       {'timestamp': '1265840330.', 'class': 'task', 'snapshot': {'status': 'pending', 'subtask_of': 'OpaqueRef:NULL', 'current_operations': {}, 'subtasks': [], 'uuid': 'f972e3ae-fc69-1358-1102-52afef3c7124', 'created': <DateTime '20100210T22:05:30Z' at 283eb00>, 'other_config': {}, 'name_label': 'VM.clean_shutdown', 'allowed_operations': ['cancel'], 'finished': <DateTime '19700101T00:00:00Z' at 28ed908>, 'resident_on': 'OpaqueRef:c130b670-3782-2052-c67f-0845441503d8', 'result': '', 'progress': 0.66667137687404954, 'name_description': '', 'error_info': [], 'type': '<none/>'}, 'operation': 'mod', 'ref': 'OpaqueRef:2b134aa8-844f-c7e4-a839-20ae03e3944f', 'id': '14536'}


Please let me know what is going on - here is the piece of code

   vm = session.xenapi.VM.get_by_name_label('debian-vm1')[0]

    record = session.xenapi.VM.get_record(vm)

    print record["power_state"]  --> show it is running state

    print record
    print 'calling clean shutdown'

    session.xenapi.VM.clean_shutdown(vm)  --> stuck here


Thanks

Thuymai




_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>