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

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

I'm trying to get all difference between XCP 1.1 and 1.6 here http://wiki.xen.org/wiki/XCP_1.6_changes_compare_to_1.1

If someone got noticed something odd, please add.

On 04.01.2013 00:04, Rushikesh Jadhav wrote:
The VM was imported so I did another import of same xva.

After internal/external shutdown/reboot the other-config field is not updated. It just stays exact same.
Thanks George for noticing.

I don't test debian-xapi, could you please check if its same there ? From Dave's reply I assume that its same.

Is there any workaround to fix this ? or we should wait for updated Xapi rpm ?
Any ideas for us as to which exact files relate to it ?

P.S. I tried with both xcp1.1 and xcp1.6 xentools for this particular VM running on xcp1.6 host.


On Thu, Jan 3, 2013 at 10:38 PM, George Shuklin <george.shuklin@xxxxxxxxx> wrote:
Really strange.

But I see last_shutdown_time: 20120406T12:57:50Z

2012-04-06... Very old shutdown. Or, may be, just upgraded pool? Please, try to reboot any VM and see if date will change.

PS PLATFORM_VERSION='1.6.8' <- not a release version of XCP...

03.01.2013 19:59, Rushikesh Jadhav ÐÐÑÐÑ:
Hi George and Dave,

Im not sure how but I do have all the parameters in VMs other-config

[root@s3 ~]# xe vm-param-get param-name=other-config uuid=1b5d4d31-e8ff-0e1a-bfff-ad2d8a118490
auto_poweron: true; vgpu_pci: ; import_task: OpaqueRef:3c6d447f-66d9-64d2-915f-41e6d177090b; mac_seed: 66442023-d353-6051-c701-47b93aeca922; last_shutdown_time: 20120406T12:57:50Z; last_shutdown_action: Destroy; last_shutdown_initiator: internal; last_shutdown_reason: halted; linux_template: true; rhel5: true;

[root@s3 ~]# cat /etc/xensource-inventory
BRAND_CONSOLE='a console'
INSTALLATION_DATE='2012-11-10 06:30:22.102128'

There is an ambiguity in last_shutdown_time but I think it is there because I imported it from XCP1.1. ( Notice the host installation data vs vm shutdown date )

Is it the case that *new* created VMs on XCP1.6 do not have "other-config" or did I miss anything ?
We also use these fields and they are important for us hence if you confirm that they are removed in XCP1.6 then I would request to bring them back.


On Thu, Jan 3, 2013 at 9:19 PM, George Shuklin <george.shuklin@xxxxxxxxx> wrote:
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?


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


Xen-api mailing list

Xen-api mailing list

Xen-api mailing list



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