WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] newbie: get_guest_metrics result MESSAGE_METHOD_UNKNOWN

To: Akira Akira <akira.lists.1948@xxxxxxxxx>
Subject: Re: [Xen-API] newbie: get_guest_metrics result MESSAGE_METHOD_UNKNOWN
From: Marcus Lagergren <marcus.lagergren@xxxxxxxxxx>
Date: Tue, 17 Mar 2009 14:11:21 +0100
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Mar 2009 06:12:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <2ffb3b160903170607o54d6becdice2ab0791bfd2617@xxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <2ffb3b160903170607o54d6becdice2ab0791bfd2617@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)
No it's just that the implementation of Guest Metrics is missing.

Akira Akira wrote:
Hi All,

Although I already searched the mailing list archives to try to find a solution, I could only find people reporting this error without a solution.

I am trying to get the guest metrics to monitor the guest for memory shortage, for example. So here is what I executed (in python):

*1)*
    session = XenAPI.Session(url)
    session.xenapi.login_with_password(username, password)
    vms = session.xenapi.VM.get_all_records()
    for vm in vms:
            g_metrics = session.xenapi.VM.get_guest_metrics(vm)


*2)*

    session = XenAPI.Session(url)
    session.xenapi.login_with_password(username, password)
    vms = session.xenapi.VM.get_all_records()
    for vm in vms:
            metrics = session.xenapi.VM.get_metrics(vm)
            g_metrics =
    session.xenapi.VM_guest_metrics.get_record(metrics)


And as a result I am getting the same following error for both codes:

    XenAPI.Failure: MESSAGE_METHOD_UNKNOWN


The error is always in the last line (the one in which I try to obtain a guest metrics and assign it to g_metrics).

I am referring to this page to use the Xen API: http://wiki.xensource.com/xenwiki/XenApi

The documentation I am using is: API Revision 1.1, Date: 16th August 2007. Is there a more recent documentation? Am I using the wrong documentation?

Thank you in advance.

                     Akira
------------------------------------------------------------------------

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


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

<Prev in Thread] Current Thread [Next in Thread>