You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Soumitra Sulav (Jira)" <ji...@apache.org> on 2022/06/14 18:23:00 UTC

[jira] [Created] (HDDS-6882) Exit Code as 0 even for failed bucket creation

Soumitra Sulav created HDDS-6882:
------------------------------------

             Summary: Exit Code as 0 even for failed bucket creation
                 Key: HDDS-6882
                 URL: https://issues.apache.org/jira/browse/HDDS-6882
             Project: Apache Ozone
          Issue Type: Bug
    Affects Versions: 1.3.0
            Reporter: Soumitra Sulav


Exit Code is 0 even when the bucket creation failed with Invalid Bucket Layout Type.

{code:java}
[root@quasar-kykadl-1 ~]# /opt/cloudera/parcels/CDH/bin/ozone sh bucket create o3://ozone1/prefix1655230198/layout165523033_5
INVALID_BUCKET_NAME Bucket or Volume name has an unsupported character : _
[root@quasar-kykadl-1 ~]# echo $?
255
[root@quasar-kykadl-1 ~]# /opt/cloudera/parcels/CDH/bin/ozone sh bucket create o3://ozone1/prefix1655230198/layout1655230335 -l INVALID
Invalid value for option '--layout': expected one of [FILE_SYSTEM_OPTIMIZED, OBJECT_STORE, DEFAULT, ] (case-sensitive) but was 'INVALID'
Usage: ozone sh bucket create [-ghV] [-k=<bekName>] [-l=<allowedBucketLayout>]
                              [--namespace-quota=<quotaInNamespace>]
                              [--quota=<quotaInBytes>] [-r=<replication>]
                              [-t=<type>] [-u=<ownerName>] <value>
creates a bucket in a given volume
      <value>              URI of the volume/bucket.
                           Ozone URI could start with o3:// or without prefix.
                             URI may contain the host/serviceId and port of the
                             OM server. Both are optional. If they are not
                             specified it will be identified from the config
                             files.
  -g, --enforcegdpr        if true, indicates GDPR enforced bucket,
                             false/unspecified indicates otherwise
  -h, --help               Show this help message and exit.
  -k, --bucketkey=<bekName>
                           bucket encryption key name
  -l, --layout=<allowedBucketLayout>
                           Allowed Bucket Layouts: FILE_SYSTEM_OPTIMIZED,
                             OBJECT_STORE,
      --namespace-quota=<quotaInNamespace>
                           For volume this parameter represents the number of
                             buckets, and for buckets represents the number of
                             keys (eg. 5)
      --quota, --space-quota=<quotaInBytes>
                           The maximum space quota can be used (eg. 1GB)
  -r, --replication=<replication>
                           Replication definition. Valid values are replication
                             type-specific.  For RATIS: ONE or THREE. In case
                             of EC, pass CODEC-DATA-PARITY-CHUNKSIZE,  e.g.
                             rs-3-2-1024k, rs-6-3-1024k, rs-10-4-1024k
  -t, --type, --replication-type=<type>
                           Replication type. Supported types are: RATIS, EC
  -u, --user=<ownerName>   Owner of the bucket. Defaults to current user if not
                             specified
  -V, --version            Print version information and exit.
[root@quasar-kykadl-1 ~]# echo $?
0
{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org