Bug 1217078

Summary: drbd: fix build error against kernel v6.6.1
Product: [openSUSE] openSUSE Tumbleweed Reporter: Glass Su <glass.su>
Component: High AvailabilityAssignee: Glass Su <glass.su>
Status: RESOLVED FIXED QA Contact: SUSE Linux Enterprise High Availability Team <ha-bugs>
Severity: Normal    
Priority: P5 - None CC: glass.su, heming.zhao, zzhou
Version: Current   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Glass Su 2023-11-13 11:20:15 UTC
some KAPIs changed and was blocking drbd building for kernel v6.6.1
create this bug for passing build drbd on v6.6.1
Comment 1 Roger Zhou 2023-11-14 08:05:31 UTC
BTW, please keep an eye out for drbd functional regression. In the Tumbleweed snapshot of 20231022, DRBD failed to establish the connection during my quick exercise.
Comment 2 Glass Su 2023-11-20 06:01:23 UTC
(In reply to Roger Zhou from comment #1)
> BTW, please keep an eye out for drbd functional regression. In the
> Tumbleweed snapshot of 20231022, DRBD failed to establish the connection
> during my quick exercise.

I have almost done the package update and did the basic test. I have not seen
connection issue.
Would you help test https://build.opensuse.org/projects/home:gsu:branches:network:ha-clustering:Factory/packages/drbd/repositories/openSUSE_Tumbleweed/binaries after 
upgrading the kernel to v6.6.1?
Comment 3 Roger Zhou 2023-11-20 08:17:04 UTC
(In reply to Glass Su from comment #2)
> (In reply to Roger Zhou from comment #1)
> > BTW, please keep an eye out for drbd functional regression. In the
> > Tumbleweed snapshot of 20231022, DRBD failed to establish the connection
> > during my quick exercise.
> 
> I have almost done the package update and did the basic test. I have not seen
> connection issue.
> Would you help test
> https://build.opensuse.org/projects/home:gsu:branches:network:ha-clustering:
> Factory/packages/drbd/repositories/openSUSE_Tumbleweed/binaries after 
> upgrading the kernel to v6.6.1?

Great thank you for your private repo! I confirm it works well now!
Comment 4 Glass Su 2023-11-28 08:36:43 UTC
for fixing build error, back porting upstream patches:
    + 0021-compat-sock-Remove-sendpage-in-favour-of-sendmsg-MSG.patch
    + 0022-compat-block-replace-fmode_t-with-a-block-specific-t.patch
    + 0023-compat-genetlink-remove-userhdr-from-struct-genl_inf.patch
And remove patch which are already included in upstream patches:
    - bsc-1215699_fix-build-error-against-kernel-v6.5.4.patch

request [1] had been accepted, close this bug as fixed.

[1]: https://build.opensuse.org/request/show/1127681