XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Ensure consistent CLI options for storage quota

      For ex :

      1. In setquota , cli supports user to pass storage-quota via 2 options i.e  --quota, --space-quota
      2. Whereas In clrquota , we only support --space-quota & --quota is not supported 

      Sample help command for both of these

      setquota

      [root@quasar-tvqwpy-1 ~]# ozone sh volume setquota --help
      
      
      Usage: ozone sh volume setquota [-hV] [--namespace-quota=<quotaInNamespace>]
                                      [--quota=<quotaInBytes>] <value>
      Set quota of the volumes. At least one of the quota set flag is mandatory.
            <value>     URI of the volume.
                        Ozone URI could either be a full URI or short URI.
                        Full URI should start with o3://, in case of non-HA
                        clusters it should be followed by the host name and
                        optionally the port number. In case of HA clusters
                        the service id should be used. Service id provides a
                        logical name for multiple hosts and it is defined
                        in the property ozone.om.service.ids.
                        Example of a full URI with host name and port number
                        for a key:
                        o3://omhostname:9862/vol1/bucket1/key1
                        With a service id for a volume:
                        o3://omserviceid/vol1/
                        Short URI should start from the volume.
                        Example of a short URI for a bucket:
                        vol1/bucket1
                        Any unspecified information will be identified from
                        the config files.
      
      
        -h, --help      Show this help message and exit.
            --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)
        -V, --version   Print version information and exit. 

      clrquota

      [root@quasar-tvqwpy-1 ~]# ozone sh volume clrquota --help
      Usage: ozone sh volume clrquota [-hV] [--namespace-quota] [--space-quota]
                                      <value>
      clear quota of the volume. At least one of the quota clear flag is mandatory.
            <value>             URI of the volume.
                                Ozone URI could either be a full URI or short URI.
                                Full URI should start with o3://, in case of non-HA
                                clusters it should be followed by the host name and
                                optionally the port number. In case of HA clusters
                                the service id should be used. Service id provides a
                                logical name for multiple hosts and it is defined
                                in the property ozone.om.service.ids.
                                Example of a full URI with host name and port number
                                for a key:
                                o3://omhostname:9862/vol1/bucket1/key1
                                With a service id for a volume:
                                o3://omserviceid/vol1/
                                Short URI should start from the volume.
                                Example of a short URI for a bucket:
                                vol1/bucket1
                                Any unspecified information will be identified from
                                the config files.
      
      
        -h, --help              Show this help message and exit.
            --namespace-quota   clear namespace quota
            --space-quota       clear space quota
        -V, --version           Print version information and exit.

       

      Attachments

        1. image-2023-04-05-20-10-36-745.png
          66 kB
          Sumit Agrawal

        Issue Links

          Activity

            People

              sumitagrawl Sumit Agrawal
              asarin Arun Sarin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: