dragonwell-project / dragonwell11

Alibaba Dragonwell11 JDK
https://www.aliyun.com/product/dragonwell
GNU General Public License v2.0
561 stars 115 forks source link

[11.0.25.22.9][aarch64]jdk/crac/stdoutInDocker/TestStdoutInDocker.sh用例失败:No such image: crac-stdout-err-testimage:latest #888

Closed sendaoYan closed 1 week ago

sendaoYan commented 2 weeks ago

任务链接:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/398084?tab=1

【环境准备】

BINARY_URL=oss://dragonwell/11.0.25.22.9-test-dragonwell_extended/Alibaba_Dragonwell_Extended_11.0.25.22.9_aarch64_linux.tar.gz
TEST_IMAGE=oss://dragonwell/11.0.25.22.9-test-dragonwell_extended/Alibaba_Dragonwell_Extended_11.0.25.22.9_aarch64_linux-testimage.tar.gz
JDK_REPO=git@github.com:dragonwell-project/dragonwell11.git
JDK_BRANCH=dragonwell_extended-11.0.25.22.9

jtreg=oss://compiler-ci-bucket/jdk/tools/jtreg-7.4.1.zip

#下载解压jtreg,cd jtreg并配置
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
#下载解压jdk,cd <目录>并配置
export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME
#下载jdk-repo
git clone https://${JDK_REPO} --depth 1 -b $JDK_BRANCH jdk-repo

#执行测试
jtreg -w tmp -nr -v:fail,error  jdk/crac/stdoutInDocker/TestStdoutInDocker.sh

【测试分析】

docker images相关,x86上pass。arm上失败。

【版本信息】

jdk信息

openjdk version "11.0.25.21" 2024-10-15
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.24.21+8-ga (build 11.0.25.21+8)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.24.21+8-ga (build 11.0.25.21+8, mixed mode)
OpenJDK 64-Bit Server VM (11.0.25.21+8) for linux-aarch64 JRE (11.0.25.21+8), built on Nov  4 2024 09:22:03 by "" with gcc 7.5.0

测试机信息jdk环境信息

[root@CompilerTest-x64-5 ~]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25; dmidecode -t chassis
Linux CompilerTest-x64-5 5.10.134-16.1.al8.x86_64 #1 SMP Thu Dec 7 14:11:24 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
UPDATE_ID="9"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

              total        used        free      shared  buff/cache   available
Mem:          123Gi       711Mi       116Gi       2.0Mi       5.9Gi       121Gi
Swap:            0B          0B          0B
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  2
Core(s) per socket:  16
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Alibaba Cloud
CPU family:          6
Model:               106
Model name:          Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
BIOS Model name:     pc-i440fx-2.1
Stepping:            6
CPU MHz:             3502.594
BogoMIPS:            5399.99
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           48K
L1i cache:           32K
L2 cache:            1280K
L3 cache:            49152K
NUMA node0 CPU(s):   0-31
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
        Manufacturer: Alibaba Cloud
        Type: Other
        Lock: Not Present
        Version: pc-i440fx-2.1
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Boot-up State: Safe
        Power Supply State: Safe
        Thermal State: Safe
        Security Status: Unknown
        OEM Information: 0x00000000
        Height: Unspecified
        Number Of Power Cords: Unspecified
        Contained Elements: 0

【用例日志】

/tmp/tone/run/jtreg/jt-work/crac/jdk/crac/stdoutInDocker/TestStdoutInDocker
Run command: [docker run --privileged --user root -d --env CRAC_INHERIT_OPT=-XX:CRaCRestoreInheritPipeFds=1,2 --env DO_CHECKPOINT=true --env CRAC_IMAGE_DIR=/cr -v /tmp/cr:/cr crac-stdout-err-testimage:latest]
Run command: [docker run --privileged --user root -d --env DO_RESTORE=true --env CRAC_IMAGE_DIR=/cr --env SLEEP_TIME=30000 -v /tmp/cr:/cr crac-stdout-err-testimage:latest]
0 not found Message from stderr in afterRestore callback in file /tmp/cr/docker.log
STDERR:
Error response from daemon: No such image: crac-stdout-err-testimage:latest
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 401B done
#1 DONE 0.0s

#2 [internal] load metadata for alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest
#2 DONE 0.4s

#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [1/5] FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest@sha256:e4e6bfb2795df8fa2839e83316601f7af16728d205d205a6e3cec327bb4efcc7
#4 resolve alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest@sha256:e4e6bfb2795df8fa2839e83316601f7af16728d205d205a6e3cec327bb4efcc7 done
#4 sha256:437c38498feeadd980d322fbf16c30e8d282bb38f4f708c58efe5bd8b6ebd610 0B / 3.04MB 0.2s
#4 sha256:4a821e062e62c76d53c457e8b177439abc993bb27132e006acf9484ab5651a3b 4.05kB / 4.05kB done
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 2.10MB / 62.95MB 0.2s
#4 sha256:0e6ea885e916c0b6609190d779a8c776255feba2f5d1eb86a7ee5d8e97a31a05 257B / 257B 0.2s done
#4 sha256:e4e6bfb2795df8fa2839e83316601f7af16728d205d205a6e3cec327bb4efcc7 685B / 685B done
#4 sha256:30f827548bf0f2bdde89dc8eea9e41640b50ebca02d6e9f32d372d16b668a399 1.68kB / 1.68kB done
#4 sha256:376f3701445976af56ef6cab6a8cec49a8e19c09aa42a9afe4cc1cac4d5cd15b 0B / 233B 0.2s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 8.39MB / 62.95MB 0.3s
#4 sha256:376f3701445976af56ef6cab6a8cec49a8e19c09aa42a9afe4cc1cac4d5cd15b 233B / 233B 0.2s done
#4 sha256:dac824a399c78605a71249e9188420a6a01f9f9bacef49b753363c81cb82707f 0B / 633B 0.3s
#4 sha256:8d947046d825bcd9df54b7c7c36c796372628192b881acc4e5f7675bdf0f483a 149B / 149B 0.3s done
#4 ...

#5 [internal] load build context
#5 transferring context: 195.27MB 0.3s done
#5 DONE 0.3s

#4 [1/5] FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest@sha256:e4e6bfb2795df8fa2839e83316601f7af16728d205d205a6e3cec327bb4efcc7
#4 sha256:437c38498feeadd980d322fbf16c30e8d282bb38f4f708c58efe5bd8b6ebd610 3.04MB / 3.04MB 0.3s done
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 12.58MB / 62.95MB 0.5s
#4 sha256:dac824a399c78605a71249e9188420a6a01f9f9bacef49b753363c81cb82707f 633B / 633B 0.4s done
#4 sha256:c0195a8be3f373a7a4ee3f312928d480eb80127d441944b44d1fd5bc1e58c207 1.05MB / 4.17MB 0.5s
#4 sha256:c0195a8be3f373a7a4ee3f312928d480eb80127d441944b44d1fd5bc1e58c207 3.15MB / 4.17MB 0.7s
#4 sha256:c0195a8be3f373a7a4ee3f312928d480eb80127d441944b44d1fd5bc1e58c207 4.17MB / 4.17MB 0.7s done
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 16.78MB / 62.95MB 1.1s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 20.97MB / 62.95MB 1.4s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 27.26MB / 62.95MB 1.9s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 31.46MB / 62.95MB 2.3s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 35.65MB / 62.95MB 2.6s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 41.94MB / 62.95MB 3.1s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 47.19MB / 62.95MB 3.5s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 51.38MB / 62.95MB 3.9s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 56.62MB / 62.95MB 4.3s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 61.87MB / 62.95MB 4.7s
#4 sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 62.95MB / 62.95MB 4.8s done
#4 extracting sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379
#4 extracting sha256:ff53e3d3e5c9a02da2852f7cb5cd415b52f871eceb7c765989ec516421f99379 1.0s done
#4 extracting sha256:0e6ea885e916c0b6609190d779a8c776255feba2f5d1eb86a7ee5d8e97a31a05 done
#4 extracting sha256:437c38498feeadd980d322fbf16c30e8d282bb38f4f708c58efe5bd8b6ebd610
#4 extracting sha256:437c38498feeadd980d322fbf16c30e8d282bb38f4f708c58efe5bd8b6ebd610 0.1s done
#4 extracting sha256:376f3701445976af56ef6cab6a8cec49a8e19c09aa42a9afe4cc1cac4d5cd15b done
#4 extracting sha256:8d947046d825bcd9df54b7c7c36c796372628192b881acc4e5f7675bdf0f483a
#4 extracting sha256:8d947046d825bcd9df54b7c7c36c796372628192b881acc4e5f7675bdf0f483a done
#4 extracting sha256:dac824a399c78605a71249e9188420a6a01f9f9bacef49b753363c81cb82707f done
#4 extracting sha256:c0195a8be3f373a7a4ee3f312928d480eb80127d441944b44d1fd5bc1e58c207 0.1s done
#4 DONE 6.8s

#6 [2/5] ADD jdk.tar.gz /
#6 DONE 1.4s

#7 [3/5] RUN setcap 'cap_checkpoint_restore+eip cap_setpcap+eip' /jdk/lib/criu
#7 0.161 Failed to set capabilities on file `/jdk/lib/criu' (No such file or directory)
#7 0.161 usage: setcap [-h] [-q] [-v] [-n <rootid>] (-r|-|<caps>) <filename> [ ... (-r|-|<capsN>) <filenameN> ]

[2024-11-05 19:03:34] #7 0.161 
#7 0.161  Note <filename> must be a regular (non-symlink) file.
#7 0.161  -r          remove capability from file
#7 0.161  -           read capability text from stdin
#7 0.161  <capsN>     cap_from_text(3) formatted file capability
#7 0.161 
#7 0.161  -h          this message and exit status 0
#7 0.161  -q          quietly
#7 0.161  -v          validate supplied capability matches file
#7 0.161  -n <rootid> write a user namespace limited capability
#7 0.161  --license   display the license info
#7 ERROR: process "/bin/sh -c setcap 'cap_checkpoint_restore+eip cap_setpcap+eip' /jdk/lib/criu" did not complete successfully: exit code: 1
------
 > [3/5] RUN setcap 'cap_checkpoint_restore+eip cap_setpcap+eip' /jdk/lib/criu:
0.161  Note <filename> must be a regular (non-symlink) file.
0.161  -r          remove capability from file
0.161  -           read capability text from stdin
0.161  <capsN>     cap_from_text(3) formatted file capability
0.161 
0.161  -h          this message and exit status 0
0.161  -q          quietly
0.161  -v          validate supplied capability matches file
0.161  -n <rootid> write a user namespace limited capability
0.161  --license   display the license info
------
Dockerfile:3
--------------------
   1 |     FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest
   2 |     ADD jdk.tar.gz /
   3 | >>> RUN setcap 'cap_checkpoint_restore+eip cap_setpcap+eip' /jdk/lib/criu
   4 |     RUN groupadd -g 1000 app && useradd -u 1000 -g app -s /bin/sh  -d /home/app -m app
   5 |     USER app:app
--------------------
ERROR: failed to solve: process "/bin/sh -c setcap 'cap_checkpoint_restore+eip cap_setpcap+eip' /jdk/lib/criu" did not complete successfully: exit code: 1
Unable to find image 'crac-stdout-err-testimage:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": context deadline exceeded.
See 'docker run --help'.
Unable to find image 'crac-stdout-err-testimage:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": context deadline exceeded.
See 'docker run --help'.
rerun:
cd /tmp/tone/run/jtreg/jt-work/crac/jdk/crac/stdoutInDocker/TestStdoutInDocker && \
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus \
DISPLAY=:7 \
HOME=/root \
JTREG_VERSION=jtreg-7.3.1.1 \
LANG=C \
LC_CTYPE=C.UTF-8 \
LD_LIBRARY_PATH=/tmp/tone/run/jtreg/jdk-repo/build/tools/lib:/tmp/tone/run/jtreg/test-images/dragonwell-11.0.24.21+8-ga-test-image/hotspot/jtreg/native \
PATH=/bin:/usr/bin:/usr/sbin \
TEST_IMAGE_DIR=/tmp/tone/run/jtreg/test-images/dragonwell-11.0.24.21+8-ga-test-image \
XDG_RUNTIME_DIR=/run/user/0 \
XDG_SESSION_ID=c34 \
TESTFILE=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/crac/stdoutInDocker/TestStdoutInDocker.sh \
TESTSRC=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/crac/stdoutInDocker \
TESTSRCPATH=/tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/crac/stdoutInDocker \
TESTCLASSES=/tmp/tone/run/jtreg/jt-work/crac/classes/14/jdk/crac/stdoutInDocker/TestStdoutInDocker.d \
TESTCLASSPATH=/tmp/tone/run/jtreg/jt-work/crac/classes/14/jdk/crac/stdoutInDocker/TestStdoutInDocker.d \
COMPILEJAVA=/tmp/tone/run/jtreg/binary-download/dragonwell-11.0.24.21+8-ga \
TESTJAVA=/tmp/tone/run/jtreg/binary-download/dragonwell-11.0.24.21+8-ga \
TESTVMOPTS='-Djdk.lang.processReaperUseDefaultStackSize=true -Dtest.wisp.socketAddress=www.alibabacloud.com -ea -esa' \
TESTTOOLVMOPTS='-J-Djdk.lang.processReaperUseDefaultStackSize=true -J-Dtest.wisp.socketAddress=www.alibabacloud.com -J-ea -J-esa' \
TESTJAVACOPTS= \
TESTJAVAOPTS= \
TESTTIMEOUTFACTOR=4.0 \
TESTROOT=/tmp/tone/run/jtreg/jdk-repo/test/jdk \
TESTNATIVEPATH=/tmp/tone/run/jtreg/test-images/dragonwell-11.0.24.21+8-ga-test-image/hotspot/jtreg/native \
FS=/ \
PS=: \
NULL=/dev/null \
    sh \
        /tmp/tone/run/jtreg/jdk-repo/test/jdk/jdk/crac/stdoutInDocker/TestStdoutInDocker.sh
sendaoYan commented 1 week ago

应该和https://github.com/dragonwell-project/dragonwell11/issues/885是同一个问题