[ 
https://issues.apache.org/jira/browse/HDDS-522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16645964#comment-16645964
 ] 

Bharat Viswanadham commented on HDDS-522:
-----------------------------------------

Attached patch v02.

Found a case that when only Environment variables ACCESS_KEY_ID and 

AWS_SECRET_ACCESS_KEY are set, aws client constructs v2 header. So, added logic 
to extract access key id and use it as username.

Tested both V2 and V4 headers in robot test cases.

 

 
{code:java}
Executing test s3 with 
/Users/bviswanadham/workspace/open-hadoop/hadoop/hadoop-ozone/dist/target/ozone-0.4.0-SNAPSHOT/smoketest/../compose/ozones3/docker-compose.yaml
Removing network ozones3_default
WARNING: Network ozones3_default not found.
Creating network "ozones3_default" with the default driver
Creating ozones3_ozoneManager_1 ... 
Creating ozones3_datanode_1 ... 
Creating ozones3_s3g_1 ... 
Creating ozones3_scm_1 ... 
Creating ozones3_s3g_1
Creating ozones3_datanode_1
Creating ozones3_scm_1
Creating ozones3_datanode_1 ... done
Waiting 30s for cluster start up...
==============================================================================
S3                                                                            
==============================================================================
S3.Awscli :: S3 gateway test with aws cli                                     
==============================================================================
Create volume and bucket for the tests                                | PASS |
------------------------------------------------------------------------------
Install aws s3 cli                                                    | PASS |
------------------------------------------------------------------------------
File upload and directory list                                        | PASS |
------------------------------------------------------------------------------
S3.Awscli :: S3 gateway test with aws cli                             | PASS |
3 critical tests, 3 passed, 0 failed
3 tests total, 3 passed, 0 failed
==============================================================================
S3.Bucket :: S3 gateway test with aws cli for bucket operations               
==============================================================================
Install aws s3 cli                                                    | PASS |
------------------------------------------------------------------------------
Create Bucket                                                         | PASS |
------------------------------------------------------------------------------
V4 Header                                                             | PASS |
------------------------------------------------------------------------------
Create Bucket after change in env                                     | PASS |
------------------------------------------------------------------------------
S3.Bucket :: S3 gateway test with aws cli for bucket operations       | PASS |
4 critical tests, 4 passed, 0 failed
4 tests total, 4 passed, 0 failed
==============================================================================
S3                                                                    | PASS |
7 critical tests, 7 passed, 0 failed
7 tests total, 7 passed, 0 failed
==============================================================================
{code}
 

> Implement PutBucket REST endpoint
> ---------------------------------
>
>                 Key: HDDS-522
>                 URL: https://issues.apache.org/jira/browse/HDDS-522
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Elek, Marton
>            Assignee: Bharat Viswanadham
>            Priority: Major
>              Labels: newbie
>         Attachments: HDDS-522.00.patch, HDDS-522.01.patch, HDDS-522.02.patch
>
>
> The create bucket creates a bucket using createS3Bucket which has been added 
> as part of HDDS-577.
> [https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUT.html]
> Stub implementation is created as part of HDDS-444. Need to finalize, check 
> the missing headers, add acceptance tests.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to