[GH-ISSUE #110] virConnect instance has no attribute 'getMemoryStats' #91

Closed
opened 2026-02-27 16:01:03 +03:00 by kerem · 2 comments
Owner

Originally created by @buxx on GitHub (Sep 17, 2013).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/110

I've configured a localhost server with TCP connection. I can open pages:

  • Create VM
  • Storage pool
  • Network pool
  • Snapshots
  • Virtual Machines
    And virtual machine page.

But if i want open overview page:

AttributeError at /overview/1/

virConnect instance has no attribute 'getMemoryStats'

Request Method:     GET
Request URL:    http://webvirtmgr.peyruis.bux.fr/overview/1/
Django Version:     1.4.5
Exception Type:     AttributeError
Exception Value:    

virConnect instance has no attribute 'getMemoryStats'

Exception Location:     /var/sites/webvirtmgr/webvirtmgr/server.py in memory_get_usage, line 336
Python Executable:  /usr/bin/python
Python Version:     2.6.6
Python Path:    

['/var/sites/webvirtmgr',
 '/usr/local/lib/python2.6/dist-packages/gitosis-0.2-py2.6.egg',
 '/usr/local/lib/python2.6/dist-packages/virtualenv-1.10.1-py2.6.egg',
 '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/local/lib/python2.6/dist-packages',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/pymodules/python2.6']

Server time:    Tue, 17 Sep 2013 15:55:28 +0300 

Installed on debian 6.0.7 2.6.32-5-686-bigmem with:

apt-cache policy libvirt-bin
libvirt-bin:
  Installé : 0.8.3-5+squeeze5
  Candidat : 0.8.3-5+squeeze5
 Table de version :
     0.9.12-11~bpo60+1 0
        100 http://www.backports.org/debian/ squeeze-backports/main i386 Packages
 *** 0.8.3-5+squeeze5 0
        500 http://security.debian.org/ squeeze/updates/main i386 Packages
        100 /var/lib/dpkg/status
     0.8.3-5+squeeze2 0
        500 http://ftp.fr.debian.org/debian/ squeeze/main i386 Packages
root@marx:/var/sites/webvirtmgr# apt-cache policy libvirt-bin kvm
kvm:
  Installé : 1:0.12.5+dfsg-5+squeeze10
  Candidat : 1:0.12.5+dfsg-5+squeeze10
 Table de version :
     1:1.1.2+dfsg-5~bpo60+1 0
        100 http://www.backports.org/debian/ squeeze-backports/main i386 Packages
 *** 1:0.12.5+dfsg-5+squeeze10 0
        500 http://ftp.fr.debian.org/debian/ squeeze/main i386 Packages
        500 http://security.debian.org/ squeeze/updates/main i386 Packages
        100 /var/lib/dpkg/status
libvirt-bin:
  Installé : 0.8.3-5+squeeze5
  Candidat : 0.8.3-5+squeeze5
 Table de version :
     0.9.12-11~bpo60+1 0
        100 http://www.backports.org/debian/ squeeze-backports/main i386 Packages
 *** 0.8.3-5+squeeze5 0
        500 http://security.debian.org/ squeeze/updates/main i386 Packages
        100 /var/lib/dpkg/status
     0.8.3-5+squeeze2 0
        500 http://ftp.fr.debian.org/debian/ squeeze/main i386 Packages

Any idea ?

Originally created by @buxx on GitHub (Sep 17, 2013). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/110 I've configured a localhost server with TCP connection. I can open pages: - Create VM - Storage pool - Network pool - Snapshots - Virtual Machines And virtual machine page. But if i want open overview page: ``` AttributeError at /overview/1/ virConnect instance has no attribute 'getMemoryStats' Request Method: GET Request URL: http://webvirtmgr.peyruis.bux.fr/overview/1/ Django Version: 1.4.5 Exception Type: AttributeError Exception Value: virConnect instance has no attribute 'getMemoryStats' Exception Location: /var/sites/webvirtmgr/webvirtmgr/server.py in memory_get_usage, line 336 Python Executable: /usr/bin/python Python Version: 2.6.6 Python Path: ['/var/sites/webvirtmgr', '/usr/local/lib/python2.6/dist-packages/gitosis-0.2-py2.6.egg', '/usr/local/lib/python2.6/dist-packages/virtualenv-1.10.1-py2.6.egg', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/local/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6'] Server time: Tue, 17 Sep 2013 15:55:28 +0300 ``` Installed on debian 6.0.7 2.6.32-5-686-bigmem with: ``` apt-cache policy libvirt-bin libvirt-bin: Installé : 0.8.3-5+squeeze5 Candidat : 0.8.3-5+squeeze5 Table de version : 0.9.12-11~bpo60+1 0 100 http://www.backports.org/debian/ squeeze-backports/main i386 Packages *** 0.8.3-5+squeeze5 0 500 http://security.debian.org/ squeeze/updates/main i386 Packages 100 /var/lib/dpkg/status 0.8.3-5+squeeze2 0 500 http://ftp.fr.debian.org/debian/ squeeze/main i386 Packages root@marx:/var/sites/webvirtmgr# apt-cache policy libvirt-bin kvm kvm: Installé : 1:0.12.5+dfsg-5+squeeze10 Candidat : 1:0.12.5+dfsg-5+squeeze10 Table de version : 1:1.1.2+dfsg-5~bpo60+1 0 100 http://www.backports.org/debian/ squeeze-backports/main i386 Packages *** 1:0.12.5+dfsg-5+squeeze10 0 500 http://ftp.fr.debian.org/debian/ squeeze/main i386 Packages 500 http://security.debian.org/ squeeze/updates/main i386 Packages 100 /var/lib/dpkg/status libvirt-bin: Installé : 0.8.3-5+squeeze5 Candidat : 0.8.3-5+squeeze5 Table de version : 0.9.12-11~bpo60+1 0 100 http://www.backports.org/debian/ squeeze-backports/main i386 Packages *** 0.8.3-5+squeeze5 0 500 http://security.debian.org/ squeeze/updates/main i386 Packages 100 /var/lib/dpkg/status 0.8.3-5+squeeze2 0 500 http://ftp.fr.debian.org/debian/ squeeze/main i386 Packages ``` Any idea ?
kerem closed this issue 2026-02-27 16:01:03 +03:00
Author
Owner

@retspen commented on GitHub (Sep 17, 2013):

Need install libvirt-0.9.x and above

<!-- gh-comment-id:24586097 --> @retspen commented on GitHub (Sep 17, 2013): Need install libvirt-0.9.x and above
Author
Owner

@buxx commented on GitHub (Sep 17, 2013):

Okay 👍

<!-- gh-comment-id:24586181 --> @buxx commented on GitHub (Sep 17, 2013): Okay :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtmgr#91
No description provided.