[Openstack] Swift3 bucket naming conventions

Mark Kirkwood mark.kirkwood at catalyst.net.nz
Wed Jul 18 02:33:33 UTC 2018


Hi,

I've been caught by this myself - by default s3api has the parameter:

dns_compliant_bucket_names = True

which will forbid _ in the bucket name. Just set this to False under 
your [s3api] section (or the [swift3] section if it is called that in 
your proxy pipeline).

regards
Mark

On 23/06/18 04:22, Clay Gerrard wrote:
> Swift containers can certainly have underscores in them... almost any 
> character is valid.
>
> But I guess s3api thinks that's maybe not a valid bucket name?
>
> https://github.com/openstack/swift/blob/master/test/unit/common/middleware/s3api/test_utils.py#L38
>
> -Clay
>
>
> On Thu, Jun 21, 2018 at 3:27 AM, Shyam Prasad N 
> <nspmangalore at gmail.com <mailto:nspmangalore at gmail.com>> wrote:
>
>     Hi,
>
>     On my openstack swift s3 interface, I tried to create bucket names
>     similar to what I have in my AWS S3. But swift3 doesn't seem to
>     allow bucket names containing underscore. Once I remove the
>     underscore and try to create the bucket, it works. Is there a way
>     to overcome this?
>
>     -- 
>     -Shyam
>
>     _______________________________________________
>     Mailing list:
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>     <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>     Post to     : openstack at lists.openstack.org
>     <mailto:openstack at lists.openstack.org>
>     Unsubscribe :
>     http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>     <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
>
>
>
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack




More information about the Openstack mailing list