Mailing List Archive

xen_vm_get_record give me some bad messages
when I use xen_vm_get_record I get

Struct did not contain expected field suspend_VDI.
Struct did not contain expected field crash_dumps.
Struct did not contain expected field guest_metrics.

How can I fix this I use Xen 3.1

-----------------------------

SCENA - Åäèíñòâåíîòî ÁÅÇÏËÀÒÍÎ ñïèñàíèå çà ìîáèëíè êîìóíèêàöèè è òåõíîëîãèè.
http://www.bgscena.com/


_______________________________________________
xen-api mailing list
xen-api@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
Re: xen_vm_get_record give me some bad messages [ In reply to ]
nikolanikov@mail.bg wrote:
> when I use xen_vm_get_record I get
>
> Struct did not contain expected field suspend_VDI.
> Struct did not contain expected field crash_dumps.
> Struct did not contain expected field guest_metrics.
>
> How can I fix this I use Xen 3.1
>

I presume you are using the Xen API c-bindings? I see such messages as
well. Xend is not populating these fields and hence the c-bindings
complain when unmarshalling the on-wire structure. I have been ignoring
them unless it is a field of interest - in which case a patch is sent to
xen-devel :-).

Regards,
Jim


_______________________________________________
xen-api mailing list
xen-api@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
Re: xen_vm_get_record give me some bad messages [ In reply to ]
yes it is from Xen API c-bindings
in guest_metrics there are some interesting things

One more question

How I can get actual cpu usage for some guest machine?

Replay From Jim Fehlig <jfehlig@novell.com>:

> nikolanikov@mail.bg wrote:
> > when I use xen_vm_get_record I get
> >
> > Struct did not contain expected field suspend_VDI.
> > Struct did not contain expected field crash_dumps.
> > Struct did not contain expected field guest_metrics.
> >
> > How can I fix this I use Xen 3.1
> >
>
> I presume you are using the Xen API c-bindings? I see
> such messages as
> well. Xend is not populating these fields and hence the
> c-bindings
> complain when unmarshalling the on-wire structure. I
> have been ignoring
> them unless it is a field of interest - in which case a
> patch is sent to
> xen-devel :-).
>
> Regards,
> Jim
>
>
>
>




-----------------------------

SCENA - Åäèíñòâåíîòî ÁÅÇÏËÀÒÍÎ ñïèñàíèå çà ìîáèëíè êîìóíèêàöèè è òåõíîëîãèè.
http://www.bgscena.com/


_______________________________________________
xen-api mailing list
xen-api@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
Re: xen_vm_get_record give me some bad messages [ In reply to ]
nikolanikov@mail.bg wrote:
> yes it is from Xen API c-bindings
> in guest_metrics there are some interesting things
>
> One more question
>
> How I can get actual cpu usage for some guest machine?
>

See VCPUs_utilisation field of class VM_metrics. I have not yet used
this class, so not sure about the status of implementation.

Jim


_______________________________________________
xen-api mailing list
xen-api@lists.xensource.com
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api