We noticed a few issues when using glance with swift. While debugging, I wanted to test using swift-bench and swift-dispersion-report but they do not work with authentication api version 2.0. The reason? this bug: https://bugs.launchpad.net/python-swiftclient/+bug/1054331
The patch does not appear to be merged in the ubuntu packages, so I had to manually patch it: https://github.com/openstack/python-swiftclient/commit/fe7c535db33f3ebdac2523507d8e11843ee73583
I have then created a configuration file for swift-dispersion-*
:
# /etc/swift/dispersion.conf
[dispersion]
auth_url = http://cloud.gc3.uzh.ch:5000/v2.0
auth_user = service:glance
auth_key = MYPASSWORD
auth_version = 2.0
endpoint_type = publicURL
concurrency = 1
and one for swift-bench
:
[bench]
auth = http://cloud.gc3.uzh.ch:5000/v2.0
user = service:glance
key = MYPASSWORD
concurrency = 10
object_size = 1
num_objects = 1000
num_gets = 10000
delete = yes
auth_version = 2.0
Please note the concurrency
variable. I also had to update this
variable on all the *.conf
file of swift, because it seems that
sometimes too many connections are created and left in TIME_WAIT
, so
the system rapidly runs out of free ports. This may cause some
temporary disruption of the service, because the server is unable to
answer to client requests.