Red Hat Bugzilla – Bug 1292206
oo-idler-stats crashes when there is idled gear in the app
Last modified: 2017-05-31 14:22:11 EDT
Description of problem:
oo-idler-stats is currently broken (crashes with ValueError) if there is an idled gear in the application.
Version-Release number of selected component (if applicable):
Create an scalable application (with at least 2 gears). Then, use 'oo-admin-ctl-gears idlegear' command to idle one of the gears. Run
Steps to Reproduce:
1. rhc app create app1 python-3.3 -s
2. rhc cartridge scale python-3.3 -a app1 --min 2
3. oo-admin-ctl-gears idlegear <gear_uuid>
Traceback (most recent call last):
File "/usr/sbin/oo-idler-stats", line 253, in <module>
File "/usr/sbin/oo-idler-stats", line 82, in is_idled
ValueError: list.remove(x): x not in list
Should successfully execute the command with any errors.
Commit pushed to master at https://github.com/openshift/origin-server
Bug 1292206 - oo-idler-stats crashes when there is idled gear in the app
The oo-idler-stats command is currently broken as it crashes with ValueError
if there is idled gear in the application.
This issue is due to PR 6324 on origin-server has removed the unwanted empty
item ('') on the list which is returned by run() method. However, is_idled()
method has not been fixed and still attempts to remove that unwanted item
manually from the list which causes ValueError due to the fact that item is
no longer existed. This commit removes the unnecessary code that attempts
to remove non-exist item from the list in is_idled() method to avoid the
Signed-off-by: Vu Dinh <firstname.lastname@example.org>
Verified against devenv_5745
1 running, 1 idled, 0 half-idled for a total 2 of 2 (100.00 %)
We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause.