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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to