-
Bug
-
Resolution: Done
-
Major
-
None
-
9.x
-
Low
-
rhel-sst-network-management
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
CCS 2024-16
-
None
-
Unspecified
-
Unspecified
-
Unspecified
Document link:
Chapter 39. Introduction to Nmstate
Section number and name:
39.1. Using the libnmstate library in a Python application
Describe the issue:
Documentation says, "Note that you must install the nmstate package to use this library."
This note is incomplete as installing the nmstate package in RHEL 9.4 does not install the necessary Python packages.
In RHEL 8.10, the nmstate package does install the Python packages.
Suggestions for improvement:
Modify nmstate package to include dependencies or document the additional packages needed.
Additional information:
On RHEL 8.10, nmstate installs the Python packages
$ sudo dnf install nmstate
Updating Subscription Management repositories.
Last metadata expiration check: 1:27:33 ago on Sun 28 Jul 2024 04:33:38 PM PDT.
Dependencies resolved.
===========================================================================================================================
Package Architecture Version Repository Size
===========================================================================================================================
Installing:
nmstate x86_64 1.4.6-2.el8_10 rhel-8-for-x86_64-appstream-rpms 2.4 M
Installing dependencies:
nispor x86_64 1.2.10-1.el8 rhel-8-for-x86_64-appstream-rpms 1.7 M
python3-jsonschema noarch 2.6.0-4.el8 rhel-8-for-x86_64-appstream-rpms 82 k
python3-libnmstate noarch 1.4.6-2.el8_10 rhel-8-for-x86_64-appstream-rpms 308 k
python3-nispor noarch 1.2.10-1.el8 rhel-8-for-x86_64-appstream-rpms 42 k
python3-varlink noarch 29.0.0-1.el8 rhel-8-for-x86_64-baseos-rpms 49 k
Installing weak dependencies:
NetworkManager-config-server noarch 1:1.40.16-15.el8_9 rhel-8-for-x86_64-baseos-rpms 143 kTransaction Summary
===========================================================================================================================
Install 7 Packages
Total download size: 4.7 M
Installed size: 14 M
On RHEL 9.4, the Python packages need to be installed separately:
$ sudo dnf install nispor python3-jsonschema python3-libnmstate python3-nispor python3-varlink NetworkManager-config-server
Updating Subscription Management repositories.
Last metadata expiration check: 0:13:50 ago on Sun 28 Jul 2024 05:47:35 PM PDT.
Package python3-jsonschema-3.2.0-13.el9.noarch is already installed.
No match for argument: python3-varlink
Package NetworkManager-config-server-1:1.46.0-13.el9_4.noarch is already installed.
Error: Unable to find a match: python3-varlink
$ sudo dnf install nispor python3-jsonschema python3-libnmstate python3-nispor
Updating Subscription Management repositories.
Last metadata expiration check: 0:14:20 ago on Sun 28 Jul 2024 05:47:35 PM PDT.
Package python3-jsonschema-3.2.0-13.el9.noarch is already installed.
Dependencies resolved.
===========================================================================================================================
Package Architecture Version Repository Size
===========================================================================================================================
Installing:
nispor x86_64 1.2.14-1.el9 rhel-9-for-x86_64-appstream-rpms 1.5 M
python3-libnmstate x86_64 2.2.33-1.el9_4 rhel-9-for-x86_64-appstream-rpms 50 k
python3-nispor noarch 1.2.14-1.el9 rhel-9-for-x86_64-appstream-rpms 58 k
Installing dependencies:
nmstate-libs x86_64 2.2.33-1.el9_4 rhel-9-for-x86_64-appstream-rpms 2.4 MTransaction Summary
===========================================================================================================================
Install 4 Packages
Total download size: 4.0 M
Installed size: 13 M