Bug 986838
Summary: | User storage can be removed to smaller size than space already used. | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Qiushui Zhang <qiuzhang> |
Component: | Containers | Assignee: | Jhon Honce <jhonce> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | dmcphers, jhonce, mpatel, qiuzhang, xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-08-29 12:48:32 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: | 994174 | ||
Bug Blocks: |
Description
Qiushui Zhang
2013-07-22 08:26:20 UTC
We need to add checks on the node to ensure that the storage quota being set is not resulting in violation of actual usage. Are you sure you want this check? If a customer stops paying for additional storage, this could prevent us from lowering their quota. (In reply to Jhon Honce from comment #2) > Are you sure you want this check? If a customer stops paying for additional > storage, this could prevent us from lowering their quota. In this condition, seems we should still make reducing storage to smaller than actual used size possible, but maybe we could raise some warning message to user if the user is trying to reduce the storage smaller than actual used storage. (In reply to xiaoli from comment #3) > (In reply to Jhon Honce from comment #2) > > Are you sure you want this check? If a customer stops paying for additional > > storage, this could prevent us from lowering their quota. > > In this condition, seems we should still make reducing storage to smaller > than actual used size possible, but maybe we could raise some warning > message to user if the user is trying to reduce the storage smaller than > actual used storage. Agreed. A user should not be able to lower their quota below what's used. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/27dc36d2cca2a42e7439ebdcafd80df581818c46 Bug 986838 - Prevent quotas from being lowered beyond usage * Add validation and tests Verified on devenv_3597, Now, used can not reduce the storage beyond usage. But the error message is not so good. It is now something like the following: Set storage on cartridge ... Unable to complete the requested operation due to: Failed to correctly execute all parallel operations. Reference ID: 7b1cfe2aa20d16eaeecebf71fb9f7a19 It would be better we give more user friendly message. Mark it as assigned for more friendly error message. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/9b70ce4b4687b7f9f651921c1add445faa41ec63 Bug 986838 - Prevent quotas from being lowered beyond usage * Format error message for Broker to pick up Check on devenv_3606, the error prompt is not changed. Set storage on cartridge ... Unable to complete the requested operation due to: Failed to correctly execute all parallel operations. Reference ID: ad58ee1c7ef4740b46ac90cfdc9403cd Mark it as asssigned. I see the same result as you following your steps. But if I using "rhc cartridge storage perl-5.10 -a perl001 --add 1GB" to add the storage, I still see the following message: Set storage on cartridge ... Unable to complete the requested operation due to: Failed to correctly execute all parallel operations. Reference ID: df49d9d52335e9c5edac0d32510b3bee An example of my procedures to reproduce could be like the following: rhc app create php1 php-5.3 rhc cartridge php-5.3 -a php1 --add 2GB rhc ssh php1 #In app gear shell dd if=/dev/zero of=~/app-root/data bs=1M count=3000 exit #Back to my desktop rhc cartridge php-5.3 -a php1 --remove 2GB At this point, I still get the meanless error messages like the above comment. Sorry for typo - missing "storage" in last comments. It should be "rhc cartridge storage php-5.3 -a php1 --add 2GB" and "rhc cartridge storage php-5.3 -a php1 --remove 2GB" Expected message cannot be reported until this bug https://bugzilla.redhat.com/show_bug.cgi?id=994174 is closed. The expected message can be found logged in the Nodes /var/log/mcollective.log. According to dev's comments, mark this issue as verified to close the defect. We will retest this problem when the bug 994174 is fixed. |