Bug 1005151 - Met 'undefined method' error while running 'oo-admin-clear-pending-ops' with '-u' option
Summary: Met 'undefined method' error while running 'oo-admin-clear-pending-ops' with ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Abhishek Gupta
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-06 10:11 UTC by zhaozhanqi
Modified: 2015-05-15 00:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-19 16:49:49 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description zhaozhanqi 2013-09-06 10:11:03 UTC
Description of problem:
Execute oo-admin-clear-pending-ops with option '-u' will be failed.

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

How reproducible:
always

Steps to Reproduce:
1. create one app 
2. on instance run 'oo-admin-clear-pending-ops with option -t 0.01 -u 5229a6436fde294cc6000001

 
Actual results:

oo-admin-clear-pending-ops -t 0.01 -u 5229a6436fde294cc6000001
/opt/rh/ruby193/root/usr/share/gems/gems/mongoid-3.0.21/lib/mongoid/attributes.rb:249:in `method_missing': undefined method `lt' for #<Application:0x00000005217550> (NoMethodError)
	from /usr/sbin/oo-admin-clear-pending-ops:202:in `<main>'


Expected results:

no this error

Additional info:

Comment 2 Abhishek Gupta 2013-09-09 17:05:00 UTC
This has been fixed.

Comment 3 Abhishek Gupta 2013-09-09 18:30:03 UTC
Another fix that deals with the removal of the uuid field from the application documents --> https://github.com/openshift/origin-server/pull/3588

Comment 4 zhaozhanqi 2013-09-10 02:00:30 UTC
Tested this bug on devenv_3762, it has been fixed.


# oo-admin-clear-pending-ops -t 0.01 -u 5229a6436fde294cc6000001
0 applications were cleaned up. 0 users were cleaned up. 0 domains were cleaned up.


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