[Pkg-nagios-devel] Bug#937103: nagios-plugins-contrib: Python2 removal in sid/bullseye

Sandro Tosi morph at debian.org
Mon Dec 30 21:29:15 GMT 2019


> nagios-plugins-contrib is virtually the only rdep for python-pymongo,
> and it looks like the code from the last update already supports
> python3: could you change check_mongodb/check_mongodb.py shebang to
> point to py3k and update the recommends to python3-pymongo? this way
> we could drop the py2 support from src:pymongo. there's a percona
> mongo check too, but tbh it hasnt been updated in 5 years upstream,
> and python-pymongo is only a suggests there, so maybe we can ignore
> it?
>
> other checks depending on python2:
>
> * check_graphite/check_graphite.py
>   - very old check (upstream last change 8years ago)
>   - does it even work anymore?
>   - seems trivial to port to python3, a quick `2to3` reveals just some
> very basic changes
> * check_libs_ng/check_libs_ng
>   - this looks almost ready to get its shebang switched to py3k, small
> `2to3` fix to apply
> * percona-nagios-plugins/nagios/bin/pmp-check-aws-rds.py
>   - really old script, should be verified if it still works properly
>   - `2to3` suggests really basic changes, maybe let's apply them?
>
> please let me know what you think about this, definitely prioritizing
> dropping python-pymongo would help a lot; i can help
> preparing/committing the changes, but i wont be able to test them out
> myself in real-world examples.

I've opened https://salsa.debian.org/nagios-team/pkg-nagios-plugins-contrib/merge_requests/4
to port the py2 checks to python3 (i didnt really test them tho) and
the various bits of packaging that required change either to the py3k
port or to make the package build.

please let me know what you think about it, if i dont hear back within
week, i'll very likely NMU 0-day the package (so that we can remove
the python2 package from pymongo, since this package is the last rdeps
of them).

Thanks,
-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
Twitter: https://twitter.com/sandrotosi



More information about the Pkg-nagios-devel mailing list