Skip to content

Commit 393997a

Browse files
authored
Add a note for JAVA_OPTS if using Java 17 for ACS versions >= 4.20.0 (#544)
1 parent ace3499 commit 393997a

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

source/upgrading/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Contents:
4242
.. toctree::
4343
:maxdepth: 1
4444

45+
upgrade/upgrade_java_17_notes
4546
upgrade/mysql
4647
upgrade/valid_source
4748
upgrade/upgrade-4.20
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.. Licensed to the Apache Software Foundation (ASF) under one
2+
or more contributor license agreements. See the NOTICE file
3+
distributed with this work for additional information#
4+
regarding copyright ownership. The ASF licenses this file
5+
to you under the Apache License, Version 2.0 (the
6+
"License"); you may not use this file except in compliance
7+
with the License. You may obtain a copy of the License at
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
Unless required by applicable law or agreed to in writing,
10+
software distributed under the License is distributed on an
11+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
12+
KIND, either express or implied. See the License for the
13+
specific language governing permissions and limitations
14+
under the License.
15+
16+
.. CloudStack Release Notes documentation main file, created by
17+
sphinx-quickstart on Fri Feb 7 16:00:59 2014.
18+
You can adapt this file completely to your liking, but it should at least
19+
contain the root `toctree` directive.
20+
21+
|menu_acs_logo|
22+
23+
24+
Upgrading CloudStack
25+
====================
26+
27+
Java version upgraded to Java 17
28+
---------------------------------
29+
30+
As of Apache CloudStack 4.20, support for running with Java 17 has been added.
31+
In later versions, support for Java 11 will be removed.
32+
33+
If you are running CloudStack with Java 17, for CloudStack versions 4.20 and later:
34+
* Verify /etc/default/cloudstack-management is consistent with https://github.com/apache/cloudstack/blob/main/packaging/systemd/cloudstack-management.default; Specifically, ensure that the following is present in the JAVA_OPTS:
35+
36+
.. code-block:: bash
37+
38+
--add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED
39+
40+
* Verify /etc/default/cloudstack-usage is also consistent with the same file in the repository.
41+
* Perform the same check for /etc/default/cloudstack-agent on the hypervisor hosts.
42+
43+
.. include:: _java_version.rst

source/upgrading/upgrade/upgrade_notes.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ Java version upgraded to Java 17
2323
As of Apache CloudStack 4.20, support for running with Java 17 has been added.
2424
In later versions, support for Java 11 will be removed.
2525

26+
If you are running CloudStack with Java 17, for CloudStack versions 4.20 and later:
27+
* Verify /etc/default/cloudstack-management is consistent with https://github.com/apache/cloudstack/blob/main/packaging/systemd/cloudstack-management.default; Specifically, ensure that the following is present in the JAVA_OPTS:
28+
29+
.. code-block:: bash
30+
31+
--add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED
32+
33+
* Verify /etc/default/cloudstack-usage is also consistent with the same file in the repository.
34+
* Perform the same check for /etc/default/cloudstack-agent on the hypervisor hosts.
2635

2736
.. include:: _java_version.rst
2837

0 commit comments

Comments
 (0)