Bug 999884
Summary: | There is no check whether "tc" is started before "oo-admin-ctl-tc startuser $gear_uuid" | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Qiushui Zhang <qiuzhang> |
Component: | Containers | Assignee: | Michal Fojtik <mfojtik> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | mfojtik, 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: | 2014-01-30 00:48:27 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: |
Description
Qiushui Zhang
2013-08-22 10:19:28 UTC
This is a tricky one, because I can't figure out how to check if the 'tc' command already include the rules for user... Probably one solution would be to check if the error message is 'File exists' and suppress that. Forget what I said ;-) Just found 'statususer' ;-) Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/e4ceb5d5d6576934359f9fb359be84df8ea7f458 Bug 999884 - Check if 'tc' already exists in oo-admin-ctl-tc Tested on devenv_4030. [root@ip-10-118-161-73 ~]# oo-admin-ctl-tc startuser 5284329eebbbddef86000007 Starting tc for 5284329eebbbddef86000007: Throttling is already active for 5284329eebbbddef86000007 [OK] [root@ip-10-118-161-73 ~]# oo-admin-ctl-tc startuser 5284329eebbbddef86000007 Starting tc for 5284329eebbbddef86000007: Throttling is already active for 5284329eebbbddef86000007 [OK] It looks much better than before, although it always shows the same message whenever doing "oo-admin-ctl-tc startuser". Mark the bug as verified. |