I followed Docker Installation , use latest code commit: 4ff77e31c11599571e91d3d2945e4b1cdb83a2d2.
login with admin,
choose instances, it worked fine.
but when choose computes, errors show like:
Page not found (404)
Request Method: | GET
http://myhost:80/computes/
Using the URLconf defined in webvirtcloud.urls, Django tried these URL patterns, in this order:
^$ [name='index']
^instances/
^accounts/
^computes/ ^/ [name='computes']
^computes/ ^(?P<compute_id>[0-9]+)/$ [name='overview']
^computes/ ^(?P<compute_id>[0-9]+)/statistics$ [name='compute_graph']
^computes/ ^(?P<compute_id>[0-9]+)/instances/$ [name='instances']
^computes/ ^(?P<compute_id>[0-9]+)/storages/$ [name='storages']
^computes/ ^(?P<compute_id>[0-9]+)/storage/(?P<pool>[\w\-\.\/]+)/volumes$ [name='volumes']
^computes/ ^(?P<compute_id>[0-9]+)/storage/(?P<pool>[\w\-\.\/]+)/$ [name='storage']
^computes/ ^(?P<compute_id>[0-9]+)/networks/$ [name='networks']
^computes/ ^(?P<compute_id>[0-9]+)/network/(?P<pool>[\w\-\.]+)/$ [name='network']
^computes/ ^(?P<compute_id>[0-9]+)/interfaces/$ [name='interfaces']
^computes/ ^(?P<compute_id>[0-9]+)/interface/(?P<iface>[\w\-\.\:]+)/$ [name='interface']
^computes/ ^(?P<compute_id>[0-9]+)/nwfilters/$ [name='nwfilters']
^computes/ ^(?P<compute_id>[0-9]+)/nwfilter/(?P<nwfltr>[\w\-\.\:]+)/$ [name='nwfilter']
^computes/ ^(?P<compute_id>[0-9]+)/secrets/$ [name='secrets']
^computes/ ^(?P<compute_id>[0-9]+)/create/$ [name='create_instance_select_type']
^computes/ ^(?P<compute_id>[0-9]+)/create/archs/(?P<arch>[\w\-\.\/]+)/machines/(?P<machine>[\w\-\.\/]+)$ [name='create_instance']
^computes/ ^(?P<compute_id>[0-9]+)/archs/(?P<arch>[\w\-\.\/]+)/machines$ [name='machines']
^computes/ ^(?P<compute_id>[0-9]+)/archs/(?P<arch>[\w\-\.\/]+)/machines/(?P<machine>[\w\-\.\/]+)/disks/(?P<disk>[\w\-\.\/]+)/buses$ [name='buses']
^computes/ ^(?P<compute_id>[0-9]+)/archs/(?P<arch>[\w\-\.\/]+)/machines/(?P<machine>[\w\-\.\/]+)/capabilities$ [name='domcaps']
^logs/
^datasource/
^console/$ [name='console']
The current path, computes/, didn't match any of these.
I try to modify the code computes/urls.py +12 in docker
from:
url(r'^/', computes, name='computes'),
to
url(r'^$', computes, name='computes'),
then restart the docker, it works.
Is it a special case? Is anyone in the same situation?
@jay0063 yes your are right it is a bug. it works as normal with adding an extra slash(like http://myhost:80/computes//). but it should be fixed. I added a commit to fix.
thanks
I followed Docker Installation , use latest code commit: 4ff77e31c11599571e91d3d2945e4b1cdb83a2d2. login with admin, choose instances, it worked fine. but when choose computes, errors show like:
I try to modify the code computes/urls.py +12 in docker from:
url(r'^/', computes, name='computes'),
tourl(r'^$', computes, name='computes'),
then restart the docker, it works.Is it a special case? Is anyone in the same situation?