[Bug 1906881] [NEW] mdadm --export --detail format incorrect
Chad Yates
1906881 at bugs.launchpad.net
Fri Dec 4 21:24:51 UTC 2020
Public bug reported:
The mdadm --export --detail command creates environment variable
name/value pairs suitable to import into a scripts environment. The
format of these has changed, and the change looks to be a bug.
Previously (prior to mdadm V4.1) the command would output in the following format:
MD_LEVEL=raid1
MD_DEVICES=2
MD_METADATA=1.2
MD_UUID=<redacted>
MD_NAME=<redacted>
MD_DEVICE_sdb_ROLE=0
MD_DEVICE_sdb_DEV=/dev/sdb
Now (mdadm V4.1) the command outputs in the following format:
MD_LEVEL=raid1
MD_DEVICES=2
MD_METADATA=1.2
MD_UUID=<redacted>
MD_NAME=<redacted>
MD_DEVICE_ev_sdb_ROLE=0
MD_DEVICE_ev_sdb_DEV=/dev/sdb
Note the differences in the the MD_DEVICE_<dev>_ROLE and
MD_DEVICE_<dev>_DEV variables where an extra "ev" string has been
included.
The "ev" string is added for all ROLE/DEV variables when multiple disks
are included in the RAID.
As this form of the --detail command is made as a consistent API
mechanism for scripts to use, it is important that it maintain correct
and consistent behavior.
I am using Ubuntu (20.04.1 LTS) along with mdadm (4.1-5ubuntu1.2).
** Affects: mdadm (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mdadm in Ubuntu.
https://bugs.launchpad.net/bugs/1906881
Title:
mdadm --export --detail format incorrect
Status in mdadm package in Ubuntu:
New
Bug description:
The mdadm --export --detail command creates environment variable
name/value pairs suitable to import into a scripts environment. The
format of these has changed, and the change looks to be a bug.
Previously (prior to mdadm V4.1) the command would output in the following format:
MD_LEVEL=raid1
MD_DEVICES=2
MD_METADATA=1.2
MD_UUID=<redacted>
MD_NAME=<redacted>
MD_DEVICE_sdb_ROLE=0
MD_DEVICE_sdb_DEV=/dev/sdb
Now (mdadm V4.1) the command outputs in the following format:
MD_LEVEL=raid1
MD_DEVICES=2
MD_METADATA=1.2
MD_UUID=<redacted>
MD_NAME=<redacted>
MD_DEVICE_ev_sdb_ROLE=0
MD_DEVICE_ev_sdb_DEV=/dev/sdb
Note the differences in the the MD_DEVICE_<dev>_ROLE and
MD_DEVICE_<dev>_DEV variables where an extra "ev" string has been
included.
The "ev" string is added for all ROLE/DEV variables when multiple
disks are included in the RAID.
As this form of the --detail command is made as a consistent API
mechanism for scripts to use, it is important that it maintain correct
and consistent behavior.
I am using Ubuntu (20.04.1 LTS) along with mdadm (4.1-5ubuntu1.2).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mdadm/+bug/1906881/+subscriptions
More information about the foundations-bugs
mailing list