Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testJitserverArguments, Test SSL success condition - failed to configure SSL ecdh #18599

Open
pshipton opened this issue Dec 12, 2023 · 5 comments
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project test failure

Comments

@pshipton
Copy link
Member

https://openj9-jenkins.osuosl.org/job/Test_openjdk8_j9_sanity.functional_x86-64_linux_Nightly_testList_0/601/ - cent6-x64-1
testJitserverArguments_0

Testing: Test SSL success condition
Test start time: 2023/12/12 07:21:23 Eastern Standard Time
Running command: bash /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_Nightly_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/jitserver/jitserverScript.sh /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_Nightly_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/jitserver /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_Nightly_testList_0/jdkbinary/j2sdk-image/bin "-Xjit" "-XX:+UseJITServer -Xjit:count=0,verbose={JITServer},verbose={JITServerConns},verbose={compilePerformance} -XX:-JITServerLocalSyncCompiles -XX:JITServerSSLRootCerts=cert.pem" false
Time spent starting: 3 milliseconds
Time spent executing: 2589 milliseconds
Test result: FAILED
Output from test:
 [OUT] start running script
 [OUT] Generate SSL certificates
 [OUT] Creating SSL certificates
 [OUT] Certificates generated
 [OUT] Starting /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_Nightly_testList_0/jdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=39661  -Xjit -XX:JITServerSSLKey=key.pem -XX:JITServerSSLCert=cert.pem
 [OUT] JITSERVER DOES NOT EXIST
 [OUT] finished script
 [ERR] /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_Nightly_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/jitserver/jitserverconfig.sh: line 30: lsof: command not found
 [ERR] Generating RSA private key, 2048 bit long modulus
 [ERR] ............+++
 [ERR] ............................................................................................................................................................................+++
 [ERR] e is 65537 (0x10001)
 [ERR] Generating a 2048 bit RSA private key
 [ERR] ....+++
 [ERR] ....+++
 [ERR] writing new private key to 'wrongKey.pem'
 [ERR] -----
 [ERR] 
 [ERR] JITServer is ready to accept incoming requests
 [ERR] failed to configure SSL ecdh: Success
 [ERR] Failed to initialize the SSL context
>> Success condition was not found: [Output match: (java|openjdk|semeru) version]
>> Required condition was not found: [Output match: JITServer Client Mode.]
>> Success condition was not found: [Output match: Successfully initialized SSL context]
>> Required condition was not found: [Output match: SSL connection on socket]
>> Success condition was not found: [Output match: Connected to a server]
>> Failure condition was not found: [Output match: (Fatal|Unhandled) Exception]
>> Success condition was not found: [Output match: JITSERVER EXISTS]
>> Success condition was not found: [Output match: JITSERVER STILL EXISTS]
>> Failure condition was found: [Output match: JITSERVER DOES NOT EXIST]
>> Failure condition was not found: [Output match: JITSERVER NO LONGER EXISTS]
@pshipton pshipton added test failure comp:jitserver Artifacts related to JIT-as-a-Service project labels Dec 12, 2023
@pshipton
Copy link
Member Author

pshipton commented Dec 12, 2023

@mpirvu fyi
I wonder if this is a machine problem, perhaps related to running on centos6.

@mpirvu
Copy link
Contributor

mpirvu commented Dec 12, 2023

I started a small grinder (1 iteration) with the failed test on the same machine where it failed:
https://openj9-jenkins.osuosl.org/job/Grinder/3144/

@mpirvu
Copy link
Contributor

mpirvu commented Dec 13, 2023

The output from the test is:

 [OUT] Starting /home/jenkins/workspace/Grinder/jdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=58564  -Xjit -XX:JITServerSSLKey=key.pem -XX:JITServerSSLCert=cert.pem
 [OUT] JITSERVER DOES NOT EXIST

so the server doesn't even start

@mpirvu
Copy link
Contributor

mpirvu commented Dec 13, 2023

I downloaded the latest nightly build and tried to launch jitserver in a centos6 container with SSL enabled and I get:

[root@c4042a3af982 bin]# ./jitserver -XX:JITServerPort=58564  -Xjit -XX:JITServerSSLKey=key.pem -XX:JITServerSSLCert=cert.pem
failed to configure SSL ecdh: Success
Failed to initialize the SSL context

Not using SSL options, works fine.
Also, using SSL in centos7 works fine, so only centos6 has a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:jitserver Artifacts related to JIT-as-a-Service project test failure
Projects
None yet
Development

No branches or pull requests

2 participants