You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sammi Chen (Jira)" <ji...@apache.org> on 2020/03/17 07:41:00 UTC

[jira] [Created] (HDDS-3224) Enforce volume and bucket name rule at create time

Sammi Chen created HDDS-3224:
--------------------------------

             Summary: Enforce volume and bucket name rule at create time
                 Key: HDDS-3224
                 URL: https://issues.apache.org/jira/browse/HDDS-3224
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
            Reporter: Sammi Chen


After volume is created through API application, it cannot be listed through CLI. 
ozone sh volume list -u=admin
{
  "metadata" : { },
  "name" : "instagram",
  "admin" : "admin",
  "owner" : "admin",
  "creationTime" : "2020-03-04T07:18:38.183Z",
  "acls" : [ ],
  "quota" : 1152921504606846976
}
{
  "metadata" : { },
  "name" : "3",
  "admin" : "admin",
  "owner" : "admin",
  "creationTime" : "2020-03-17T07:31:56.987Z",
  "acls" : [ ],
  "quota" : 1152921504606846976
}
{
  "metadata" : { },
  "name" : "333",
  "admin" : "admin",
  "owner" : "admin",
  "creationTime" : "2020-03-17T07:34:18.361Z",
  "acls" : [ ],
  "quota" : 1152921504606846976
}

ozone sh bucket list 3       
Bucket or Volume length is illegal, valid length is 3-63 characters

ozone sh bucket list 333     
Bucket or Volume name cannot be an IPv4 address or all numeric

We should enforece this rules at the create time. 




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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