[GH-ISSUE #2] Can not start manage #1

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

Originally created by @wangsuyi640 on GitHub (Sep 3, 2012).
Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/2

I can login "http://127.0.0.1:8000/dashboard/" successfully and add a connect. However, when clicked the button "manage" ,

it always jumped to "http://127.0.0.1:8000/overview/1/" , and see the following errors:

TypeError at /overview/1/

getMemoryStats() takes exactly 5 arguments (3 given)

Request Method: GET
Request URL: http://127.0.0.1:8000/overview/1/
Django Version: 1.3.2
Exception Type: TypeError
Exception Value:

getMemoryStats() takes exactly 5 arguments (3 given)

Exception Location: /root/webvirtmgr/../webvirtmgr/overview/views.py in get_mem_usage, line 92
Python Executable: /usr/bin/python
Python Version: 2.7.2
Python Path:

['/root/webvirtmgr',
'/usr/lib64/python27.zip',
'/usr/lib64/python2.7',
'/usr/lib64/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib64/python2.7/lib-old',
'/usr/lib64/python2.7/lib-dynload',
'/usr/lib64/python2.7/site-packages',
'/usr/lib64/python2.7/site-packages/PIL',
'/usr/lib64/python2.7/site-packages/gst-0.10',
'/usr/lib64/python2.7/site-packages/gtk-2.0',
'/usr/lib/python2.7/site-packages',
'/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info']

Server time: Mon, 3 Sep 2012 15:28:47 +0300
Traceback Switch to copy-and-paste view

/usr/lib/python2.7/site-packages/django/core/handlers/base.py in get_response

...

I just follow the steps given by https://github.com/retspen/webvirtmgr , and start by "./manage.py runserver 127.0.0.1:8000"

Originally created by @wangsuyi640 on GitHub (Sep 3, 2012). Original GitHub issue: https://github.com/retspen/webvirtmgr/issues/2 I can login "http://127.0.0.1:8000/dashboard/" successfully and add a connect. However, when clicked the button "manage" , it always jumped to "http://127.0.0.1:8000/overview/1/" , and see the following errors: TypeError at /overview/1/ getMemoryStats() takes exactly 5 arguments (3 given) Request Method: GET Request URL: http://127.0.0.1:8000/overview/1/ Django Version: 1.3.2 Exception Type: TypeError Exception Value: getMemoryStats() takes exactly 5 arguments (3 given) Exception Location: /root/webvirtmgr/../webvirtmgr/overview/views.py in get_mem_usage, line 92 Python Executable: /usr/bin/python Python Version: 2.7.2 Python Path: ['/root/webvirtmgr', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/PIL', '/usr/lib64/python2.7/site-packages/gst-0.10', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info'] Server time: Mon, 3 Sep 2012 15:28:47 +0300 Traceback Switch to copy-and-paste view ``` /usr/lib/python2.7/site-packages/django/core/handlers/base.py in get_response ``` ... I just follow the steps given by https://github.com/retspen/webvirtmgr , and start by "./manage.py runserver 127.0.0.1:8000"
kerem closed this issue 2026-02-27 16:00:37 +03:00
Author
Owner

@Bloodoff commented on GitHub (Sep 3, 2012):

Try to reboot server. I can't explain this, but today I see same error on my server.

<!-- gh-comment-id:8240776 --> @Bloodoff commented on GitHub (Sep 3, 2012): Try to reboot server. I can't explain this, but today I see same error on my server.
Author
Owner

@retspen commented on GitHub (Sep 3, 2012):

What is your version of libvirt?

<!-- gh-comment-id:8243240 --> @retspen commented on GitHub (Sep 3, 2012): What is your version of libvirt?
Author
Owner

@wangsuyi640 commented on GitHub (Sep 3, 2012):

0.9.2

Anatoliy Guskov notifications@github.com编写:

What is your version of libvirt?


Reply to this email directly or view it on GitHub:
https://github.com/retspen/webvirtmgr/issues/2#issuecomment-8243240

<!-- gh-comment-id:8243290 --> @wangsuyi640 commented on GitHub (Sep 3, 2012): 0.9.2 Anatoliy Guskov notifications@github.com编写: > What is your version of libvirt? > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/retspen/webvirtmgr/issues/2#issuecomment-8243240
Author
Owner

@retspen commented on GitHub (Sep 3, 2012):

Linux distro?

<!-- gh-comment-id:8243374 --> @retspen commented on GitHub (Sep 3, 2012): Linux distro?
Author
Owner

@wangsuyi640 commented on GitHub (Sep 3, 2012):

fedora 16 the libvirt is on it 0.9.6

Anatoliy Guskov notifications@github.com编写:

Linux distro?


Reply to this email directly or view it on GitHub:
https://github.com/retspen/webvirtmgr/issues/2#issuecomment-8243374

<!-- gh-comment-id:8243499 --> @wangsuyi640 commented on GitHub (Sep 3, 2012): fedora 16 the libvirt is on it 0.9.6 Anatoliy Guskov notifications@github.com编写: > Linux distro? > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/retspen/webvirtmgr/issues/2#issuecomment-8243374
Author
Owner

@retspen commented on GitHub (Sep 3, 2012):

Tried to install or upgrade 0.9.6?

<!-- gh-comment-id:8243676 --> @retspen commented on GitHub (Sep 3, 2012): Tried to install or upgrade 0.9.6?
Author
Owner

@Bloodoff commented on GitHub (Sep 4, 2012):

Work on Fedora 17

<!-- gh-comment-id:8251824 --> @Bloodoff commented on GitHub (Sep 4, 2012): Work on Fedora 17
Author
Owner

@wangsuyi640 commented on GitHub (Sep 4, 2012):

Thanks. I will try it.

ÔÚ 2012-09-04 11:51:04£¬Bloodoff notifications@github.com дµÀ£º

Work on Fedora 17

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8256493 --> @wangsuyi640 commented on GitHub (Sep 4, 2012): Thanks. I will try it. ÔÚ 2012-09-04 11:51:04£¬Bloodoff notifications@github.com дµÀ£º Work on Fedora 17 ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

@retspen commented on GitHub (Sep 4, 2012):

Tested on fedora 16 with libvirt-0.9.6 - work fine!

<!-- gh-comment-id:8256973 --> @retspen commented on GitHub (Sep 4, 2012): Tested on fedora 16 with libvirt-0.9.6 - work fine!
Author
Owner

@wangsuyi640 commented on GitHub (Sep 4, 2012):

Could list your steps to install it ?

Do your follow the steps given by this page "https://github.com/retspen/webvirtmgr" only ? Or anything else ?

I still can not get it work. Need your help. Thanks a lot.

ÔÚ 2012-09-04 17:17:13£¬"Anatoliy Guskov" notifications@github.com дµÀ£º

Tested on fedora 16 with libvirt-0.9.6 - work fine!

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8261297 --> @wangsuyi640 commented on GitHub (Sep 4, 2012): Could list your steps to install it ? Do your follow the steps given by this page "https://github.com/retspen/webvirtmgr" only ? Or anything else ? I still can not get it work. Need your help. Thanks a lot. ÔÚ 2012-09-04 17:17:13£¬"Anatoliy Guskov" notifications@github.com дµÀ£º Tested on fedora 16 with libvirt-0.9.6 - work fine! ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

@Bloodoff commented on GitHub (Sep 4, 2012):

I have see the same error:
have to read http://libvirt.org/html/libvirt-libvirt.html#virNodeGetMemoryStats
in Python this function can't require the 5 params. It's not normal behaviour.
May be the python libvirt library installed not properly, but I just upgrade FC16 to FC17 and got working application.

or quick and dirty workaround :
in file webvirtmgr/overview/views.py replace
get_freemem = conn.getMemoryStats(-1,0)
with
get_freemem=0
and
cpu = conn.getCPUStats(-1,0)
with
cpu=0

<!-- gh-comment-id:8268346 --> @Bloodoff commented on GitHub (Sep 4, 2012): I have see the same error: have to read http://libvirt.org/html/libvirt-libvirt.html#virNodeGetMemoryStats in Python this function can't require the 5 params. It's not normal behaviour. May be the python libvirt library installed not properly, but I just upgrade FC16 to FC17 and got working application. or quick and dirty workaround : in file webvirtmgr/overview/views.py replace get_freemem = conn.getMemoryStats(-1,0) with get_freemem=0 and cpu = conn.getCPUStats(-1,0) with cpu=0
Author
Owner

@wangsuyi640 commented on GitHub (Sep 4, 2012):

Can you share your steps on FC17 ?
Thanks a lot!

At 2012-09-04 23:57:58,Bloodoff notifications@github.com wrote:

I have see the same error:
have to read http://libvirt.org/html/libvirt-libvirt.html#virNodeGetMemoryStats
in Python this function can't require the 5 params. It's not normal behaviour.
May be the python libvirt library installed not properly, but I just upgrade FC16 to FC17 and got working application.

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8268446 --> @wangsuyi640 commented on GitHub (Sep 4, 2012): Can you share your steps on FC17 ? Thanks a lot! At 2012-09-04 23:57:58,Bloodoff notifications@github.com wrote: I have see the same error: have to read http://libvirt.org/html/libvirt-libvirt.html#virNodeGetMemoryStats in Python this function can't require the 5 params. It's not normal behaviour. May be the python libvirt library installed not properly, but I just upgrade FC16 to FC17 and got working application. ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

@Bloodoff commented on GitHub (Sep 4, 2012):

After upgrade it's just working

<!-- gh-comment-id:8268575 --> @Bloodoff commented on GitHub (Sep 4, 2012): After upgrade it's just working
Author
Owner

@wangsuyi640 commented on GitHub (Sep 4, 2012):

Sounds good. I will try it. Thanks a lot!

ÔÚ 2012-09-05 00:03:33£¬Bloodoff notifications@github.com дµÀ£º

After upgrade it's just working

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8268982 --> @wangsuyi640 commented on GitHub (Sep 4, 2012): Sounds good. I will try it. Thanks a lot! ÔÚ 2012-09-05 00:03:33£¬Bloodoff notifications@github.com дµÀ£º After upgrade it's just working ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

@wangsuyi640 commented on GitHub (Sep 4, 2012):

still failed. Can someone share the steps with me ? But not just tell the version!!!

ÔÚ 2012-09-05 00:03:33£¬Bloodoff notifications@github.com дµÀ£º

After upgrade it's just working

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8271019 --> @wangsuyi640 commented on GitHub (Sep 4, 2012): still failed. Can someone share the steps with me ? But not just tell the version!!! ÔÚ 2012-09-05 00:03:33£¬Bloodoff notifications@github.com дµÀ£º After upgrade it's just working ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

@wangsuyi640 commented on GitHub (Sep 4, 2012):

On FC17 , the error is :

Error connecting: Check the KVM login and KVM password

How can I set the password ?

ÔÚ 2012-09-05 00:03:33£¬Bloodoff notifications@github.com дµÀ£º

After upgrade it's just working

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8271285 --> @wangsuyi640 commented on GitHub (Sep 4, 2012): On FC17 , the error is : Error connecting: Check the KVM login and KVM password How can I set the password ? ÔÚ 2012-09-05 00:03:33£¬Bloodoff notifications@github.com дµÀ£º After upgrade it's just working ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

@retspen commented on GitHub (Sep 4, 2012):

Sorry, my fedora 16 have custom libvirt for develop and all work fine. If you have problem connect to hypervisor, test in console "virsh -c qemu-tcp://127.0.0.1/system nodeinfo"

<!-- gh-comment-id:8271655 --> @retspen commented on GitHub (Sep 4, 2012): Sorry, my fedora 16 have custom libvirt for develop and all work fine. If you have problem connect to hypervisor, test in console "virsh -c qemu-tcp://127.0.0.1/system nodeinfo"
Author
Owner

@retspen commented on GitHub (Sep 4, 2012):

Your read docs? Link located near the logo.

<!-- gh-comment-id:8271779 --> @retspen commented on GitHub (Sep 4, 2012): Your read docs? Link located near the logo.
Author
Owner

@wangsuyi640 commented on GitHub (Sep 5, 2012):

On FC 17, follow the docs metioned, I get it worked! Howerver, still failed on FC 16.

Thank you, two nice persons! Have a good night !

ÔÚ 2012-09-05 01:34:54£¬"Anatoliy Guskov" notifications@github.com дµÀ£º

Your read docs? Link located near the logo.

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8285313 --> @wangsuyi640 commented on GitHub (Sep 5, 2012): On FC 17, follow the docs metioned, I get it worked! Howerver, still failed on FC 16. Thank you, two nice persons! Have a good night ! ÔÚ 2012-09-05 01:34:54£¬"Anatoliy Guskov" notifications@github.com дµÀ£º Your read docs? Link located near the logo. ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

@wangsuyi640 commented on GitHub (Sep 15, 2012):

Hi:
On FC 17 , I try your project successfully, it is so good!
Howerver, I find that maybe one important feature is missing : migrate, I think it is not so hard to do this. Do you have any plan for this, I think I can give
some help, to make the perfect project more perfect!

Thanks.

At 2012-09-05 09:50:50,"ÍõÔóºé" wangsuyi640@126.com wrote:

On FC 17, follow the docs metioned, I get it worked! Howerver, still failed on FC 16.

Thank you, two nice persons! Have a good night !

ÔÚ 2012-09-05 01:34:54£¬"Anatoliy Guskov" notifications@github.com дµÀ£º

Your read docs? Link located near the logo.

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8584947 --> @wangsuyi640 commented on GitHub (Sep 15, 2012): Hi: On FC 17 , I try your project successfully, it is so good! Howerver, I find that maybe one important feature is missing : migrate, I think it is not so hard to do this. Do you have any plan for this, I think I can give some help, to make the perfect project more perfect! Thanks. At 2012-09-05 09:50:50,"ÍõÔóºé" wangsuyi640@126.com wrote: On FC 17, follow the docs metioned, I get it worked! Howerver, still failed on FC 16. Thank you, two nice persons! Have a good night ! ÔÚ 2012-09-05 01:34:54£¬"Anatoliy Guskov" notifications@github.com дµÀ£º Your read docs? Link located near the logo. ¡ª Reply to this email directly or view it on GitHub.
Author
Owner

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

The beta releases support live migration, but there are some difficulties with migration. As soon as the end all be testing required Includes the release.

<!-- gh-comment-id:8621722 --> @retspen commented on GitHub (Sep 17, 2012): The beta releases support live migration, but there are some difficulties with migration. As soon as the end all be testing required Includes the release.
Author
Owner

@wangsuyi640 commented on GitHub (Sep 18, 2012):

As I know, there are two solutions of migration, static and dynamic Well, the static one may be more easier, however the dynamic one is more useful, :)
Do you plan to realize both of them ?

Thanks.

At 2012-09-18 00:40:02,"Anatoliy Guskov" notifications@github.com wrote:

The beta releases support live migration, but there are some difficulties with migration. As soon as the end all be testing required Includes the release.

¡ª
Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:8637343 --> @wangsuyi640 commented on GitHub (Sep 18, 2012): As I know, there are two solutions of migration, static and dynamic Well, the static one may be more easier, however the dynamic one is more useful, :) Do you plan to realize both of them ? Thanks. At 2012-09-18 00:40:02,"Anatoliy Guskov" notifications@github.com wrote: The beta releases support live migration, but there are some difficulties with migration. As soon as the end all be testing required Includes the release. ¡ª Reply to this email directly or view it on GitHub.
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#1
No description provided.