Bug 977148

Summary: Scaled, non-web framework cartridges are not reported correctly via rhc-list-ports
Product: OpenShift Online Reporter: Clayton Coleman <ccoleman>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED UPSTREAM QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: dmcphers, hasari, xtian
Target Milestone: ---Keywords: UpcomingRelease, Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-12 21:32:53 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 Clayton Coleman 2013-06-23 19:14:43 UTC
rhc-list-ports should correctly list all of the exposed TCP endpoints for scaled, non web-cartridges from the head gear.  If this is blocked by scaled db cartridges being unable to report multiple environment variables, then we need to transition this to a call to the broker to fetch the complete cart/port/host mapping for all gears via the story in the HA epic.

Scenario:

1. rhc create-app foo php-5 -s
2. rhc add-cartridge -a foo "http://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-redis-cart&commit=0.1.0"
3. rhc scale-cartridge redis -a foo 2
4. ssh to head gear
5. run rhc-list-ports

Expected:

rhc-list-ports should list both scaled redis instances and their external ports.