Where 'host' was a valid hostname which would be resolved using the DNS search path (or hosts file).
When attempting to press "Save" on the settings screen, an internal server error was displayed, giving me no indication about what the problem was. The following exception was seen in the logs:
2015-04-01 18:35:58 [HTTPChannel,3,127.0.0.1] 500 Error - /MAAS/settings/
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 206, in __call__ response = self.get_response(request)
File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 166, in get_response response = get_response(request)
File "/usr/lib/python2.7/dist-packages/maasserver/utils/views.py", line 140, in get_response
return django_get_response(request)
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 194, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
--- <exception caught here> ---
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py", line 22, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/maasserver/views/settings.py", line 205, in settings 'boot_source', "Configuration updated.")
File "/usr/lib/python2.7/dist-packages/maasserver/views/__init__.py", line 219, in process_form form.save()
File "/usr/lib/python2.7/dist-packages/maasserver/forms.py", line 1408, in save boot_source.save()
File "/usr/lib/python2.7/dist-packages/maasserver/models/cleansave.py", line 37, in save self.full_clean()
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 950, in full_clean
raise ValidationError(errors) django.core.exceptions.ValidationError: {'url': [u'Enter a valid URL.']}
I saw the following exception when trying to set my boot image sync URL to a URL in the format:
http:// host/maas/ images/ ephemeral- v2/releases/
Where 'host' was a valid hostname which would be resolved using the DNS search path (or hosts file).
When attempting to press "Save" on the settings screen, an internal server error was displayed, giving me no indication about what the problem was. The following exception was seen in the logs:
2015-04-01 18:35:58 [HTTPChannel, 3,127.0. 0.1] 500 Error - /MAAS/settings/ python2. 7/dist- packages/ django/ core/handlers/ wsgi.py" , line 206, in __call__
response = self.get_ response( request) python2. 7/dist- packages/ maasserver/ utils/views. py", line 166, in get_response
response = get_response( request) python2. 7/dist- packages/ maasserver/ utils/views. py", line 140, in get_response get_response( request) python2. 7/dist- packages/ django/ core/handlers/ base.py" , line 194, in get_response
response = self.handle_ uncaught_ exception( request, resolver, sys.exc_info()) python2. 7/dist- packages/ django/ core/handlers/ base.py" , line 112, in get_response
response = wrapped_ callback( request, *callback_args, **callback_kwargs) python2. 7/dist- packages/ django/ contrib/ auth/decorators .py", line 22, in _wrapped_view python2. 7/dist- packages/ maasserver/ views/settings. py", line 205, in settings
'boot_ source' , "Configuration updated.") python2. 7/dist- packages/ maasserver/ views/_ _init__ .py", line 219, in process_form
form. save() python2. 7/dist- packages/ maasserver/ forms.py" , line 1408, in save
boot_ source. save() python2. 7/dist- packages/ maasserver/ models/ cleansave. py", line 37, in save
self. full_clean( ) python2. 7/dist- packages/ django/ db/models/ base.py" , line 950, in full_clean (errors)
django. core.exceptions .ValidationErro r: {'url': [u'Enter a valid URL.']}
Traceback (most recent call last):
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
return django_
File "/usr/lib/
--- <exception caught here> ---
File "/usr/lib/
File "/usr/lib/
return view_func(request, *args, **kwargs)
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
File "/usr/lib/
raise ValidationError