Bug 998891

Summary: [origin_broker_86] User environment variables in scaled up gears can not be unset after trying to unset it via client
Product: OpenShift Online Reporter: weiwei jiang <wjiang>
Component: MasterAssignee: Ravi Sankar <rpenta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: ffranz, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-29 12:53:35 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 weiwei jiang 2013-08-20 10:00:20 UTC
Description of problem:
Create a scale app, scale up the app, set an user env variable then unset it via client, then ssh in the scale-uped gear and found the variable still exist.
But the user envionment variables on the head gear is unset successfully.And if after unset operation, user have at least one variable, it will also unset successfully.

Version-Release number of selected component (if applicable):
devenv_3678
rhc build from devenv_3677

How reproducible:
always

Steps to Reproduce:
1. Create a scalable app
2. Scale up the app
 rhc cartridge scale $cart_type -a $app_name --min 2 
3. Set a variable to the app
 rhc env set key=value -a $app_name
4. Check the variable in all gears
5. Unset the variable via client, and after unset operation, user have no variables.
 rhc env unset key -a $appname
6. Check the variable in all gears

Actual results:
3.rhc ssh app --gear env |grep asdf
asdf=dfad
asdf=dfad
asdf=dfad
6.The variable not unset in scale-uped gear
rhc ssh app --gear env |grep asdf
asdf=dfad
asdf=dfad

Expected results:
The variable should be unset in all gears

Additional info:

Comment 1 Ravi Sankar 2013-08-20 19:41:11 UTC
Fixed in https://github.com/openshift/origin-server/pull/3439

Comment 2 weiwei jiang 2013-08-22 03:20:53 UTC
Test on devenv_3683 and result is :
rhc app create phps php-5.3 -s
rhc cartridge scale php-5.3 -a phps --min 2 --max 2
rhc env set adf=aad -a phps
   rhc ssh phps --gears env |grep adf
       adf=aad
       adf=aad
rhc env unset adf -a phps
   rhc ssh phps --gears env |grep adf
   no output

so verified this bug

Comment 3 weiwei jiang 2013-08-22 04:25:59 UTC
And rhc version is rhc build from devenv_3683