-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ipdevpoll fails to start after upgrade to 5.8.0 #2767
Comments
Thanks for your report! You are probably correct. SNMP versions are stored as strings in management profiles, but it seems there is some confusion about whether version 2 is stored as This is a bad regression, so we'll get on it ASAP. |
@Zotan Can you confirm that your profiles actually use the string If you can connect to your NAV's PostgreSQL database (typically using SELECT DISTINCT ON (version)
configuration::jsonb -> 'version'::text AS version
FROM
management_profile
WHERE
protocol = 1;
|
While all data we have has SNMPv2c profiles store their version number as either the string or the integer 2, some users report that they appear to be stored as the string `2c`, which crashes ipdevpoll's `SNMPParameters.factory()` method.
`ManagementProfile.snmp_version` already does the heavy lifting for us when it comes to parse the SNMP version value of an SNMP profile, so let's use that instead to avoid issues like the one described in Uninett#2767
@lunkwill42 It looks like I have it once.
|
Strangeness. Only thing I can think of is that NAV changed this at some point, but I can't remember when it might have been. There's a fix in the pipeline for review now, at #2768 - but maybe you would be able to work around it by editing your SNMP v2c profiles by changing them to version 1 and then back to 2? |
So, this is fixed by #2768 and will be out in a release soon. I think I also have found the source of your problem:
This problem will be exclusive to those whose first installed NAV version was 5.0 or later. The above-linked migration script installs an example SNMP v2c profile for the SeedDB will never store a value of |
@lunkwill42 Thanks for the 5.8.1 release, ipdevpoll is back to normal. FYI with 5.8.0 the web interface was not accessible for me, with an exception trace in the apache log. So I couldn't use your workaround. Should I post that trace somewhere? Or should I just move on as the problem no longer exists? |
Ah sorry, just seen that this a known issue in the 5.8.1 release notes about ciscoconfparse, so already fixed. |
Describe the bug
I have Nav installed on Debian Buster using the debian packages and after upgrade to 5.8.0 ipdevpoll fails to start. The end of the back trace is:
It appears to reject 2c as a valid SNMP version
To Reproduce
Expected behaviour
After upgrade, notice that version has changed to 5.8.0 in the web interface
Tracebacks
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: