Bug 928811

Summary: rhc-list-ports should consider application status
Product: OpenShift Online Reporter: Hiro Asari <hasari>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED WONTFIX QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: adietish, bhatiam, jkeck, mmcgrath
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-27 16:09:49 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 Hiro Asari 2013-03-28 13:59:04 UTC
Description of problem:

This is a spinoff from #812418. Refer to that (lengthy) ticket for a more complete discussion.

SUMMARY: Currently, 'rhc port-forward' relies on the 'rhc-list-ports' command to show the list of ports that it should forward. When the application is not running, naturally some ports will be missing, but it is impossible for the 'rhc' command to know with certainty. (It suggests to check the application status if port forwarding fails or no ports are returned by 'rhc-list-ports'.) Is it possible and feasible for the 'rhc-list-ports' command to have this functionality?


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


How reproducible:

100%

Steps to Reproduce:
1. Create an app.
2. Add a DB cartridge, say MySQL.
2. Stop the app.
3. Log in to the gear, and run 'rhc-list-ports'.
  
Actual results:
The DB port(s) will be listed, but app's are not.

Expected results:
Not really sure yet. Whatever 'rhc-list-ports' decides to do, 'rhc port-forward' would need to understand it and present it to the user accordingly. This might be an API versioning issue, too.

Additional info:

Comment 1 Hiro Asari 2013-03-28 17:18:06 UTC
Just to be clear: it is possible to not do this at all. 'rhc port-forward' can advise the user that only the cartridges listening on ports are listed (and if the user believes some ports are missing, the user should check the status).

Comment 2 Mike McGrath 2013-06-24 19:26:59 UTC
We're working on fixing this with our HA pep, probably won't have any updates on this particular bug for a bit but we are working on it.