Bug 1667096
Summary: | lsmcli fs-export --anongid/anonuid allows invalid values | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jakub Krysl <jkrysl> |
Component: | libstoragemgmt | Assignee: | Tony Asleson <tasleson> |
Status: | CLOSED ERRATA | QA Contact: | Jakub Krysl <jkrysl> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.6 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-06 12:40:28 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: | |
Embargoed: |
Description
Jakub Krysl
2019-01-17 12:50:24 UTC
netapp plugin anonuid invalid value results in PLUGIN_BUG(2), anongid shows correctly INVALID_AGUMENT(101) # lsmcli -u "ontap+ssl://root@*****" fs-export --exportpath='/foo/bar' --fs='8c799d3f-01d0-4f29-9253-42fffbbfe29f' --rw-host local --anonuid='-2' -P Password: PLUGIN_BUG(2): Append rules failed with error: Invalid argument (vendor error code= 22) # lsmcli -u "ontap+ssl://root@*****" fs-export --exportpath='/foo/bar' --fs='8c799d3f-01d0-4f29-9253-42fffbbfe29f' --rw-host local --anongid='-2' -P Password: INVALID_ARGUMENT(101): ontap plugin does not support anon_gid setting UID & GID are unsigned values, thus < 0 should not be accepted as a valid input on the command line. Internally in the API we use -1 & -2 to signify certain things, but that shouldn't be known or used for command line use. As for the upper range, depending on the type and version of Unix like system it can vary. For example older versions of Linux the limit was 16 bits, newer versions it's 32. Thus I'm hesitant to impose an upper limit in the command line interface as we will likely get it wrong some times. The plugin/array should be ultimately validating the value. libstoragemgmt-1.7.3-2.el7.x86_64 # lsmcli -u "ontap+ssl://root@*****" fs-export --exportpath='/foo/bar' --fs='8c799d3f-01d0-4f29-9253-42fffbbfe29f' --rw-host local --anonuid='-2' -P usage: lsmcli fs-export [-h] [-v] [-u <URI>] [-P] [-H] [-t <SEP>] [-e] [-f] [-w CHILD_WAIT] [--header] [-b] [-s] --fs <FS_ID> [--exportpath <EXPORT_PATH>] [--anonuid <ANON_UID>] [--anongid <ANON_GID>] [--auth-type <AUTH_TYPE>] [--root-host <ROOT_HOST>] [--ro-host <RO_HOST>] [--rw-host <RW_HOST>] lsmcli fs-export: error: argument --anonuid: invalid: require positive integer value '-2' # lsmcli -u "ontap+ssl://root@*****" fs-export --exportpath='/foo/bar' --fs='8c799d3f-01d0-4f29-9253-42fffbbfe29f' --rw-host local --anongid='-2' -P usage: lsmcli fs-export [-h] [-v] [-u <URI>] [-P] [-H] [-t <SEP>] [-e] [-f] [-w CHILD_WAIT] [--header] [-b] [-s] --fs <FS_ID> [--exportpath <EXPORT_PATH>] [--anonuid <ANON_UID>] [--anongid <ANON_GID>] [--auth-type <AUTH_TYPE>] [--root-host <ROOT_HOST>] [--ro-host <RO_HOST>] [--rw-host <RW_HOST>] lsmcli fs-export: error: argument --anongid: invalid: require positive integer value '-2' 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. https://access.redhat.com/errata/RHBA-2019:2064 |