Bug 1020521 - mongodb environment variables not showing up on scaled applications
Summary: mongodb environment variables not showing up on scaled applications
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-17 20:02 UTC by Corey Daley
Modified: 2015-05-14 23:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:25:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Corey Daley 2013-10-17 20:02:35 UTC
Description of problem:
mongodb environment variables not showing up on scaled applications
might also be affecting Java applications...

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


How reproducible:


Steps to Reproduce:
1. create php application
2.add mongo db
3. variables show up using ssh, but not via web application

http://phpscale-cdaley.rhcloud.com/phpinfo.php

Actual results:
mongo environment variables are not present

Expected results:
mongo env variables should be present

Additional info:

Comment 1 Jhon Honce 2013-10-17 20:06:29 UTC
Was the application restarted between steps #2 and #3 so the jvm processes could pick up the new environment variables?

Comment 2 Corey Daley 2013-10-17 20:08:54 UTC
I have restarted the PHP application that I am testing on, I will ask the user if they have on their JAVA application.

Comment 3 Jhon Honce 2013-10-17 21:04:08 UTC
The PHP cartridge is implemented to use httpd restart for a better user experience, so a rhc stop/rhc start is required between steps #2 and #3 to pick up the environment variable changes.

The jboss cartridges do a stop/start for their restart, so rhc restart should be sufficient between steps #2 and #3.

Comment 4 Meng Bo 2013-10-21 09:53:40 UTC
Tested on devenv_3921 with jbossas app, after app restart the new added env can be detected by jsp script.


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