Ask Your Question
1

How to configure domain remap middleware in swift

asked 2019-07-02 03:13:04 -0500

updated 2019-07-04 03:03:41 -0500

Hello everyone!

I am testing domain remap feature but there are very few docs and I don't know how to do it rightly.

Here are some steps I did:

Step 1: add domain_recep into pipeline Step 2: run this command curl -i -H "X-Auth-Token: xxxxxxxxxxxxx" https://8981264773ec41cfbdbdf750b8c21...

And I get this response:

Could not resolve host: 8981264773ec41cfbdbdf750b8c21ef2.sw.domain.vn

How can I fix it? Thanks!


In example: container.AUTH-account.example.com/object

would be translated to: container.AUTH-account.example.com/v1/AUTH_account/container/object

I mean when I curl https://container.AUTH-account.example.com/object I get response: "Could not resolve host"

edit retag flag offensive close merge delete

Comments

I don’t have an answer, but you should edit your question to use the correct term remap. It’s documented at https://docs.openstack.org/swift/late....

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-02 18:37:41 -0500 )edit

I am sorry for my mistake. I don't unserstand this phrase "container names and account names must be DNS-compatible". Can you explain me?

Quang Vu gravatar imageQuang Vu ( 2019-07-02 20:50:06 -0500 )edit

I didn't even know the domain remap feature before I read your question :) I guess it means that the domain names you use must have DNS resolution. This is not the case in your example.

Bernd Bausch gravatar imageBernd Bausch ( 2019-07-03 02:33:08 -0500 )edit

Yes, but I don't know how to config dns resolution to access this url

container.AUTH-account.example.com/object

While I curl any subdomain from aws s3 like:

https://quangvublog.s3.us-east-2.amaz...

I get Nosuchbucket response

Quang Vu gravatar imageQuang Vu ( 2019-07-03 03:08:05 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2019-07-03 04:39:55 -0500

updated 2019-07-04 03:08:47 -0500

Because I don't know too much about DNS, then I have had some mistakes. To solve this problem,

I use this command in case of public object: curl -i -X GET -H "Host: quang.AUTH_xxxxxxxxxxxxxxxxxx.example.com " -H "X-Auth-Token: aaaaaaaaaaaaaaa" http://xx.xx.xx.xx

And when I used accesskey and secretkey to authenticate private object with domain_remap, It failed

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-07-02 03:13:04 -0500

Seen: 83 times

Last updated: Jul 04 '19