Ganeti Web Manager errors

65 views
Skip to first unread message

Brian Beverage

unread,
May 8, 2014, 11:43:07 AM5/8/14
to ganeti...@googlegroups.com
Hello everyone,

I am using Ganeti 2.10.3 and Ganeti Web Manager 0.10.2

When I try to edit a VM I get the following error:
KeyError at /cluster/node1/iface.adn.com/edit
'memory'
Request Method: POST
Django Version: 1.4.12
Exception Type: KeyError
Exception Value:
'memory'
Exception Location: /srv/ganeti/ganeti_webmgr/ganeti_web/forms/virtual_machine.py in check_quota_modify, line 192
Python Executable: /srv/ganeti/ganeti_webmgr/venv/bin/python
Python Version: 2.7.3
Python Path:
['/srv/ganeti/ganeti_webmgr',
 '/srv/ganeti/ganeti_webmgr/dependencies/twisted_vncauthproxy',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/plat-linux2',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-tk',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-old',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/srv/ganeti/ganeti_webmgr/venv/local/lib/python2.7/site-packages',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/site-packages']
Server time: Wed, 7 May 2014 15:35:14 -0500
Which I have "fixed" in my copy just by removing the offending object "data['memory'] on line 192"
I also get errors when trying to create a VM from a template. The first error I get is:
AttributeError at /cluster/node1/template/CentOS65/vm
'VirtualMachineTemplate' object has no attribute 'hypervisor'
Request Method: POST
Django Version: 1.4.12
Exception Type: AttributeError
Exception Value:
'VirtualMachineTemplate' object has no attribute 'hypervisor'
Exception Location: /srv/ganeti/ganeti_webmgr/ganeti_web/backend/templates.py in template_to_instance, line 91
Python Executable: /srv/ganeti/ganeti_webmgr/venv/bin/python
Python Version: 2.7.3
Python Path:
['/srv/ganeti/ganeti_webmgr',
 '/srv/ganeti/ganeti_webmgr/dependencies/twisted_vncauthproxy',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/plat-linux2',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-tk',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-old',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/srv/ganeti/ganeti_webmgr/venv/local/lib/python2.7/site-packages',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/site-packages']
Server time: Wed, 7 May 2014 15:37:45 -0500
I found my way around this error by initializing the object before it is called.(Line 91) This works for me since I am only using KVM. I assume that the template should contain a value for the hypervisor? Once I fix this error I get this error.
AttributeError at /cluster/node1/template/CentOS65/vmn
'VirtualMachineTemplate' object has no attribute 'no_start'
Request Method: POST
Django Version: 1.4.12
Exception Type: AttributeError
Exception Value:
'VirtualMachineTemplate' object has no attribute 'no_start'
Exception Location: /srv/ganeti/ganeti_webmgr/ganeti_web/backend/templates.py in template_to_instance, line 130
Python Executable: /srv/ganeti/ganeti_webmgr/venv/bin/python
Python Version: 2.7.3
Python Path:
['/srv/ganeti/ganeti_webmgr',
 '/srv/ganeti/ganeti_webmgr/dependencies/twisted_vncauthproxy',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/plat-linux2',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-tk',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-old',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/srv/ganeti/ganeti_webmgr/venv/local/lib/python2.7/site-packages',
 '/srv/ganeti/ganeti_webmgr/venv/lib/python2.7/site-packages']
Server time: Wed, 7 May 2014 15:42:56 -0500
I can fix this as well by setting a default value  template.no_start = 'false' (line 130)
this allows me to get past this point but then I get a 404 error. The page looks like the attached screenshot (GWN404.png)
It looks like the VM is not created but when I look at the VM page I see this attached screenshot (GWMVm.png).
When I click on the VM from the Virtual Machines link I see the same 404 as above.

Thanks for any help it is appreciated.

Thanks,
Brian Beverage

GWM404.png
GWMVm.png

Brian Beverage

unread,
May 8, 2014, 5:05:21 PM5/8/14
to ganeti...@googlegroups.com
I discovered the problem when creating a VM from template. It turns out that it was failing on the Ganeti side because I had not set up DNS for the template. Once I unchecked verify IP and Verify Hostname through DNS the template creates the VM!

Thanks,
Brian

Brian Beverage

unread,
May 8, 2014, 5:13:00 PM5/8/14
to ganeti...@googlegroups.com
That is after I made the changes above to get to the point of being able to create the VM from the Template.

Thanks,
Brian

Chance Zibolski

unread,
May 9, 2014, 4:29:45 PM5/9/14
to ganeti...@googlegroups.com
Brian, I was able to replicate these issues locally, I see where the bug was introduced, in fact it was introduced trying to fix a problem where none of the hypervisor params were being sent when creating a VM. I'm going to try and fix these today, shouldn't be very hard at all.

I'll give you an update of the bug and where you can get the fixes after I've resolved the problems and tested.

- Chance


--
You received this message because you are subscribed to the Google Groups "ganeti-webmgr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ganeti-webmg...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Beverage

unread,
May 9, 2014, 4:33:59 PM5/9/14
to ganeti...@googlegroups.com
Thanks Chance for the update. I appreciate the help.

Thanks,
Brian
Reply all
Reply to author
Forward
0 new messages