Bug 892133 - [fork][model refactor]No environment variables exist within scalable php/perl apps via programming
Summary: [fork][model refactor]No environment variables exist within scalable php/perl...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 905021
TreeView+ depends on / blocked
 
Reported: 2013-01-05 11:41 UTC by jizhao
Modified: 2015-05-15 02:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 905021 (view as bug list)
Environment:
Last Closed: 2013-02-13 23:46:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description jizhao 2013-01-05 11:41:27 UTC
Description of problem:
Create a scalable php/perl app and try to print all the env vars via programming. No env var is found.

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

How reproducible:
Always

Steps to Reproduce:
1.Create a scalable php/perl app
2.Use the following code to list all the env vars:
For php app:
<?php
    foreach ($_ENV as $key=>$val )
    {
         echo $key."\n";
    }
?>


For perl app:
#!/usr/bin/perl
print "Content-type: text/plain\r\n\r\n";
$|=1;
foreach $fieldname(keys %ENV){
    print "$ENV[$fieldname]\n";
}
exit;

3.Git push all the changes and check the web page.
  
Actual results:
No env var is printed out.

Expected results:
All the env vars should be printed out.

Additional info:

Comment 1 jizhao 2013-01-17 11:38:47 UTC
I've tested it on fork_refctr1_420 again. Perl apps work properly now. The local-gear of php still doesn't have any env vars, but after scaling up, the newly added php-5.3 gear works properly.

Comment 2 Dan McPherson 2013-01-18 22:22:40 UTC
Fix has been made upstream.  Waiting on rebase.

Comment 3 Dan McPherson 2013-01-23 23:00:40 UTC
Fixed in >= fork_ami_refctr1_444

Comment 4 jizhao 2013-01-25 13:10:14 UTC
Since the code of model refactor has been merged into master, I've tested it on devenv_2723, and the local gear of both php and perl scalable apps have all the environment variables.

Verify this bug on devenv_2723.


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