Giter Club home page Giter Club logo

Comments (2)

AJNOURI avatar AJNOURI commented on August 24, 2024 1

with a separate deployment of swift proxy node, I should have configured swift endpoint url with swift proxy node NOT controller.
So I removed swift service and its endpoints and re-created new service and endpoints with as swiftproxy url

root@controller:/home/ajn#keystone service-create --name swift --type object-store --description "OpenStack Object Storage"

+-------------+----------------------------------+
| Property | Value |
+-------------+----------------------------------+
| description | OpenStack Object Storage |
| enabled | True |
| id | 7a0d02c3900142678905d6fb3913f294 |
| name | swift |
| type | object-store |
+-------------+----------------------------------+

root@controller:/home/ajn#

keystone endpoint-create \
> --service-id=$(keystone service-list | awk '/ object-store / {print $2}') \
> --publicurl="http://swiftProxy:8080/v1/AUTH_%(tenant_id)s" \
> --internalurl="http://swiftProxy:8080/v1/AUTH_%(tenant_id)s" \
> --adminurl="http://swiftProxy:8080" \
> --region regionOne

+-------------+----------------------------------------------+
| Property | Value |
+-------------+----------------------------------------------+
| adminurl | http://swiftProxy:8080 |
| id | da9f5931bb1249108503ba85d56333f1 |
| internalurl | http://swiftProxy:8080/v1/AUTH_%(tenant_id)s |
| publicurl | http://swiftProxy:8080/v1/AUTH_%(tenant_id)s |
| region | regionOne |
| service_id | 7a0d02c3900142678905d6fb3913f294 |
+-------------+----------------------------------------------+

Now it works fine:

#swift stat

   Account: AUTH_cdbcbc3eeb8a472c8abb2b67e749774c
Containers: 1
   Objects: 2
     Bytes: 0

Accept-Ranges: bytes
X-Timestamp: 1476882488.69520
X-Trans-Id: tx2194837e13ae4e8e96291-0058077146
Content-Type: text/plain; charset=utf-8

# touch test1.txt
# swift upload container-test1 test1.txt

test1.txt

# rm test1.txt

# ls *.txt
# swift download container-test1

test1.txt [auth 0.201s, headers 0.241s, total 0.241s, 0.000 MB/s]

# ls

test1.txt

from coa.

AJNOURI avatar AJNOURI commented on August 24, 2024

Following the previously mentioned logs:

Oct 19 00:48:48 swiftProxy proxy-server: Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint

I added auth_uri = http://controller:5000 in /etc/swift/proxy-server.conf

references to keystone server

auth_protocol = http
auth_uri = http://controller:5000
auth_host = controller
auth_port = 35357

the log note disappeared but Still doesn't solve the issue

from coa.

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.