Bug 928811 - rhc-list-ports should consider application status
Summary: rhc-list-ports should consider application status
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-28 13:59 UTC by Hiro Asari
Modified: 2015-05-14 23:17 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-27 16:09:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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