Clicking the magic wand causes http 500 ...
... in host creation
Internal Server Error: /network/hosts/create
Traceback (most recent call last):
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
return self.dispatch(request, *args, **kwargs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/braces/views/_access.py", line 98, in dispatch
request, *args, **kwargs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/braces/views/_access.py", line 381, in dispatch
request, *args, **kwargs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "./network/views.py", line 79, in get
result = self._get_ajax(*args, **kwargs)
File "./network/views.py", line 396, in _get_ajax
vlan = get_object_or_404(Vlan.objects, pk=GET.get("vlan", "")) <---- this looks fishy
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/shortcuts.py", line 155, in get_object_or_404
return queryset.get(*args, **kwargs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/query.py", line 325, in get
clone = self.filter(*args, **kwargs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/query.py", line 679, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/query.py", line 697, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1310, in add_q
clause, require_inner = self._add_q(where_part, self.used_aliases)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1338, in _add_q
allow_joins=allow_joins, split_subq=split_subq,
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1209, in build_filter
condition = self.build_lookup(lookups, col, value)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1102, in build_lookup
return final_lookup(lhs, rhs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/lookups.py", line 105, in __init__
self.rhs = self.get_prep_lookup()
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/lookups.py", line 143, in get_prep_lookup
return self.lhs.output_field.get_prep_lookup(self.lookup_name, self.rhs)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 727, in get_prep_lookup
return self.get_prep_value(value)
File "/home/cloud/.virtualenvs/circle/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 985, in get_prep_value
return int(value)
ValueError: invalid literal for int() with base 10: ''
Please
register
or
sign in
to comment