Bug 1011964

Summary: time-related wallaby inventory constraints fail on 32 bit systems
Product: Red Hat Enterprise MRG Reporter: Peter Belanyi <pbelanyi>
Component: wallaby-utilsAssignee: grid-maint-list <grid-maint-list>
Status: CLOSED WONTFIX QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.4CC: athomas, ltrilety, matt, sgraf, willb
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: 2016-05-26 19:43:51 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 Peter Belanyi 2013-09-25 13:01:02 UTC
Description of problem:
On 32 bit systems wallaby inventory constraints using was_more_than and was_less_than can fail:

# wallaby inventory -c 'last_checkin.was_more_than 2.years_ago'
Console Connection Established...
fatal:  undefined method `was_more_than' for 1380106827768049:Bignum

# wallaby inventory -c 'last_checkin.was_less_than 2.years_ago'
Console Connection Established...
fatal:  undefined method `was_less_than' for 1380106827768049:Bignum

# wallaby inventory -c 'last_updated_version.was_more_than 2.years_ago'
Console Connection Established...
fatal:  undefined method `was_more_than' for 1380105473673735:Bignum

# wallaby inventory -c 'last_updated_version.was_less_than 2.years_ago'
Console Connection Established...
fatal:  undefined method `was_less_than' for 1380105473673735:Bignum

The same commands run fine on 64 bit systems, so I suppose the problem is that the timestamp does not fit into Fixnum so it's represented as Bignum.


Version-Release number of selected component (if applicable):
wallaby-0.16.3-1
wallaby-utils-0.16.3-1

How reproducible:
100%

Comment 1 Will Benton 2013-10-05 03:50:06 UTC
I have a candidate fix upstream in the bugfix/bz1011964 branch of the getwallaby/wallaby repo on github.

Comment 3 Anne-Louise Tangring 2016-05-26 19:43:51 UTC
MRG-Grid is in maintenance and only customer escalations will be considered. This issue can be reopened if a customer escalation associated with it occurs.