Description of problem: Warning messages are shown when deploy php app Version-Release number of selected component (if applicable): devenv_3898 How reproducible: always Steps to Reproduce: 1.create a php app; #rhc app create phpapp php 2.do some changes on this app 3.deploy the app #git commit -a -m 'test' && git push Actual results: Output: remote: [Tue Oct 15 05:42:15 2013] [warn] PassEnv variable SHELL was undefined remote: [Tue Oct 15 05:42:15 2013] [warn] PassEnv variable USER was undefined remote: [Tue Oct 15 05:42:15 2013] [warn] PassEnv variable LOGNAME was undefined ssh into app gear, we can find these envs Expected results: Shouldn't show any warning message Additional info: similar problem on python,perl,ruby.
I can see these messages also for other cartridges. I thought this just happen on devenv and it is due to some verbose settings is enabled there.
The PR is here: https://github.com/openshift/origin-server/pull/4061
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/1cea46b79ff1c844b984fab451149c325e1a7c54 Bug 1019219 - Exclude USER,SHELL and LOGNAME from passenv.conf
check it on devenv_3979 1.create a php app #rhc app create phpapp php-5.3 --server ec2-184-73-149-206.compute-1.amazonaws.com 2.do some change, then git push Output: remote: Stopping PHP cartridge remote: [Fri Nov 01 00:56:06 2013] [warn] PassEnv variable SHELL was undefined remote: [Fri Nov 01 00:56:06 2013] [warn] PassEnv variable USER was undefined remote: [Fri Nov 01 00:56:06 2013] [warn] PassEnv variable LOGNAME was undefined remote: Waiting for stop to finish remote: Building git ref 'master', commit 3cdd2eb remote: Building PHP cartridge remote: Preparing build for deployment remote: Deployment id is 88d9aac8 remote: Activating deployment remote: Starting PHP cartridge remote: Result: success remote: Activation status: success remote: Deployment completed with status: success To ssh://527333ee87fe11c9f6000032.rhcloud.com/~/git/phpapp.git/ b1be18f..3cdd2eb master -> master
Hmm I cannot reproduce this on my devenv... Moving to Vojtech for detailed investigation, since I saw other undefined variables in other cartridge as well (some SELINUX env vars as well) and he is the original author of passenv.conf.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/b1daeb55c51caf618021d7769434f02cb2ec90eb Bug 1019219 - PassEnv warning messages are shown when deploy app
check on devevn_4363 1.create a php app 2.do some change, then git push Output: Counting objects: 7, done. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 372 bytes, done. Total 4 (delta 2), reused 0 (delta 0) remote: Stopping PHP 5.3 cartridge (Apache+mod_php) remote: Waiting for stop to finish remote: Building git ref 'master', commit 4f4e8ee remote: Checking deplist.txt for PEAR dependency.. remote: Preparing build for deployment remote: Deployment id is 8c0d8399 remote: Activating deployment remote: Starting PHP 5.3 cartridge (Apache+mod_php) remote: ------------------------- remote: Git Post-Receive Result: success remote: Activation status: success remote: Deployment completed with status: success To ssh://52fad1d3333a342d11000001.rhcloud.com/~/git/phpapp.git/ 445cfb6..4f4e8ee master -> master