[Bug 1314598] [NEW] [Precise] drbd8: drbdadm does not run compat mode when DRBD_DONT_WARN_ON_VERSION_MISMATCH is set
Stefan Bader
stefan.bader at canonical.com
Wed Apr 30 11:50:28 UTC 2014
Public bug reported:
SRU Justification:
Impact: This is for now only relevant for the 12.04 (Precise) backport
of drbd-utils 8.4.x as that uses the 8.3 compat mode when running with a
linux kernel module from kernel 3.2.x. Problem is the following code:
if (!getenv("DRBD_DONT_WARN_ON_VERSION_MISMATCH"))
warn_on_version_mismatch();
maybe_exec_drbdadm_83(argv);
Because maybe_ecec_drbdadm_83 relies on a structure being filled in
warn_on_version_mismatch only.
Fix: Move the code to set up the version number from
warn_on_version_mismatch() outside, so it is always called.
Testcase: When running a 3.2 kernel and the 8.4.x version of drbd8-utils
"drbdadm --version" without DRBD_DONT_WARN_ON_VERSION_MISMATCH set in
the environment, It will return a 8.3 version number. Otherwise a
version 8.4. When the bug is fixed it has to be a 8.3 version in both
cases.
** Affects: drbd8 (Ubuntu)
Importance: Medium
Assignee: Stefan Bader (smb)
Status: Triaged
** Changed in: drbd8 (Ubuntu)
Importance: Undecided => Medium
** Changed in: drbd8 (Ubuntu)
Assignee: (unassigned) => Stefan Bader (smb)
** Changed in: drbd8 (Ubuntu)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to drbd8 in Ubuntu.
https://bugs.launchpad.net/bugs/1314598
Title:
[Precise] drbd8: drbdadm does not run compat mode when
DRBD_DONT_WARN_ON_VERSION_MISMATCH is set
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/drbd8/+bug/1314598/+subscriptions
More information about the Ubuntu-server-bugs
mailing list