Bug 798407 - embedded cartridge proxy fails and stuffs invalid code into the variable
Summary: embedded cartridge proxy fails and stuffs invalid code into the variable
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Rob Millner
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-28 19:41 UTC by Rob Millner
Modified: 2015-05-14 22:52 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-02 21:56:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rob Millner 2012-02-28 19:41:23 UTC
Description of problem:
The expose-port hook on embedded cartridges fails.  Instead of trapping the failure, the error message gets stuffed into the proxy port variable triggering syntax errors in any script which reads it.

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


How reproducible:
Always

Steps to Reproduce:
1. Launch a dev env
2. Create an app
3. Log in as root
4. Run the expose-port hook

ex:
/usr/libexec/li/cartridges/embedded/mysql-5.1/info/hooks/expose-port exposeConcealHook epopxqo b6de2d4d350841889d32898040db1f99

  
Actual results:

/var/lib/libra//b6de2d4d350841889d32898040db1f99//.env/OPENSHIFT_DB_PROXY_PORT: line 2: Dest: command not found


Expected results:
A positive result from the script.  For example:
CART_DATA: PROXY_HOST=exposeConcealHook-epopxqo.dev.rhcloud.com
CART_DATA: PROXY_PORT=35531
CART_DATA: HOST=120.0.250.1
CART_DATA: PORT=3306

Additional info:

Comment 1 Rob Millner 2012-02-28 19:42:16 UTC
Resolved with commits:
08def1539d2ad3a00c1b4255ac328bb154f92341
cc1dbe3c116df4fd09f3a749dfa3728f4800e2ef
f31667f675074314eef59defaae2ad4f05b19381

Comment 2 Meng Bo 2012-02-29 08:03:44 UTC
verified on devenv_1649, issue has been fixed.


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