Bug 969390 - Should give a correct prompt when rhc port-forward for stopped db cartridge
Should give a correct prompt when rhc port-forward for stopped db cartridge
Product: OpenShift Online
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Clayton Coleman
libra bugs
Depends On:
  Show dependency treegraph
Reported: 2013-05-31 07:00 EDT by Wei Sun
Modified: 2015-05-14 22:23 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-24 10:50:10 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Wei Sun 2013-05-31 07:00:36 EDT
Description of problem:
Create a scaling app with db cartridge,and stop db cartridge,and then run `rhc port-forward` for stopped db cartrdige,but prompt that "app is stopped". Should 
prompt "db cartrdige is stopped"

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

How reproducible:

Steps to Reproduce:
1.Create a scaling app with db cartridge
2.Stop db cartrdige
3.Get db cartridge gear id
4.Run `rhc port-forward $app --gear $dbgearid`

Actual results:
3.[sunwei@dhcp-8-229 ~]$ rhc app-show phps --gears
ID                       State   Cartridges          Size  SSH URL
------------------------ ------- ------------------- ----- ---------------------------------------------------------------------------
51a86baabd71ca283f000020 started php-5.3 haproxy-1.4 small 51a86baabd71ca283f000020@phps-wsunstgdev354.dev.rhcloud.com
51a86d5ebd71ca365a000003 started php-5.3 haproxy-1.4 small 51a86d5ebd71ca365a000003@51a86d5ebd71ca365a000003-wsunstgdev354.dev.rhcloud.com
51a87950bd71ca283f000041 started php-5.3 haproxy-1.4 small 51a87950bd71ca283f000041@51a87950bd71ca283f000041-wsunstgdev354.dev.rhcloud.com
51a8708bbd71ca5bfa000027 stopped mysql-5.1           small 51a8708bbd71ca5bfa000027@51a8708bbd71ca5bfa000027-wsunstgdev354.dev.rhcloud.com

4.[sunwei@dhcp-8-229 phps]$ rhc port-forward -a phps --gear 51a8708bbd71ca5bfa000027
Checking available ports ... Application phps is stopped. Please restart the application and try again.

Expected results:
Prompt db cartridge is stopped

Additional info:
Comment 1 Clayton Coleman 2013-06-14 19:05:21 EDT
Fixed in https://github.com/openshift/rhc/pull/403
Comment 2 Wei Sun 2013-06-17 01:01:49 EDT
Will verify it after the pull request is merged.
Comment 3 openshift-github-bot 2013-06-17 11:10:10 EDT
Commit pushed to master at https://github.com/openshift/rhc

Bug 969390 - Only full stop triggers message
Comment 4 Wei Sun 2013-06-17 21:09:03 EDT
Verified on devenv_3372

[sunwei@dhcp-8-229 dev]$ rhc port-forward phps --gear 51bfaf4c3f0025071700001c -p x
Checking available ports ... none
There are no available ports to forward for this application. Your application may be stopped or idled.

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