Selecting a datasource for bulk threshold config intermittently fails with "internal server error"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Network Administration Visualized |
Fix Released
|
Medium
|
Morten Brekkevold | ||
3.15 |
Fix Released
|
Medium
|
Morten Brekkevold |
Bug Description
Threshold bulk config runs an AJAX request when a data source type is selected. This will intermittently fail with a "internal server error".
The traceback posted by Django via e-mail looks like this (NAV 3.14.1):
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
query = Netbox.
File "/usr/lib/
return self.get_
File "/usr/lib/
return self._filter_
File "/usr/lib/
clone.
File "/usr/lib/
can_
File "/usr/lib/
negate=negate, process_
File "/usr/lib/
"Choices are: %s" % (name, ", ".join(names)))
FieldError: Cannot resolve keyword 'rrdfile' into field. Choices are: adjacencycandidate, alerthistory, alertqueue, arp, cam, category, connected_
<ModPythonRequest
path:/threshold
GET:<QueryDict: {}>,
POST:<QueryDict: {u'descr': [u'ifHCInOctets
COOKIES:
META:{'AUTH_TYPE': None,
'CONTENT_LENGTH': '18',
'CONTENT_TYPE': 'application/
'GATEWAY_
'HTTP_ACCEPT': 'application/json, text/javascript, */*; q=0.01',
'HTTP_
'HTTP_
'HTTP_
'HTTP_
'HTTP_CONNECTION': 'keep-alive',
'HTTP_
'HTTP_
'HTTP_COOKIE': 'nav_sessid=
'HTTP_HOST': 'nav.example.org',
'HTTP_ORIGIN': 'https:/
'HTTP_REFERER': 'https:/
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.43 Safari/537.31',
'HTTP_X_NAV_AJAX': 'true',
'HTTP_
'PATH_INFO': u'/threshold/
'PATH_TRANSLATED': None,
'QUERY_STRING': None,
'REMOTE_ADDR': 'REDACTED',
'REMOTE_HOST': None,
'REMOTE_IDENT': None,
'REMOTE_USER': None,
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': '',
'SERVER_NAME': 'nav.example.org',
'SERVER_PORT': 443,
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SOFTWARE': 'mod_python'}>
Changed in nav: | |
status: | Fix Committed → Fix Released |
status: | Fix Released → Fix Committed |
Changed in nav: | |
status: | Fix Committed → Fix Released |
Seems the order in which the Netbox and RrrFile models are imported play a key role in this.