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

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



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


 


Rackspace

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