Bug 1169690
Summary: | Webconsole should show warning info when add cartridge as quota used up to QUOTA_WARNING_PERCENT | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Yanping Zhang <yanpzhan> | ||||||||||||
Component: | Management Console | Assignee: | Sally <somalley> | ||||||||||||
Status: | CLOSED ERRATA | QA Contact: | libra bugs <libra-bugs> | ||||||||||||
Severity: | medium | Docs Contact: | |||||||||||||
Priority: | medium | ||||||||||||||
Version: | 2.2.0 | CC: | bleanhar, gpei, jokerman, libra-onpremise-devel, mmccomas, rthrashe, somalley, yanpzhan | ||||||||||||
Target Milestone: | --- | ||||||||||||||
Target Release: | --- | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
Whiteboard: | |||||||||||||||
Fixed In Version: | openshift-origin-msg-node-mcollective-1.30.2.1-1 | Doc Type: | Bug Fix | ||||||||||||
Doc Text: |
Cause: When adding a cartridge to a gear if gear quota is > 90% used, warning info was shown twice with 2 different quota values.
Consequence: Confusing to users and 1 warning reflected quota before cartridge addition and 1 warning reflected quota after cartridge addition.
Fix: Removed the double warning. Was reporting quota during action=='configure' and action=='post-configure'. Now only reports quota during action=='post-configure'.
Result: User only sees 1 correct warning message when trying to add a cartridge to a nearly full gear, ex: "Warning: Gear <app name> is using 95.9% of disk quota"
|
Story Points: | --- | ||||||||||||
Clone Of: | |||||||||||||||
: | 1170021 (view as bug list) | Environment: | |||||||||||||
Last Closed: | 2016-03-22 16:51:10 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: | |||||||||||||||
Bug Depends On: | 1170021 | ||||||||||||||
Bug Blocks: | |||||||||||||||
Attachments: |
|
Description
Yanping Zhang
2014-12-02 08:33:55 UTC
Created attachment 963588 [details]
restart-warning
Created attachment 963589 [details]
add-mongo
Yeah, have cloned it to online. Have tested on puddle-2-2-2014-12-08.After fix, the same result with Bug #1170021 is seen. Could refer to attachment "warninginfo". Created attachment 966046 [details]
warninginfo
Created attachment 1130593 [details]
warning appears when adding mongodb cart to full quota app
I see the console warning when adding mongodb to an app that is very near quota limit.
Hi, Still could reproduce the error in Comment 7, here's my steps: 1. Create a ruby-2.0 app named app1 2. Log into the app and take more than 90% quota of the app rhc ssh app1 [app1-yes.ose22-auto.com.cn yes-app1-1]\> dd if=/dev/zero of=app-root/data/test1 bs=1M count=950 950+0 records in 950+0 records out 996147200 bytes (996 MB) copied, 3.78669 s, 263 MB/s 3. On web console, Click "Add MySQL 5.5" on app1 page. Then could see "Warning: Gear yes-app1-1 is using 93.0% of disk quota Warning: Gear yes-app1-1 is using 97.9% of disk quota" Created attachment 1130807 [details]
Duplicate warning information
Looks like openshift-github-bot didn't post for some reason. The relevant PR has been merged: https://github.com/openshift/origin-server/pull/6369 @rory The bot doesn't do that. There is a github webhook but it is picky about how you reference the bug. Examples that work: Ticket 123 Bug 123 Tracker item 123 Multiple bugs can also be specified by separating them with a comma, apersand, plus or "and": Bug 123, 124 and 125 Dan, Ahhhhh good to know - I'm just used to seeing the post come from "openshift-github-bot". Looks like there was a space missing from the commit message - which was probably why the webhook didn't pick it up. Just wanted to have the link to the PR for future reference. QE, We've made changes and updated the puddle. Can we verify that there is a warning for the quota over 90%, and that the double-warning no longer exists? Puddle: http://etherpad.corp.redhat.com/puddle-2-2-2016-02-19 Tested on puddle 2.2/2016-03-03.1/ Steps to verify: 1.Create app. $rhc app create phptest php-5.4 2. Log into the app and take more than 90% quota of the app: $ rhc ssh phptest [phptest-domtest.ose22-auto.com.cn domtest-phptest-1]\> dd if=/dev/zero of=app-root/data/test1 bs=1M count=930 930+0 records in 930+0 records out 975175680 bytes (975 MB) copied, 2.1559 s, 452 MB/s [phptest-domtest.ose22-auto.com.cn domtest-phptest-1]\> quota Disk quotas for user domtest-phptest-1 (uid 1460): Filesystem blocks quota limit grace files quota limit grace /dev/loop0 953340 0 1048576 222 0 80000 3.Login web console, Click "Add MySQL 5.5" on phptest page. Now could see one warning info: Warning: Gear domtest-phptest-1 is using 95.9% of disk quota The bug has been fixed, so move it to verified. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-0489.html |