Bug 1005151

Summary: Met 'undefined method' error while running 'oo-admin-clear-pending-ops' with '-u' option
Product: OpenShift Online Reporter: zhaozhanqi <zzhao>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: xtian
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-19 16:49:49 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:

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.