Ask Your Question

mhu's profile - activity

2014-09-22 23:54:43 -0500 received badge  Taxonomist
2013-12-12 01:43:30 -0500 received badge  Famous Question (source)
2013-05-21 06:28:49 -0500 received badge  Notable Question (source)
2013-05-02 05:37:47 -0500 received badge  Popular Question (source)
2013-05-02 03:35:47 -0500 answered a question Swift: how to use CNAME_lookup middleware ?

Thanks For the answer. During my tests I've come up with the following setup (very simplified but that's the gist of it):

  • 1 external DNS resolving *.mydomain to the swift server
  • 1 internal DNS, reachable by the swift server only, resolving container.mydomain to container.account.internaldomain

cnamelookup is configured to resolve addresses until it reaches an entry ending with internaldomain, and domainremap will map container.account.internaldomain to an URL like internaldomain/v1/account/container .

In the end, I obtain a configuration that allows me to query a container as a virtualhost, "a la S3".

Too bad it doesn't play well with the swift3 middleware, though.

2013-05-02 03:35:39 -0500 received badge  Scholar (source)
2013-04-17 09:22:42 -0500 received badge  Editor (source)
2013-04-17 09:13:26 -0500 asked a question Swift: how to use CNAME_lookup middleware ?

Has anyone ever used the (CNAME_lookup middleware) for swift ? I have some trouble figuring out some use cases for it, as well as testing it.

So far I have deployed swift through devstack on a VM, installed and configured bind on the same VM for the domain swift.test. I am testing GETs with curl :

curl -v -H 'X-Auth-Token: XXXX' -H 'Host: demo.swift.test:8080'

If CNAMElookup is not in the middleware pipeline, the request returns a 200 OK reply. If CNAMElookup isn't, the reply depends on whether my host is in my DNS configuration or not.

Anything I am missing here ?