Bug 1622763 - RFE: Support setting EXTRA_JAVA_OPTS through THT
Summary: RFE: Support setting EXTRA_JAVA_OPTS through THT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z4
: 13.0 (Queens)
Assignee: Janki
QA Contact: Noam Manos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-28 01:40 UTC by Sai Sindhur Malleni
Modified: 2019-01-16 17:55 UTC (History)
9 users (show)

Fixed In Version: puppet-opendaylight-8.2.2-4.9126c8dgit.el7ost, openstack-tripleo-heat-templates-8.0.7-10.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-01-16 17:55:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenDaylight gerrit 68491 0 None None None 2018-10-09 05:55:11 UTC
OpenDaylight gerrit 76355 0 None None None 2018-10-09 05:54:39 UTC
OpenDaylight gerrit 77533 0 None None None 2018-11-06 11:47:04 UTC
OpenDaylight gerrit 77763 0 None None None 2018-11-14 14:36:17 UTC
OpenStack gerrit 604750 0 None master: MERGED tripleo-heat-templates: Add provision to specify java arguments to ODL (I99e08314dedfcc71a776423ac3c6c282237cc0c2) 2018-11-27 15:33:29 UTC
OpenStack gerrit 612237 0 None stable/queens: MERGED tripleo-heat-templates: Add provision to specify java arguments to ODL (I99e08314dedfcc71a776423ac3c6c282237cc0c2) 2018-11-27 15:33:17 UTC
Red Hat Product Errata RHBA-2019:0068 0 None None None 2019-01-16 17:55:17 UTC

Description Sai Sindhur Malleni 2018-08-28 01:40:35 UTC
Description of problem:
Customers might want to add extra java command line options to the JVM (things like GC options). We must support this configuration through THT.


Version-Release number of selected component (if applicable):
OSP13

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 4 Sai Sindhur Malleni 2018-09-24 08:31:07 UTC
I used the term RFE very generically, since I'm reporting something in "bug"zilla that is clearly not a bug :-)

Comment 5 Janki 2018-10-31 06:50:15 UTC
Patch backported to Queens and merged upstream.
https://review.openstack.org/#/c/612237/

Comment 6 Janki 2018-11-08 12:04:32 UTC
To verify:

1. Deploy overcloud with ODL with env file '-e /home/stack/heap_size.yaml'

[stack@undercloud-0 ~]$ cat heap_size.yaml 
parameter_defaults:
  OpenDaylightJavaOpts: -Xmx8192M

2. After deployment is complete, log into overcloud controller nodes and check
  1. [heat-admin@controller-0 ~]$ sudo hiera -c /etc/puppet/hiera.yaml opendaylight::java_opts returns -Xmx8192M
  2. value of EXTRA_JAVA_OPTS="-Djava.net.preferIPv4Stack -Xmx8192M" at sudo vi /var/lib/config-data/puppet-generated/opendaylight/opt/opendaylight/bin/karaf +51

3. Log into ODL container and check out of ps -efww for "-Djava.net.preferIPv4Stack -Xmx8192M" as shown below:

odl          175       1  7 05:10 ?        00:32:56 /usr/bin/java -Djava.security.properties=/opt/opendaylight/etc/odl.java.security -Xms128M -Xmx8192m -XX:+UnlockDiagnosticVMOptions -XX:+HeapDumpOnOutOfMemoryError -Dcom.sun.management.jmxremote -Djava.net.preferIPv4Stack -Xmx8192M -Djava.security.egd=file:/dev/./urandom -Djava.endorsed.dirs=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre/jre/lib/endorsed:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre/lib/endorsed:/opt/opendaylight/lib/endorsed -Djava.ext.dirs=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre/jre/lib/ext:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-0.el7_5.x86_64/jre/lib/ext:/opt/opendaylight/lib/ext -Dkaraf.instances=/opt/opendaylight/instances -Dkaraf.home=/opt/opendaylight -Dkaraf.base=/opt/opendaylight -Dkaraf.data=/opt/opendaylight/data -Dkaraf.etc=/opt/opendaylight/etc -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=/opt/opendaylight/data/tmp -Djava.util.logging.config.file=/opt/opendaylight/etc/java.util.logging.properties -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath /opt/opendaylight/lib/boot/org.apache.karaf.diagnostic.boot-4.1.5.jar:/opt/opendaylight/lib/boot/org.apache.karaf.jaas.boot-4.1.5.jar:/opt/opendaylight/lib/boot/org.apache.karaf.main-4.1.5.jar:/opt/opendaylight/lib/boot/org.osgi.core-6.0.0.jar org.apache.karaf.main.Main

Comment 25 errata-xmlrpc 2019-01-16 17:55:03 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0068


Note You need to log in before you can comment on or make changes to this bug.