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

Re: [Xen-API] value of timestamp from API event.from() is always '0'


  • To: "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • From: Uli Stärk <Uli.Staerk@xxxxxxxxxxxxxx>
  • Date: Thu, 17 Sep 2015 12:39:51 +0000
  • Accept-language: de-DE, en-US
  • Delivery-date: Thu, 17 Sep 2015 12:40:17 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: AQHQ8CkjH4/iDwrRfUy/a2iAGqAEN55Aphiw
  • Thread-topic: [Xen-API] value of timestamp from API event.from() is always '0'

Hey Tony,

I've seen this too. I don't know what the events.from was designed for. I've 
seen XenCenter using it for a "fast"-sync with the pool, and features some kind 
of logging (see id=0, class=message). I think you can safely skip all events 
with id=0 and accept the ts=0 as given :)

I handle the pool syncing a little bit different, which is slower, bit a bit 
more straight forward:
1. event.register(*)
2. foreach($obj_types as $type) $type.get_all()
3. while($running) event.next()

Greetings
Uli Stärk

-----Ursprüngliche Nachricht-----
Von: xen-api-bounces@xxxxxxxxxxxxx [mailto:xen-api-bounces@xxxxxxxxxxxxx] Im 
Auftrag von tony_caotong@xxxxxxx
Gesendet: Mittwoch, 16. September 2015 04:39
An: xen-users@xxxxxxxxxxxxx; xen-api@xxxxxxxxxxxxx
Betreff: [Xen-API] value of timestamp from API event.from() is always '0'

Hi all,

     My xenserver version is 6.2
     When I fetch logs from API function event.from(), the value of each 
timestamp field is always '0.' .
     Instead of event.next(), it is fine.
     Could anyone give me some advices ?

--
-----------
Cao Tong



_______________________________________________
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®.