lttng-modules-dkms failed to build with 4.14 Azure edge kernel on Xenial

Bug #1739591 reported by Po-Hsu Lin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lttng-modules
Fix Released
Undecided
Unassigned
ubuntu-kernel-tests
Fix Released
Undecided
Unassigned
lttng-modules (Ubuntu)
Fix Released
Medium
Colin Ian King
Xenial
Fix Released
Undecided
Unassigned
Artful
Fix Released
Undecided
Unassigned

Bug Description

SRU request, Xenial, Artful

[Impact]

lttng dkms modules fail to build against newer HWE kernels because of missing 4.14 compat fixes that allow it to build against newer 4.14 kernels.

[Fix]
Upstream lttng 4.14 compat fixes.

[Testcase]
Without the fix, running the kernel team autotest lttng regression test suite fails because the module does not build and install. With the fix the lttng smoke tests pass.

To run the test:
sudo autotest/client/autotest-local autotest/client/tests/ubuntu_lttng_smoke_test/control

using git://kernel.ubuntu.com/ubuntu/autotest and
git://kernel.ubuntu.com/ubuntu/autotest-client-tests

[Regression Potential]
lttng fails to build and work against older kernels. As the new code is #if'def'd compat code the 4.14 specific changes are not built into the older kernels, so this risk is small.

--------------------------------------------------------------------------

[stdout] Setting up lttng-modules-dkms (2.8.0-1ubuntu1~16.04.3) ...
 [stdout] Loading new lttng-modules-2.8.0 DKMS files...
 [stdout] First Installation: checking all kernels...
 [stdout] Building only for 4.14.0-1002-azure-edge
 [stdout] Building initial module for 4.14.0-1002-azure-edge
 [stdout] Error! Bad return status for module build on kernel: 4.14.0-1002-azure-edge (x86_64)
 [stdout] Consult /var/lib/dkms/lttng-modules/2.8.0/build/make.log for more information.

Po-Hsu Lin (cypressyew)
Changed in lttng-modules (Ubuntu):
assignee: nobody → Colin Ian King (colin-king)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

lttng dkms module build log (/var/lib/dkms/lttng-modules/2.8.0/build/make.log)

http://paste.ubuntu.com/26345778/

Changed in lttng-modules (Ubuntu):
importance: Undecided → Medium
status: New → In Progress
description: updated
Revision history for this message
Colin Ian King (colin-king) wrote :

Would you mind testing the fixed dkms lttng modules from ppa:colin-king/lttng-4.14-compat and let me know if the extra compat changes fix things?

Colin

Changed in lttng-modules (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Sure,

Since azure kernel is now being tested, I will need to wait until it finishes to get started.

Revision history for this message
Colin Ian King (colin-king) wrote :

Any feedback on these results?

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

No, sorry
those azure nodes are sharing the same test pool, as the kernel was re-spinning (last respin on Feb. 2), it's not that easy to grab a gap for testing.
I will keep an eye on this.
Thanks.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Hi Colin,
I have encountered a build issue with the proposed 4.14 Azure edge kernel.
log: http://paste.ubuntu.com/26528041/

Revision history for this message
Colin Ian King (colin-king) wrote :

Ahah, seems like we also need upstream commits for the Azure kernel to build:

     0032-Update-kvm-instrumentation-for-4.15.patch
     0033-Fix-kvm-instrumentation-for-4.15.patch
     0034-Update-kvm-instrumentation-for-3.16.52-and-3.2.97.patch
     0035-Update-kvm-instrumentation-for-debian-kernel-4.9.65-.patch
     0036-Update-kvm-instrumentation-for-4.14.14-4.9.77-4.4.11.patch

I've uploaded a test package into a new PPA ppa:colin-king/lttng-4.14-azure - do you mind re-testing with this updated package?

Thanks. Colin.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The module was built correctly.
And all tests have passed in lttng test suite.
Thanks!

description: updated
description: updated
Revision history for this message
Chris J Arges (arges) wrote : Please test proposed package

Hello Po-Hsu, or anyone else affected,

Accepted lttng-modules into artful-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lttng-modules/2.9.0-1ubuntu3.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-artful to verification-done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-artful. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in lttng-modules (Ubuntu Artful):
status: New → Fix Committed
tags: added: verification-needed verification-needed-artful
Changed in lttng-modules (Ubuntu Xenial):
status: New → Fix Committed
tags: added: verification-needed-xenial
Revision history for this message
Chris J Arges (arges) wrote :

Hello Po-Hsu, or anyone else affected,

Accepted lttng-modules into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lttng-modules/2.8.0-1ubuntu1~16.04.4 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Revision history for this message
Colin Ian King (colin-king) wrote :

@Po-Hsu, do you mind testing this on an Azure instance as I don't have access to one.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The lttng module could be built on azure edge kernel now.
Thanks!

tags: added: verification-done verification-done-artful verification-done-xenial
removed: verification-needed verification-needed-artful verification-needed-xenial
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

The bionic bug is marked as 'Incomplete' - what does that mean?

Changed in lttng-modules (Ubuntu):
status: Incomplete → In Progress
status: In Progress → Fix Committed
Revision history for this message
Brian Murray (brian-murray) wrote :

@colin-king - Is there something we, the SRU team, should be watching for to know when this is fixed in Bionic?

Revision history for this message
Colin Ian King (colin-king) wrote :

Brian, the 2.10.5-1 version in Bionic supports the required compat fixes already, so no fix was required.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lttng-modules - 2.9.0-1ubuntu3.1

---------------
lttng-modules (2.9.0-1ubuntu3.1) artful; urgency=medium

  * Fix builds for 4.14 kernel (LP: #1739591)
    - [7ceeb15] Fix: update writeback instrumentation for kernel 4.14
    - [1f1ec4e] Fix: update btrfs instrumentation for kernel 4.14
    - [da3122a] Fix: version check error in btrfs instrumentation
    - [7feabe5] Fix: update block instrumentation for 4.14 kernel
    - [467f3a4] Fix: lttng-logger get_user_pages_fast error handling
    - [1d822c6] Update: kvm instrumentation for 4.14.14+, 4.9.77+, 4.4.112+
    - [bda29b7] Update kvm instrumentation for debian kernel 4.9.65-3
    - [5ccd696] Update: kvm instrumentation for 3.16.52 and 3.2.97
    - [d9f561b] Fix: kvm instrumentation for 4.15
    - [3363052] Update kvm instrumentation for 4.15

 -- Colin Ian King <email address hidden> Tue, 6 Feb 2018 16:02:03 +0000

Changed in lttng-modules (Ubuntu Artful):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for lttng-modules has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in lttng-modules (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lttng-modules - 2.8.0-1ubuntu1~16.04.4

---------------
lttng-modules (2.8.0-1ubuntu1~16.04.4) xenial; urgency=medium

  * Fix builds on HWE 4.14 kernel (LP: #1739591)
    Apply the following upstream commits:
     0030-Fix-update-block-instrumentation-for-4.14-kernel.patch
     0031-Fix-update-writeback-instrumentation-for-kernel-4.14.patch
     0032-Update-kvm-instrumentation-for-4.15.patch
     0033-Fix-kvm-instrumentation-for-4.15.patch
     0034-Update-kvm-instrumentation-for-3.16.52-and-3.2.97.patch
     0035-Update-kvm-instrumentation-for-debian-kernel-4.9.65-.patch
     0036-Update-kvm-instrumentation-for-4.14.14-4.9.77-4.4.11.patch

 -- Colin Ian King <email address hidden> Tue, 6 Feb 2018 10:38:22 +0000

Changed in lttng-modules (Ubuntu Xenial):
status: Fix Committed → Fix Released
Po-Hsu Lin (cypressyew)
Changed in ubuntu-kernel-tests:
status: New → Fix Released
Changed in lttng-modules:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.