From b1bf3ce6175e007f304443830a49b641fe0aa96f Mon Sep 17 00:00:00 2001 From: Benjamin Marzinski Date: Wed, 18 Mar 2026 16:38:43 -0400 Subject: [PATCH 054/108] multipath: Add MultipathConfig9to10 and MultipathConfFacts9to10 Add el9toel10 models to track the necessary configuration changes for the upgrade from RHEL-9 to RHEL-10 Jira: RHEL-151509 --- .../el9toel10/models/multipath9to10.py | 59 +++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 repos/system_upgrade/el9toel10/models/multipath9to10.py diff --git a/repos/system_upgrade/el9toel10/models/multipath9to10.py b/repos/system_upgrade/el9toel10/models/multipath9to10.py new file mode 100644 index 00000000..19ef24cf --- /dev/null +++ b/repos/system_upgrade/el9toel10/models/multipath9to10.py @@ -0,0 +1,59 @@ +from leapp.models import fields, Model +from leapp.topics import SystemInfoTopic + + +class MultipathConfig9to10(Model): + """ + Model information about multipath configuration file important for the 9>10 upgrade path. + """ + topic = SystemInfoTopic + + pathname = fields.String() + """Config file path name""" + + config_dir = fields.Nullable(fields.String()) + """ + Value of config_dir in the defaults section. None if not set. + Used both to track config lines that need commenting out and + to determine the actual directory location. + """ + + bindings_file = fields.Nullable(fields.String()) + """ + Value of bindings_file in the defaults section. None if not set. + Used both to track config lines that need commenting out and + to determine the actual file location for copying. + """ + + wwids_file = fields.Nullable(fields.String()) + """ + Value of wwids_file in the defaults section. None if not set. + Used both to track config lines that need commenting out and + to determine the actual file location for copying. + """ + + prkeys_file = fields.Nullable(fields.String()) + """ + Value of prkeys_file in the defaults section. None if not set. + Used both to track config lines that need commenting out and + to determine the actual file location for copying. + """ + + has_socket_activation = fields.Boolean(default=True) + """True if multipathd socket activation is enabled""" + + has_dm_nvme_multipathing = fields.Boolean(default=False) + """True if DM NVMe multipathing is enabled""" + + has_getuid = fields.Boolean(default=False) + """True if the getuid option is set anywhere in the multipath config""" + + +class MultipathConfFacts9to10(Model): + """ + Model representing information from multipath configuration files important for the 9>10 upgrade path. + """ + topic = SystemInfoTopic + + configs = fields.List(fields.Model(MultipathConfig9to10), default=[]) + """List of multipath configuration files""" -- 2.54.0