Checking libnm/NM version mismatch
- From: Till Maas <till redhat com>
- To: nmstate-devel lists fedorahosted org, networkmanager-list gnome org
- Subject: Checking libnm/NM version mismatch
- Date: Fri, 22 Nov 2019 21:52:41 +0100
Hi,
one of the Nmstate ours accidentally used Nmstate on a machine after
updating NM without restarting it on CentOS 8. Therefore the system
used libnm 1.20 with NM 1.14. This resulted in an error like
Connection adding failed: error=nm-connection-error-quark:
bridge.vlans: unknown property (7)
How can we improve this error message?
My initial idea would be to compare the versions of NM and libnm in
Nmstate and warn/abort if there is a mismatch:
AFAICS we can check the NM version with NMClient.get_version() and the
libnm version seems to be available with
struct.unpack("xBBB", struct.pack(">I", NM.utils_version()))
(not so convenient that the version identifiers are in different
encodings, to be honest).
How about we add a warning/an error to Nmstate in case the versions
mismatch? Do you prefer a warning or an error? Do you have other
suggestions?
Kind regards
Till
--
Till Maas
He/His/Him
Ansible RHEL Networking System Role Maintainer
Red Hat GmbH, https://www.redhat.com/de, Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Michael O'Neill, Tom Savage, Eric Shander
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]