[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Jonathan Ludlam <Jonathan.Ludlam@xxxxxxxxxxxxx>
  • 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
  • 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=;
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.