-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
rhel-9.8
-
None
-
None
-
None
-
rhel-virt-tools
-
None
-
False
-
False
-
-
None
-
None
-
None
-
None
-
Unspecified
-
Unspecified
-
Unspecified
-
-
x86_64
-
None
What were you trying to do that didn't work?
After a leapp upgrade from RHEL-8.10 to RHEL-9.8, I began to run my Fibre Channel automation which failed due to the following error:
[2026-01-15 16:22:16] INFO: Removing 'enable_foreign "^$"' line from /etc/multipath.conf [2026-01-15 16:22:54] FAIL:(libsan.host.mp) unable to set /blacklist/wwid to .*. Try FAIL:(__main__) Cannot setup multipath config [2026-01-15 16:22:54] INFO: Restoring multipath configuration from /etc/multipath.conf_hba_test_bak_20260115162215 INFO: [2026-01-15 16:22:54] Running: 'cp -f /etc/multipath.conf_hba_test_bak_20260115162215 /etc/multipath.conf'...
After further analysis, the /etc/multipath.conf file contains an 'allow_usb_devices yes' directive that was added by Leapp during the upgrade:
defaults {
allow_usb_devices yes # line added by Leapp
...
}
The RHEL 9 augeas multipath lens (/usr/share/augeas/lenses/dist/multipath.aug) does not recognize the allow_usb_devices directive, causing augeas to fail to parse the entire multipath.conf file.
# augtool <<EOF
set /files/etc/multipath.conf/blacklist/wwid ".*"
print /augeas/files/etc/multipath.conf/error
EOF
/augeas/files/etc/multipath.conf/error = "parse_failed"
/augeas/files/etc/multipath.conf/error/pos = "271"
/augeas/files/etc/multipath.conf/error/line = "12"
/augeas/files/etc/multipath.conf/error/char = "0"
/augeas/files/etc/multipath.conf/error/lens = "/usr/share/augeas/lenses/dist/multipath.aug:133.10-.64:"
/augeas/files/etc/multipath.conf/error/lens/last_matched = "/usr/share/augeas/lenses/dist/multipath.aug:24.24-.42:"
/augeas/files/etc/multipath.conf/error/lens/next_not_matched = "/usr/share/augeas/lenses/dist/multipath.aug:16.10-.37:"
/augeas/files/etc/multipath.conf/error/message = "Iterated lens matched less than it should"
# cat -n /etc/multipath.conf
1 # device-mapper-multipath configuration file
2
3 # For a complete list of the default configuration values, run either:
4 # # multipath -t
5 # or
6 # # multipathd show config
7
8 # For a list of configuration options with descriptions, see the
9 # multipath.conf man page.
10
11 defaults {
12 allow_usb_devices yes
13 user_friendly_names yes
14 find_multipaths yes
15 enable_foreign "^$"
16 }
17
18 blacklist_exceptions {
19 property "(SCSI_IDENT_|ID_WWN)"
20 }
21
22 blacklist {
23 wwid ".*"
24 }
Below is a job where the problem was observed:
https://beaker.engineering.redhat.com/jobs/12188740
What is the impact of this issue to you?
Upgrade automation failing
Please provide the package NVR for which the bug is seen:
- rpm -q augeas augeas-libs
augeas-1.14.1-3.el9.x86_64
augeas-libs-1.14.1-3.el9.x86_64
leapp-0.20.0-100.20251010131246187027
How reproducible is this bug?: Often
Steps to reproduce
- See above