Bug 1622763

Summary: RFE: Support setting EXTRA_JAVA_OPTS through THT
Product: Red Hat OpenStack Reporter: Sai Sindhur Malleni <smalleni>
Component: openstack-tripleo-heat-templatesAssignee: Janki <jchhatba>
Status: CLOSED ERRATA QA Contact: Noam Manos <nmanos>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: aadam, jchhatba, jjoyce, jschluet, mariel, mburns, mkolesni, slinaber, tvignaud
Target Milestone: z4Keywords: FutureFeature, Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-16 17:55:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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