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:
I used the term RFE very generically, since I'm reporting something in "bug"zilla that is clearly not a bug :-)
Patch backported to Queens and merged upstream. https://review.openstack.org/#/c/612237/
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
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