dennisv / django-storage-swift

OpenStack Swift storage backend for Django
MIT License
86 stars 60 forks source link

REGION_NAME not configurable #77

Closed valerytschopp closed 7 years ago

valerytschopp commented 7 years ago

We have a multi-region OpenStack deployment, but it is not possible to configure the OS_REGION_NAME for the Django Swift Storage.

A new SWIFT_REGION_NAME parameter is required.

valerytschopp commented 7 years ago

There is a workaround for this issue.

Using the SWIFT_EXTRA_OPTIONS to set the region name like this:

SWIFT_EXTRA_OPTIONS = { 
  'region_name': 'MY_SECOND_REGION'
}

But it would be more consistent with OpenStack to add a new SWIFT_REGION_NAME parameter.

einarf commented 7 years ago

Definitely. Specifying region name is a natural part of authentication in OpenStack, so having a parameter for it is good.

einarf commented 7 years ago

Lunch commit #78

einarf commented 7 years ago

@valerytschopp It's merged, so you can close this one.

dennisv commented 7 years ago

It's also on PyPI

valerytschopp commented 7 years ago

Thanks a lot for adding the SWIFT_REGION_NAME config parameter, and releasing it