This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 999917 - No quota warning message is given by "rhc port-forward" from command line
No quota warning message is given by "rhc port-forward" from command line
Product: OpenShift Online
Classification: Red Hat
Component: Command Line Interface (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Clayton Coleman
libra bugs
: UpcomingRelease
Depends On:
  Show dependency treegraph
Reported: 2013-08-22 07:21 EDT by Qiushui Zhang
Modified: 2015-05-14 22:24 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-22 16:44:28 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 Qiushui Zhang 2013-08-22 07:21:01 EDT
Description of problem:
In command line, "rhc port-forward" a gear whose storage is used more than 90%.
There is not warning message to show the gear quota usage.

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

How reproducible:

Steps to Reproduce:
1. Create an app, e.g. rhc app create rb ruby-1.9
2. SSH into the app. dd if=/dev/zero of=~/app-root/data/testfile bs=1M count=970
3. In command line, rhc port-forward -a rb -g $gear_uuid

Actual results:

[walter@dhcp-10-238 tmp]$ rhc port-forward -a rb -g 717431137558912856752128
Checking available ports ... done
Forwarding ports ...
Address already in use - bind(2) while forwarding port 8080. Trying local port 8081

To connect to a service running on OpenShift, use the Local address

Service Local               OpenShift
------- -------------- ---- ----------------
httpd  =>

Press CTRL-C to terminate port forwarding

Expected results:
The quota warning message should be shown.

Additional info:

On the instance, if "tailf /var/log/mcollective.log |grep quota", we can see the warning message in log:

I, [2013-08-22T06:56:15.030356 #1086]  INFO -- : openshift.rb:185:in `execute_parallel_action' execute_parallel_action call - [{:tag=>"", :gear=>"717431137558912856752128", :job=>{:cartridge=>"openshift-origin-node", :action=>"app-state-show", :args=>{"--with-app-uuid"=>"717431137558912856752128", "--with-app-name"=>"rb", "--with-container-uuid"=>"717431137558912856752128", "--with-container-name"=>"rb", "--with-namespace"=>"qiuzhang", "--with-request-id"=>"19bc2aeb3dfa932dc185bbf08c666ac4"}}, :result_stdout=>"started\nCLIENT_MESSAGE: Warning gear 717431137558912856752128 is using 94.81353759765625 of disk quota\n", :result_stderr=>"", :result_exit_code=>0}]
Comment 1 Clayton Coleman 2013-08-22 16:44:28 EDT
This is not actually a bug - RHC does not make a broker call (and hence no mcollective call) when querying for the ports to list.  It calls directly to the gear, and we expect a highly formatted list of results.  It might be nice to see a warning about quota, but it's not required.

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