b2c04a8fab
Prior to this commit, the Ansible bootstrap procedure on StarlingX would fail with drbd-related errors when a v5.10-based kernel was in use. The error reported by the kernel was "invalid argument". Upon further debugging, it was discovered that generic-netlink (genl) messages generated by drbdsetup would be rejected by the v5.10 kernel. After looking at the git history of the drbd-utils repository, the following two commits were found: $ git log -2 --pretty=ref 859151b228d3b3aacefb09d06d515a2589c22e35 859151b228d3 (netlink: Add NLA_F_NESTED flag to nested attribute, 2019-07-12) 92ade5989027 (netlink: prepare for kernel v5.2, 2019-07-12) This issue appears to be caused by kernel versions >= 5.2 being more strict with the validation of nested netlink attributes. The patches required very minor context adjustments and enable the Ansible bootstrap procedure to succeed. Story: 2008921 Task: 42787 Change-Id: I573d0caafc741c7668be8ee8e494fde826437a98 Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com>
30 lines
680 B
Diff
30 lines
680 B
Diff
From 536eac16f1b6636ce4153fa58c74c417c4f69753 Mon Sep 17 00:00:00 2001
|
|
From: Roland Kammerer <roland.kammerer@linbit.com>
|
|
Date: Fri, 12 Jul 2019 13:36:50 +0200
|
|
Subject: [PATCH] netlink: prepare for kernel v5.2
|
|
|
|
[mvb: Adapted to drbd-utils 8.4.3.]
|
|
Signed-off-by: M. Vefa Bicakci <vefa.bicakci@windriver.com>
|
|
---
|
|
user/libgenl.h | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/user/libgenl.h b/user/libgenl.h
|
|
index a37493a6e528..b1c3eab345ec 100644
|
|
--- a/user/libgenl.h
|
|
+++ b/user/libgenl.h
|
|
@@ -23,6 +23,10 @@
|
|
#define SOL_NETLINK 270
|
|
#endif
|
|
|
|
+#ifndef NLA_F_NESTED
|
|
+#define NLA_F_NESTED 0
|
|
+#endif
|
|
+
|
|
#define DEBUG_LEVEL 1
|
|
|
|
#define dbg(lvl, fmt, arg...) \
|
|
--
|
|
2.29.2
|
|
|