Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not start manage #2

Closed
wangsuyi640 opened this issue Sep 3, 2012 · 22 comments
Closed

Can not start manage #2

wangsuyi640 opened this issue Sep 3, 2012 · 22 comments

Comments

@wangsuyi640
Copy link

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"

@Bloodoff
Copy link

Bloodoff commented Sep 3, 2012

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

@retspen
Copy link
Owner

retspen commented Sep 3, 2012

What is your version of libvirt?

@wangsuyi640
Copy link
Author

0.9.2

Anatoliy Guskov notifications@github.com编写:

What is your version of libvirt?


Reply to this email directly or view it on GitHub:
#2 (comment)

@retspen
Copy link
Owner

retspen commented Sep 3, 2012

Linux distro?

@wangsuyi640
Copy link
Author

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:
#2 (comment)

@retspen
Copy link
Owner

retspen commented Sep 3, 2012

Tried to install or upgrade 0.9.6?

@Bloodoff
Copy link

Bloodoff commented Sep 4, 2012

Work on Fedora 17

@wangsuyi640
Copy link
Author

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.

@retspen
Copy link
Owner

retspen commented Sep 4, 2012

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

@wangsuyi640
Copy link
Author

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.

@Bloodoff
Copy link

Bloodoff commented 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

@wangsuyi640
Copy link
Author

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.

@Bloodoff
Copy link

Bloodoff commented Sep 4, 2012

After upgrade it's just working

@wangsuyi640
Copy link
Author

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.

@wangsuyi640
Copy link
Author

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.

@wangsuyi640
Copy link
Author

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.

@retspen
Copy link
Owner

retspen commented 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"

@retspen
Copy link
Owner

retspen commented Sep 4, 2012

Your read docs? Link located near the logo.

@wangsuyi640
Copy link
Author

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.

@wangsuyi640
Copy link
Author

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.

@retspen
Copy link
Owner

retspen commented 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.

@wangsuyi640
Copy link
Author

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants