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

[Xen-bugs] [Bug 1111] New: XenAPI VIF_metrics are not updated

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1111] New: XenAPI VIF_metrics are not updated
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Fri, 16 Nov 2007 20:19:36 -0800
Delivery-date: Fri, 16 Nov 2007 20:20:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1111

           Summary: XenAPI VIF_metrics are not updated
           Product: Xen
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Tools
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: skinkie@xxxxxxxxx


Currently using xen-tools 3.1.2. 


I'm using the following code based on xapi.py:

def request_vif_metrics():
        server, session = connect()
        vm_uuids = execute(server, 'VM.get_all', (session,))

        for uuid in vm_uuids:
                vm_info = execute(server, 'VM.get_record', (session, uuid))
                vifs = vm_info['VIFs']
                read = 0.0;
                write = 0.0;
                for vif in vifs:
                        vif_metrics = execute(server, 'VIF.get_metrics',
(session, vif))
                        vif_metrics_struct = execute(server,
'VIF_metrics.get_record', (session, vif_metrics))
                        print vif_metrics_struct
                        read += vif_metrics_struct['io_read_kbs']
                        write += vif_metrics_struct['io_write_kbs']
                print '%s: %f %f' % (vm_info['name_label'], read, write)


The point is that the metric read/write_kbs always returns 0.


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs

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