Bug 999667

Summary: rhcsh should avoid calling load_env on erb files in env directories
Product: OpenShift Online Reporter: Andy Grimm <agrimm>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: dmcphers, jgoulding
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-21 20:12:39 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 Andy Grimm 2013-08-21 19:57:14 UTC
Description of problem:

Several cartridges have erb templates in their env directory.  rhcsh tries to source them resulting in ugly errors:

bash: export: `OPENSHIFT_MYSQL_DB_LOG_DIR.erb=<%= ENV['OPENSHIFT_MYSQL_DIR'] %>/log/': not a valid identifier
bash: export: `OPENSHIFT_MYSQL_DB_SOCKET.erb=<%= ENV['OPENSHIFT_MYSQL_DIR'] %>/socket/mysql.sock': not a valid identifier
bash: export: `OPENSHIFT_PHP_LOG_DIR.erb=<%= ENV['OPENSHIFT_PHP_DIR'] %>/logs/': not a valid identifier
bash: export: `OPENSHIFT_PHP_LOG_DIR.erb=<%= ENV['OPENSHIFT_PHP_DIR'] %>/logs/': not a valid identifier

Comment 1 Dan McPherson 2013-08-21 20:12:39 UTC

*** This bug has been marked as a duplicate of bug 999013 ***