Bug 1130402

Summary: rhc-list-ports can not work on INT
Product: OpenShift Online Reporter: chunchen <chunchen>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED WORKSFORME QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: chunchen, jokerman, mmccomas, 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: 2014-08-15 17:01:44 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 chunchen 2014-08-15 06:56:45 UTC
Description of problem:
rhc-list-ports can not work on INT

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

How reproducible:
always

Steps to Reproduce:
1. Create an app with DB cartridge

2. SSH into the app and run rhc-list-ports

Actual results:
[1] For non-scaled app with DB cartridge:
declare -A BASH_ALIASES='()' 
declare -A BASH_CMDS='()'  
/usr/bin/rhc-list-ports: line 28: 127.2.179.2:27017: syntax error: invalid arithmetic operator (error token is ".2.179.2:27017")

[2] For scaled app with DB cartridge:
declare -A BASH_ALIASES='()' 
declare -A BASH_CMDS='()'
/usr/bin/rhc-list-ports: line 28: 53ed7fc76cec0e26dd0006de: value too great for base (error token is "53ed7fc76cec0e26dd0006de")

Expected results:
rhc-list-ports should work well.

Additional info:

Comment 1 Jhon Honce 2014-08-15 17:01:44 UTC
I cannot reproduce the issue.  

1> rhc create-app perl002 perl-5.10 mysql-5.1 --no-git
1> ssh <url>
1> rhc-list-ports
httpd -> 127.3.92.129:8080
mysql -> 127.3.92.130:3306-> 127.2.59.2:3306


2> rhc create-app perl003 perl-5.10 mysql-5.1 --no-git -s
2> ssh <url>
2> rhc-list-ports
haproxy -> 127.7.54.2:8080
haproxy -> 127.7.54.3:8080
httpd -> 127.7.54.1:8080
mysql -> 53ee3ba403ef64e79800106e-honceint.int.rhcloud.com:38441

Comment 2 chunchen 2014-08-18 01:57:25 UTC
Checked on INT(devenv_5083), it works for now, please refer to the following results:

1) rhc create-app cperl perl-5.10 mysql-5.1 --no-git
1) ssh <url>
1) rhc-list-ports
httpd -> 127.10.62.1:8080
mysql -> 127.10.62.2:3306


2) rhc create-app perls perl-5.10 mysql-5.1 --no-git -s
2) ssh <url>
2) rhc-list-ports
haproxy -> 127.5.114.2:8080
haproxy -> 127.5.114.3:8080
httpd -> 127.5.114.1:8080
mysql -> 53f15b2203ef644a2d002bee-ctest.int.rhcloud.com:39326