Git Product home page Git Product logo

Comments (11)

Saumya-Sunder avatar Saumya-Sunder commented on May 29, 2024 1

@sachitanands will make the changes and tag you one the PR for Approval.

from cortx-s3server.

nileshgovande avatar nileshgovande commented on May 29, 2024 1

Thanks a lot @sachitanands

from cortx-s3server.

yanqingfu avatar yanqingfu commented on May 29, 2024 1

@sachitanands works now

[root@ssc-vm-1061 cortx-s3server]# cat ~/.aws/config
[default]
output = text
region = US
s3 =
endpoint_url = https://s3.seagate.com
s3api =
endpoint_url = https://s3.seagate.com
ca_bundle = /etc/ssl/stx-s3-clients/s3/ca.crt
[plugins]
endpoint = awscli_plugin_endpoint
[root@ssc-vm-1061 cortx-s3server]# aws s3 mb s3://seagatebucket
make_bucket: seagatebucket
[root@ssc-vm-1061 cortx-s3server]#

from cortx-s3server.

yanqingfu avatar yanqingfu commented on May 29, 2024 1

@sachitanands thanks

from cortx-s3server.

sachitanands avatar sachitanands commented on May 29, 2024

Hi @yanqingfu we need to specify correct client certificate through aws config file
Please check if you have correct ca.crt path in /root/.aws/config as "ca_bundle"
Below is one sample where I have configured my ca.crt on my development vm.

[root@ssc-vm-0372 cortx-s3server]# cat ~/.aws/config
[default]
s3 =
endpoint_url = https://s3.seagate.com
s3api =
endpoint_url = https://s3.seagate.com
ca_bundle = /etc/ssl/stx-s3-clients/s3/ca.crt
[plugins]
endpoint = awscli_plugin_endpoint
[root@ssc-vm-0372 cortx-s3server]#

from cortx-s3server.

yanqingfu avatar yanqingfu commented on May 29, 2024

@sachitanands apparently, we need to update the guidance as in the guide, there is no mention about ca_bundle.
image

from cortx-s3server.

yanqingfu avatar yanqingfu commented on May 29, 2024

@sachitanands still has an error

[root@ssc-vm-1061 cortx-s3server]# cat ~/.aws/config
[default]
output = text
region = US
s3 =
endpoint_url = https://s3.seagate.com
s3api =
endpoint_url = https://s3.seagate.com
ca_bundle = /etc/ssl/stx-s3-clients/s3/ca.crt
[plugins]
endpoint = awscli_plugin_endpoint

[root@ssc-vm-1061 cortx-s3server]# aws s3 mb s3://seagatebucket
make_bucket failed: s3://seagatebucket An error occurred (BucketAlreadyOwnedByYou) when calling the CreateBucket operation: The bucket you tried to create already exists, and you own it.

[root@ssc-vm-1061 cortx-s3server]# aws s3 ls
motr[29279]: 2a60 ERROR [cas/service.c:1168:cas_fom_tick] <! rc=-2
motr[29271]: 3a60 ERROR [cas/service.c:1168:cas_fom_tick] <! rc=-2
2020-10-30 00:58:33 seagatebucket
[root@ssc-vm-1061 cortx-s3server]# touch ./test_data
[root@ssc-vm-1061 cortx-s3server]# aws s3 cp test_data s3://seagatebucket/
motr[29279]: 9a60 ERROR [cas/service.c:1168:cas_fom_tick] <! rc=-2
motr[29934]: b980 ERROR [cas/client.c:1167:cas_req_replied_ast] <! rc=-2
upload: ./test_data to s3://seagatebucket/test_data

from cortx-s3server.

sachitanands avatar sachitanands commented on May 29, 2024

Hi @yanqingfu
BucketAlreadyOwnedByYou error shows bucket already exists.
in s3 bucket name should be unique hence we should either create new bucket with different name or delete existing bucket ( aws s3 rb s3://bucket-name --force) and then run this command again

Regarding ca_bundle..
Thanks for pointing out this documentation changes..
there are two ways we can run aws commands.

  1. with SSL mode
    • if you select this then endpoint entry should be "https://s3.seagate.com" and then only you need ca.bundle entry in config file.
  2. without SSL mode
    • the document mentions this mode hence endpoint entry has "http://s3.seagate.com" and that's why we don't need ca_bundle path.
      I will work with our documentation team to update this info in our documentation

FYI @nileshgovande @Saumya-Sunder

from cortx-s3server.

yanqingfu avatar yanqingfu commented on May 29, 2024

@sachitanands but aws s3 ls has an error

[root@ssc-vm-1061 cortx-s3server]# aws s3 ls
motr[29279]: 2a60 ERROR [cas/service.c:1168:cas_fom_tick] <! rc=-2
motr[29271]: 3a60 ERROR [cas/service.c:1168:cas_fom_tick] <! rc=-2
2020-10-30 02:21:32 seagatebucket

from cortx-s3server.

sachitanands avatar sachitanands commented on May 29, 2024

Those are warnings.. please ignore them.

from cortx-s3server.

Saumya-Sunder avatar Saumya-Sunder commented on May 29, 2024

Updated the doc here #362

from cortx-s3server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.