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

Re: [Xen-API] XCP 1.6: last_shutdown time/shutdown reason/initiator



Yes, if possible. Those fields was very useful.

Some use cases:

1) They can be used to detect crashed VM's. If SR is going offline and VM mount options says errors=panic, VM is crashing. Those fields allows very easy to search for crashed VM and restart them after SR is repaired. 2) Status 'crashed' allows to answer customers about reason why their VM was rebooted. 3) If 'last_shutdown_reason=rebooted' and VM is not started, that is sign of problems (bad boot kernel, grub options or something else). 4) last_shutdown_time allows native and very intuitive sorting key for halted VM's (if vm was halted recently, it can be on top, and vm with shutdown date two years ago naturally can be at the list bottom). 5) When some complicated works with infrastructure are planned, last_shutdown_time allows to predict if VM will be started soon or not (if it was halted recently, it can be started at any time, if vm was halted two weeks ago, there is very little chance it will started in near 1-2-3 hrs.)


We displays them to client in management interface

03.01.2013 19:30, Dave Scott ÐÐÑÐÑ:
Hi George,

They weren't deliberately removed -- they were missed when we split xenopsd 
from xapi. I think they could probably be put back again. Perhaps we should 
make them first-class fields rather than other-config keys, to make sure they 
don't go missing again?

Out of curiousity, what kind of thing did you use that information for?

Thanks,
Dave

-----Original Message-----
From: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-
bounces@xxxxxxxxxxxxx] On Behalf Of George Shuklin
Sent: 03 January 2013 3:07 PM
To: xen-api@xxxxxxxxxxxxx
Subject: [Xen-API] XCP 1.6: last_shutdown time/shutdown reason/initiator

Good day.

Found (suddenly) that XCP 1.6 did not provides mertrics about shutdown
time, reason and initiator. Those was extremely useful metrics and it's
really sad to see lack of them in new version.

In XCP 1.1 they was placed in other-config:
last_shutdown_time: 20130102T15:56:58Z; last_shutdown_action: Restart;
last_shutdown_initiator: external; last_shutdown_reason: rebooted;

In XCP 1.6 nothing like this is in other-config.

Is those fields disappear completely or I just miss them?

Thanks.

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api


_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

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