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:
'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