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:
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).
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.