Webvirt URLconf 404 Errors
by Bryan Taylor
Hi,
Thank you for writing WebVirt. I have setup WebVirt to work with my
existing libvirt, and I am able to see my currently running and defined
domains. Although, most urls I get a 404.
I can navigate to /WebVirt/nodes/capabilities/1 and get an XML output of
my system although If I try to import a domain, or anything else
(destroy, define..) I get a 404 as show below.
I am using:
Gentoo Linux.
Apache 2.2.15
mod_python 3.3.1-r1
django 1.1.2 (installed through portage and webapp-config)
Libvirt 0.8.4
qemu-kvm 0.12.4-r1
Also, really great HTML, divs/lists .. I bet its valid! I wish this
project was more popular, some of the virt managers are very much overly
complex like ovirt. Maybe we can get an update in before 2010 is
out :-D ?
Thank you,
Bryan Taylor
Page not found (404)
Request Method:
GET
Request URL:
http://server/WebVirt/nodes/import_domain/1/fedora-002
Using the URLconf defined in WebVirt.urls, Django tried these URL
patterns, in this order:
1. ^$
2. ^domains/
3. ^storage/
4. ^networks/
5. ^nodes/ ^$
6. ^nodes/ ^(?P<node_id>\d+)/$
7. ^nodes/ ^xml/(?P<node_id>\d+)$
8. ^nodes/ ^capabilities/(?P<node_id>\d+)$
9. ^nodes/ ^define_domain/(?P<node_id>\d+)/(?P<domain_id>\d+)$
10. ^nodes/ ^undefine_domain/(?P<node_id>\d+)/(?P<domain_name>\w+)$
11. ^nodes/ ^import_domain/(?P<node_id>\d+)/(?P<domain_name>\w+)$
12. ^nodes/ ^launch_domain/(?P<node_id>\d+)/(?P<domain_name>\w+)$
13. ^nodes/ ^destroy_domain/(?P<node_id>\d+)/(?P<domain_name>\w+)$
14. ^nodes/ ^toggleAutostart/(?P<node_id>\d+)/(?P<domain_id>\d+)$
15. ^nodes/ ^define_network/(?P<node_id>\d+)/(?P<network_id>\d+)$
16. ^nodes/ ^undefine_network/(?P<node_id>\d+)/(?P<network_name>\w
+)$
17. ^nodes/ ^import_network/(?P<node_id>\d+)/(?P<network_name>\w+)$
18. ^nodes/ ^launch_network/(?P<node_id>\d+)/(?P<network_name>\w+)$
19. ^nodes/ ^destroy_network/(?P<node_id>\d+)/(?P<network_name>\w+)$
20. ^nodes/ ^toggleNetworkAutostart/(?P<node_id>\d
+)/(?P<network_id>\d+)$
21. ^admin/(.*)
22. ^accounts/login/$
The current URL, nodes/import_domain/1/fedora-002, didn't match any of
these.
You're seeing this error because you have DEBUG = True in your Django
settings file. Change that to False, and Django will display a standard
404 page.
Node Page:
Resources
* Capabilities
* Zaoul.xml
Virtual domains
Domains defined on node
* nagios-001 (Start) (Undefine) (Import)
* fedora-002 (Start) (Undefine) (Import)
* freeside-001 (Start) (Undefine) (Import)
* centos-001 (Start) (Undefine) (Import)
* nagios-002 (Start) (Undefine) (Import)
* mysql-001 (Start) (Undefine) (Import)
* win7-64-000 (Start) (Undefine) (Import)
Domains active on node
* sgw-001 (Destroy) [vnc:///:59] (Import)
* dynamips-001 (Destroy) [vnc:///:59] (Import)
* hlds-000 (Destroy) [vnc:///:59] (Import)
* Default-Gentoo-Genkernel-2.6.32-gentoo-r7 (Destroy) [vnc:///:59]
(Import)
* request-tracker-001 (Destroy) [vnc:///:59] (Import)
* freeside-002 (Destroy) [vnc:///:59] (Import)
apache config:
Alias /media /var/www/localhost/htdocs/WebVirt/media
Alias /WebVirt /var/www/localhost/htdocs/WebVirt
<Location "/WebVirt/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE WebVirt.settings
PythonOption django.root /WebVirt
PythonDebug On
PythonPath "['/var/www/localhost/htdocs'] + sys.path"
</Location>
<Directory "/var/www/localhost/htdocs/WebVirt/media">
SetHandler None
</Directory>
ll /var/www/localhost/htdocs/WebVirt
total 144K
-rw-r----- 1 apache apache 408 Oct 29 19:49 apache-WebVirt.conf
-rwxr-x--- 1 apache apache 940 Oct 29 19:49 Create_Blank_Database
drwxr-xr-x 2 apache apache 4.0K Oct 29 19:51 css
drwxr-x--- 3 apache apache 4.0K Oct 29 20:52 domains
drwxr-xr-x 4 apache apache 4.0K Oct 29 19:51 img
drwxr-x--- 3 apache apache 4.0K Oct 29 20:00 index
-rw-r----- 1 apache apache 0 Oct 29 19:49 __init__.py
-rw-r----- 1 apache apache 143 Oct 29 19:50 __init__.pyc
drwxr-xr-x 3 apache apache 4.0K Oct 29 19:51 js
-rw-r----- 1 apache apache 732 Oct 29 19:49 License
-rwxr-x--- 1 apache apache 546 Oct 29 20:13 manage.py
drwxr-x--- 7 apache apache 4.0K Oct 29 19:49 media
drwxr-x--- 3 apache apache 4.0K Oct 29 20:04 networks
drwxr-x--- 3 apache apache 4.0K Oct 29 20:52 nodes
-rw-r----- 1 apache apache 41 Oct 29 19:49 README
-rw-r----- 1 apache apache 3.8K Oct 29 20:13 settings.py
-rw-r----- 1 apache apache 2.9K Oct 29 20:22 settings.pyc
drwxr-x--- 3 apache apache 4.0K Oct 29 20:00 storage
drwxr-x--- 10 apache apache 4.0K Oct 29 19:49 templates
-rw-r----- 1 apache apache 1.6K Oct 29 20:29 urls.py
-rw-r----- 1 apache apache 1.6K Oct 29 20:29 urls.pyc
-rw-r----- 1 apache apache 59K Oct 29 20:56 WebVirt.db
13 years, 6 months