Bug 714238
Summary: | --sizelimit unhelpful error with *-find commands | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Jenny Severance <jgalipea> |
Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
Status: | CLOSED ERRATA | QA Contact: | Chandrasekar Kannan <ckannan> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.1 | CC: | benl, dpal, grajaiya, jgalipea, mkosek |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ipa-2.1.0-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause: The error message when setting an integer value too large on 64-bit systems is confusing.
Consequence: The maximum value allowed is not clear.
Fix: Limit integer values to 2147483647 on all platforms.
Result: Consistent error messages on 32 and 64-bit systems.
|
Story Points: | --- |
Clone Of: | 643182 | Environment: | |
Last Closed: | 2011-12-06 18:34:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 643182 | ||
Bug Blocks: |
Description
Jenny Severance
2011-06-17 16:48:34 UTC
Regression found - and this is causing automation tests to abort after failure: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-user-cli-add-033: size limit too large - bugzilla 643182 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [11:39:19] :: Executing: ipa user-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': need a <type 'int'>; got 20000000000L (a <type 'long'>) :: [11:39:21] :: "ipa user-find --sizelimit=20000000000" failed as expected. :: [11:39:23] :: ERROR: Message not as expected. GOT: ipa: ERROR: invalid 'sizelimit': need a <type 'int'>; got 20000000000L (a <type 'long'>) EXP: ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 :: [ FAIL ] :: Verify expected error message - size limit too large. (Expected 0, got 1) Additional observation: I see in /var/log/messages ... Jun 17 11:40:24 ipaqavmh python: abrt: detected unhandled Python exception in /usr/bin/beakerlib-journalling Jun 17 11:40:24 ipaqavmh abrtd: dumpsocket: New client connected Jun 17 11:40:24 ipaqavmh abrtd: dumpsocket: Saved Python crash dump of pid 4914 to /var/spool/abrt/pyhook-1308325224-4914 Jun 17 11:40:24 ipaqavmh abrtd: dumpsocket: Socket client disconnected Jun 17 11:40:24 ipaqavmh abrtd: Directory 'pyhook-1308325224-4914' creation detected Jun 17 11:40:24 ipaqavmh abrtd: New crash /var/spool/abrt/pyhook-1308325224-4914, processing Jun 17 11:40:24 ipaqavmh python: abrt: detected unhandled Python exception in /usr/bin/beakerlib-journalling version: ipa-server-2.0.99-1.20110616T2130zgitdbeae4e.el6.x86_64 https://fedorahosted.org/freeipa/ticket/1346 <- for the sizelimit part. I wasn't able to reproduce this issue. The problem seems to be fixed in both nightly build (ipa-server-2.0.99-3.20110711T0524zgit30492ef.el6.x86_64) and current RHEL version (ipa-server-2.0.0-25.el6.x86_64). Both shown correct output: # ipa user-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 This is not failing on x86_64: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-user-cli-add-033: size limit too large - bugzilla 643182 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Executing: ipa user-find --sizelimit=20000000000 :: [ LOG ] :: "ipa user-find --sizelimit=20000000000" failed as expected. :: [ LOG ] :: Error message as expected: ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 :: [ PASS ] :: Verify expected error message - size limit too large. :: [ LOG ] :: Duration: 3s :: [ LOG ] :: Assertions: 1 good, 0 bad :: [ PASS ] :: RESULT: ipa-user-cli-add-033: size limit too large - bugzilla 643182 But is on i386: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: ipa-user-cli-add-033: size limit too large - bugzilla 643182 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: Executing: ipa user-find --sizelimit=20000000000 :: [ LOG ] :: "ipa user-find --sizelimit=20000000000" failed as expected. :: [ LOG ] :: ERROR: Message not as expected. GOT: ipa: ERROR: invalid 'sizelimit': need a <type 'int'>; got 20000000000L (a <type 'long'>) EXP: ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 :: [ FAIL ] :: Verify expected error message - size limit too large. (Expected 0, got 1) :: [ LOG ] :: Duration: 4s :: [ LOG ] :: Assertions: 0 good, 1 bad :: [ FAIL ] :: RESULT: ipa-user-cli-add-033: size limit too large - bugzilla 643182 Fixed upstream: master: https://fedorahosted.org/freeipa/changeset/bc8be0a41effbd7a1ffe761829783afa8a59539e ipa-2-0: https://fedorahosted.org/freeipa/changeset/7b194f24fa55130fdd098fef68220e76581a1386 Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Cause: The error message when setting an integer value too large on 64-bit systems is confusing. Consequence: The maximum value allowed is not clear. Fix: Limit integer values to 2147483647 on all platforms. Result: Consistent error messages on 32 and 64-bit systems. Arch: x86_64 [root@decepticons ~]# ipa hostgroup-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@decepticons ~]# [root@decepticons ~]# ipa group-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@decepticons ~]# [root@decepticons ~]# ipa user-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@decepticons ~]# [root@decepticons ~]# ipa netgroup-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@decepticons ~]# Arch: i386 [root@qe-blade-12 ~]# ipa hostgroup-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@qe-blade-12 ~]# [root@qe-blade-12 ~]# ipa group-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@qe-blade-12 ~]# [root@qe-blade-12 ~]# ipa user-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@qe-blade-12 ~]# [root@qe-blade-12 ~]# ipa netgroup-find --sizelimit=20000000000 ipa: ERROR: invalid 'sizelimit': can be at most 2147483647 [root@qe-blade-12 ~]# Verified in version: Name : ipa-server Relocations: (not relocatable) Version : 2.1.3 Vendor: Red Hat, Inc. Release : 8.el6 Build Date: Tue 01 Nov 2011 05:50:44 PM EDT Install Date: Thu 03 Nov 2011 02:54:36 AM EDT Build Host: x86-004.build.bos.redhat.com Group : System Environment/Base Source RPM: ipa-2.1.3-8.el6.src.rpm Size : 3363441 License: GPLv3+ Signature : (none) Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> URL : http://www.freeipa.org/ Summary : The IPA authentication server Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1533.html |