| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The client shade config only excluded the jdk18on BouncyCastle artifacts, which are shipped as separate jars in the management server lib folder. If a stale or transitive dependency pulls in bcprov/bcpkix/bctls-jdk15on, the old classes are bundled into the fat jar and can shadow bcprov-jdk18on depending on the classpath order of lib/*, failing with NoSuchFieldError (e.g. xmss_SHAKE128_512ph) when the root CA module starts.
|
I faced the issue below on ubuntu 24/26 2026-10-07 16:52:24,463 INFO [o.a.c.s.l.CloudStackExtendedLifeCycle] (main:[]) (logid:) configuring bean RootCAProvider. 2026-10-07 16:52:24,478 DEBUG [o.a.c.c.p.RootCAProvider] (main:[]) (logid:) Generating root CA public/private keys 2026-10-07 16:52:27,123 ERROR [o.a.c.c.p.RootCAProvider] (main:[]) (logid:) Failed to load user-provided CA certificate. Check that ca.plugin.root.ca.certificate is set and in PEM format. Overwriting with auto-generated certificate. 2026-10-07 16:52:27,123 DEBUG [o.a.c.c.p.RootCAProvider] (main:[]) (logid:) Generating root CA certificate 2026-10-07 16:52:27,192 ERROR [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Failed to load module [root-ca] due to: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is java.lang.NoSuchFieldError: xmss_SHAKE128_512ph Quick workaround on the management server: put the BouncyCastle jars first in CLASSPATH in /etc/default/cloudstack-management: The issue has been reported by @RosiKyu in the comment #14033 (comment) This issue happens rarely, I did not face it before, but faced it 3 times yesterday. (related to #12794 ) |
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #14353 +/- ##
============================================
- Coverage 19.91% 19.91% -0.01%
+ Complexity 20200 20199 -1
============================================
Files 6373 6373
Lines 577230 577230
Branches 70696 70696
============================================
- Hits 114958 114953 -5
- Misses 449703 449711 +8
+ Partials 12569 12566 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
There was a problem hiding this comment.
The reviewed shading configuration change addresses the artifact conflict with no unresolved issues.
0 open findings
What changed in this PRUpdates the client shaded JAR configuration to prevent legacy BouncyCastle JDK15 artifacts from shadowing JDK18 artifacts.
Changes:
| File | Description |
|---|---|
| client/pom.xml | Adds BouncyCastle JDK15 artifact exclusions. |
🧠 Review effort: Lite
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19466 |
Sorry, something went wrong.
|
@blueorangutan test ubuntu24 kvm-ubuntu24 |
Sorry, something went wrong.
|
Vishesh has found this is caused by netris-java-sdk update. good finding! |
Sorry, something went wrong.
|
@blueorangutan test ubuntu24 kvm-ubuntu24 |
Sorry, something went wrong.
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu24 mgmt + kvm-ubuntu24) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian Build Failed (tid-17098) |
Sorry, something went wrong.
|
this PR does not fix the issue root@pr14353-t17098-kvm-ubuntu24-mgmt1:~# grep root-ca /var/log/cloudstack/management/management-server.log 2026-10-08 09:40:47,335 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Module Hierarchy: root-ca 2026-10-08 09:41:30,401 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Module Hierarchy: root-ca 2026-10-08 09:43:58,069 DEBUG [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Trying to obtain module [root-ca] context. 2026-10-08 09:43:58,069 DEBUG [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Trying to load module [root-ca] context. 2026-10-08 09:43:58,070 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Loading module context [root-ca] from URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar!/META-INF/cloudstack/root-ca/spring-root-ca-context.xml] 2026-10-08 09:43:58,070 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Loading module context [root-ca] from URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar!/META-INF/cloudstack/ca/spring-core-lifecycle-ca-context-inheritable.xml] 2026-10-08 09:43:58,070 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Loading module context [root-ca] from URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar!/META-INF/cloudstack/core/spring-core-lifecycle-core-context-inheritable.xml] 2026-10-08 09:43:58,070 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Loading module context [root-ca] from URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar!/META-INF/cloudstack/system/spring-core-system-context-inheritable.xml] 2026-10-08 09:43:58,070 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Loading module context [root-ca] from URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar!/META-INF/cloudstack/system/spring-framework-config-system-context-inheritable.xml] 2026-10-08 09:43:58,070 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Loading module context [root-ca] from URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar!/META-INF/cloudstack/system/spring-contrail-system-context-inheritable.xml] 2026-10-08 09:43:58,070 INFO [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Loading module context [root-ca] from URL [jar:file:/usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar!/META-INF/cloudstack/bootstrap/spring-bootstrap-context-inheritable.xml] 2026-10-08 09:44:03,371 ERROR [o.a.c.s.m.m.i.DefaultModuleDefinitionSet] (main:[]) (logid:) Failed to load module [root-ca] due to: org.springframework.context.ApplicationContextException: Failed to start bean 'cloudStackLifeCycle'; nested exception is java.lang.NoSuchFieldError: xmss_SHAKE128_512ph and root@pr14353-t17098-kvm-ubuntu24-mgmt1:~# unzip -l /usr/share/cloudstack-management/lib/cloudstack-24.0.0-shapeblue20439.jar |grep -c "org/bouncycastle" 6295 |
Sorry, something went wrong.
…d jar" This reverts commit e1f9011.
The netris-java-sdk 1.0.0 artifact was republished without a version bump and now declares bcprov-jdk15on and bctls-jdk15on 1.70. These were shaded into the management server jar next to the bcprov/bcpkix/bctls-jdk18on 1.83 jars in lib/, and the old classes could shadow the new ones depending on the classpath order, failing with NoSuchFieldError (xmss_SHAKE128_512ph) when the root CA module starts. The SDK still gets BouncyCastle (BouncyCastleProvider and BouncyCastleJsseProvider) from the managed jdk18on 1.83 artifacts.
|
@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 19470 |
Sorry, something went wrong.
|
@blueorangutan test ubuntu24 kvm-ubuntu24 |
Sorry, something went wrong.
|
@weizhouapache a [SL] Trillian-Jenkins test job (ubuntu24 mgmt + kvm-ubuntu24) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian Build Failed (tid-17100) |
Sorry, something went wrong.
|
this PR is not required when bump the netris-java-sdk to 1.1.0 closing |
Sorry, something went wrong.
|
[SF] Trillian Build Failed (tid-17102) |
Sorry, something went wrong.
|
Hi @weizhouapache @vishesh92 please check #14365 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
The client shade config only excluded the jdk18on BouncyCastle artifacts, which are shipped as separate jars in the management server lib folder. If a stale or transitive dependency pulls in bcprov/bcpkix/bctls-jdk15on, the old classes are bundled into the fat jar and can shadow bcprov-jdk18on depending on the classpath order of lib/*, failing with NoSuchFieldError (e.g. xmss_SHAKE128_512ph) when the root CA module starts.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?