eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

jdk_container_jdk8_0_FAILED open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory #16568

Closed JasonFengJ9 closed 1 year ago

JasonFengJ9 commented 1 year ago

Failure link

From an internal build(cent7-aarch64-5):

openjdk version "1.8.0_362"
IBM Semeru Runtime Open Edition (build 1.8.0_362-b07)
Eclipse OpenJ9 VM (build v0.36.0-release-c5da55ccc, JRE 1.8.0 Linux aarch64-64-Bit Compressed References 20230113_538 (JIT enabled, AOT enabled)
OpenJ9   - c5da55ccc
OMR      - 2bb04132e
JCL      - 1a94e3037e based on jdk8u362-b07)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2023-01-13T19:35:34.535Z] variation: NoOptions
[2023-01-13T19:35:34.535Z] JVM_OPTIONS:  

[2023-01-13T19:35:54.979Z] TEST: jdk/internal/platform/docker/TestDockerMemoryMetrics.java

[2023-01-13T19:35:54.980Z] STDERR:
[2023-01-13T19:35:54.980Z]  stdout: [Sending build context to Docker daemon 835.9 MB

[2023-01-13T19:35:54.980Z] Step 1/4 : FROM registry.access.redhat.com/ubi8/ubi:latest
[2023-01-13T19:35:54.980Z] Trying to pull repository registry.access.redhat.com/ubi8/ubi ... 
[2023-01-13T19:35:54.980Z] ];
[2023-01-13T19:35:54.980Z]  stderr: [open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory
[2023-01-13T19:35:54.980Z] ]
[2023-01-13T19:35:54.980Z]  exitValue = 1
[2023-01-13T19:35:54.980Z] 
[2023-01-13T19:35:54.980Z] java.lang.RuntimeException: Expected to get exit value of [0]
[2023-01-13T19:35:54.980Z] 
[2023-01-13T19:35:54.980Z]  at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:396)
[2023-01-13T19:35:54.980Z]  at jdk.test.lib.containers.docker.DockerTestUtils.buildDockerImage(DockerTestUtils.java:173)
[2023-01-13T19:35:54.980Z]  at jdk.test.lib.containers.docker.DockerTestUtils.buildJdkDockerImage(DockerTestUtils.java:149)
[2023-01-13T19:35:54.980Z]  at TestDockerMemoryMetrics.main(TestDockerMemoryMetrics.java:50)
[2023-01-13T19:35:54.980Z]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-01-13T19:35:54.980Z]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-01-13T19:35:54.980Z]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-01-13T19:35:54.980Z]  at java.lang.reflect.Method.invoke(Method.java:498)
[2023-01-13T19:35:54.980Z]  at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
[2023-01-13T19:35:54.980Z]  at java.lang.Thread.run(Thread.java:826)
[2023-01-13T19:35:54.980Z] 
[2023-01-13T19:35:54.980Z] JavaTest Message: Test threw exception: java.lang.RuntimeException

[2023-01-13T19:36:14.291Z] jdk_container_jdk8_0_FAILED
pshipton commented 1 year ago

@llxia is this a test problem?

llxia commented 1 year ago

The test ran to completion with actual test failure on Dec 10th on ub18-aarch64-4.svl.ibm.com. The test failure is tracked at https://github.com/eclipse-openj9/openj9/issues/16462

Launched Grinder on ub18-aarch64-4.svl.ibm.com: Grinder

llxia commented 1 year ago

The above Grinder on ub18-aarch64-4.svl.ibm.com passed the Step 1/4 : FROM registry.access.redhat.com/ubi8/ubi:latest. It failed later with NullPointerException, which is the same as https://github.com/eclipse-openj9/openj9/issues/16462

00:54:13.490  java.lang.NullPointerException
00:54:13.490    at TestDockerCpuMetrics.main(TestDockerCpuMetrics.java:77)
00:54:13.490    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
00:54:13.490    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
00:54:13.490    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
00:54:13.490    at java.lang.reflect.Method.invoke(Method.java:498)
00:54:13.490    at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
00:54:13.490    at java.lang.Thread.run(Thread.java:826)
00:54:13.490  
00:54:13.490  JavaTest Message: Test threw exception: java.lang.NullPointerException
00:54:13.490  JavaTest Message: shutting down test
00:54:13.490  
00:54:13.490  
00:54:13.490  TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.NullPointerException
00:54:13.490  --------------------------------------------------
00:54:13.490  Test results: passed: 3; failed: 2
llxia commented 1 year ago

This problem seems can be resolved by creating redhat-uep.pem file on CentOS (see link). I will give it a try.

llxia commented 1 year ago

Thanks for @AdamBrousseau 's help. The file is added on all cent aarch64. Grinder on cent7-aarch64-5.svl.ibm.com can pull image from redbat registry without problem. The Grinder failed at later stage with NullPointerException, which is another issue https://github.com/eclipse-openj9/openj9/issues/16462

pshipton commented 1 year ago

This can be closed then?

llxia commented 1 year ago

Yes, I will close this issue. Please reopen if the problem still occurs.