Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2184221

Summary: could not find symbol `criu_set_lsm_mount_context` in `libcriu.so` [rhel-8.8.0.z]
Product: Red Hat Enterprise Linux 8 Reporter: RHEL Program Management Team <pgm-rhel-tools>
Component: crunAssignee: Jindrich Novy <jnovy>
Status: CLOSED ERRATA QA Contact: Alex Jia <ajia>
Severity: high Docs Contact:
Priority: high    
Version: 8.8CC: ajia, gscrivan, jnovy, tsweeney, ypu
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: crun-1.8.4-2.el8_8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2183041 Environment:
Last Closed: 2023-05-16 10:01:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2183041, 2215262, 2236049    
Bug Blocks:    

Comment 2 Alex Jia 2023-04-11 02:17:12 UTC
This bug has not been verified by crun-1.8.1-3.module+el8.8.0+18562+6c62d622.

[root@kvm-03-guest01 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.8 (Ootpa)

[root@kvm-03-guest01 ~]# rpm -q crun criu criu-libs criu-devel kernel
crun-1.8.1-3.module+el8.8.0+18562+6c62d622.x86_64
criu-3.15-3.module+el8.8.0+18060+3f21f2cc.x86_64
criu-libs-3.15-3.module+el8.8.0+18060+3f21f2cc.x86_64
criu-devel-3.15-3.module+el8.8.0+18060+3f21f2cc.x86_64
kernel-4.18.0-477.9.1.el8_8.x86_64

[root@kvm-03-guest01 ~]# cd crun
[root@kvm-03-guest01 crun]# ll crun
lrwxrwxrwx. 1 root root 13 Apr 10 22:13 crun -> /usr/bin/crun
[root@kvm-03-guest01 crun]# python3 tests/test_checkpoint_restore.py
1..3
2023-04-11T02:14:37.487806Z: could not find symbol `criu_join_ns_add` in `libcriu.so`
b''
Command '['/root/crun/crun', '--root', '/root/crun/.testsuite-run-72856/root', 'checkpoint', '--image-path=/root/crun/.testsuite-run-72856/checkpoint', 'test-tmpra_cs9nv']' returned non-zero exit status 1.
not ok 1 - checkpoint-restore
ok 2 - checkpoint-restore-ext-ns #SKIP
ok 3 - checkpoint-restore-pre-dump #SKIP

Comment 3 Tom Sweeney 2023-04-11 13:29:46 UTC
OK, I'm a bit confused.  This seems to have worked in RHEL 9.2, but not 8.8?  Is that correct @ajia ?

Comment 4 Alex Jia 2023-04-12 01:53:39 UTC
(In reply to Tom Sweeney from comment #3)
> OK, I'm a bit confused.  This seems to have worked in RHEL 9.2, but not 8.8?
> Is that correct @ajia?

Yes, exact, it has worked in RHEL 9.2(crun-1.8.1-2.el9_2) and RHEL 9.3(crun-1.8.3-2.el9).

Comment 5 Tom Sweeney 2023-04-12 19:34:22 UTC
@gscrivan and @jnovy any thoughts as to why this would work on RHEL 9.2 but not RHEL 8.8?  The only things I can think of is a packaging hiccup or more likely, some type of kernel issue.  Thoughts?

Comment 6 Giuseppe Scrivano 2023-04-13 10:21:06 UTC
different libcriu version.

We need the crun patch in https://github.com/containers/crun/pull/1183 or update libcriu to the same version on RHEL 9.2

Comment 7 Giuseppe Scrivano 2023-04-13 17:10:36 UTC
I'll cut a new release that includes the patch

Comment 8 Giuseppe Scrivano 2023-04-13 19:22:16 UTC
fixed in 1.8.4

Comment 9 Jindrich Novy 2023-04-14 07:45:24 UTC
btw. crun-1.8.1-3.el8_8 already includes https://patch-diff.githubusercontent.com/raw/containers/crun/pull/1183.patch

Comment 10 Alex Jia 2023-04-14 14:00:01 UTC
(In reply to Giuseppe Scrivano from comment #8)
> fixed in 1.8.4

This bug has not been verified on crun-1.8.4-1.module+el8.8.0+18640+3a46c1ae (and crun-1.8.1-3.module+el8.8.0+18562+6c62d622).

[root@kvm-01-guest18 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.8 (Ootpa)

[root@kvm-01-guest18 ~]# rpm -q crun criu criu-libs kernel
crun-1.8.4-1.module+el8.8.0+18640+3a46c1ae.x86_64
criu-3.15-3.module+el8.8.0+18060+3f21f2cc.x86_64
criu-libs-3.15-3.module+el8.8.0+18060+3f21f2cc.x86_64
kernel-4.18.0-477.10.1.el8_8.x86_64

[root@kvm-01-guest18 crun]# ll ./crun
lrwxrwxrwx. 1 root root 13 Apr 14 09:56 ./crun -> /usr/bin/crun
[root@kvm-01-guest18 crun]# python3 tests/test_checkpoint_restore.py
1..3
2023-04-14T13:56:54.338014Z: could not find symbol `criu_join_ns_add` in `libcriu.so`
b''
Command '['/root/crun/crun', '--root', '/root/crun/.testsuite-run-70103/root', 'checkpoint', '--image-path=/root/crun/.testsuite-run-70103/checkpoint', 'test-tmpcm3o0din']' returned non-zero exit status 1.
not ok 1 - checkpoint-restore
ok 2 - checkpoint-restore-ext-ns #SKIP
ok 3 - checkpoint-restore-pre-dump #SKIP

Comment 12 Alex Jia 2023-04-17 01:04:26 UTC
There is similar symbol issue "could not find symbol `criu_join_ns_add` in `libcriu.so`"
is found in the newest crun-1.8.4-1.module+el8.8.0+18640+3a46c1ae.

[root@kvm-02-guest09 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.8 (Ootpa)

[root@kvm-02-guest09 ~]# rpm -q crun criu kernel
crun-1.8.4-1.module+el8.8.0+18640+3a46c1ae.x86_64
criu-3.15-3.module+el8.8.0+18060+3f21f2cc.x86_64
kernel-4.18.0-477.10.1.el8_8.x86_64
[root@kvm-02-guest09 ~]# cd crun
[root@kvm-02-guest09 crun]# ll ./crun
lrwxrwxrwx. 1 root root 13 Apr 16 21:00 ./crun -> /usr/bin/crun

[root@kvm-02-guest09 crun]# python3 tests/test_checkpoint_restore.py
1..3
2023-04-17T01:00:45.909134Z: could not find symbol `criu_join_ns_add` in `libcriu.so`
b''
Command '['/root/crun/crun', '--root', '/root/crun/.testsuite-run-40136/root', 'checkpoint', '--image-path=/root/crun/.testsuite-run-40136/checkpoint', 'test-tmpmnfkdp2d']' returned non-zero exit status 1.
not ok 1 - checkpoint-restore
ok 2 - checkpoint-restore-ext-ns #SKIP
ok 3 - checkpoint-restore-pre-dump #SKIP

Comment 18 Alex Jia 2023-04-18 13:56:17 UTC
This bug has been verified on crun-1.8.4-2.module+el8.8.0+18669+fa5aca5a.

[root@kvm-03-guest11 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.8 (Ootpa)

[root@kvm-03-guest11 ~]# rpm -q crun criu kernel
crun-1.8.4-2.module+el8.8.0+18669+fa5aca5a.x86_64
criu-3.15-3.module+el8.8.0+18060+3f21f2cc.x86_64
kernel-4.18.0-477.10.1.el8_8.x86_64

[root@kvm-03-guest11 crun]# ln -s /usr/bin/crun ./crun
[root@kvm-03-guest11 crun]# python3 tests/test_checkpoint_restore.py
1..3
ok 1 - checkpoint-restore
ok 2 - checkpoint-restore-ext-ns #SKIP
ok 3 - checkpoint-restore-pre-dump #SKIP

Comment 22 Alex Jia 2023-04-19 01:22:07 UTC
This bug has been verified on crun-1.8.4-2.module+el8.8.0+18669+fa5aca5a.

Comment 26 errata-xmlrpc 2023-05-16 10:01:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (container-tools:rhel8 bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:3089