glance-simplestreams-sync does not work with ceph-radosgw

Bug #1497441 reported by David Ames
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance-simplestreams-sync (Juju Charms Collection)
New
Undecided
Unassigned

Bug Description

When using ceph-radosgw the swift client calls fail:

INFO * 09-18 20:18:37 [PID:12785] * urllib3.connectionpool * Starting new HTTP connection (1): 10.5.25.156
DEBUG * 09-18 20:18:37 [PID:12785] * urllib3.connectionpool * Setting read timeout to <object object at 0x7f89a1de60d0>
DEBUG * 09-18 20:18:37 [PID:12785] * urllib3.connectionpool * "PUT /swift/simplestreams HTTP/1.1" 405 27
INFO * 09-18 20:18:37 [PID:12785] * swiftclient * REQ: curl -i http://10.5.25.156:80/swift/simplestreams -X PUT -H "Content-Length: 0" -H "X-Auth-Token: d0a888566ce24e939cdba66d2cbf5e96" -H "X-Container-Read: .r:*,.rlistings"
INFO * 09-18 20:18:37 [PID:12785] * swiftclient * RESP STATUS: 405 Method Not Allowed
INFO * 09-18 20:18:37 [PID:12785] * swiftclient * RESP HEADERS: [('content-length', '27'), ('content-type', 'application/json; charset=utf-8'), ('accept-ranges', 'bytes')]
INFO * 09-18 20:18:37 [PID:12785] * swiftclient * RESP BODY: {"Code":"MethodNotAllowed"}
ERROR * 09-18 20:18:37 [PID:12785] * swiftclient * Container PUT failed: http://10.5.25.156:80:80/swift/simplestreams 405 Method Not Allowed {"Code":"MethodNotAllowed"}
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1189, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 674, in put_container
    http_response_content=body)
ClientException: Container PUT failed: http://10.5.25.156:80:80/swift/simplestreams 405 Method Not Allowed {"Code":"MethodNotAllowed"}
ERROR * 09-18 20:18:37 [PID:12785] * root * Exception during do_sync
Traceback (most recent call last):
  File "./glance-simplestreams-sync.py", line 286, in <module>
    do_sync(charm_conf)
  File "./glance-simplestreams-sync.py", line 140, in do_sync
    store = SwiftObjectStore(SWIFT_DATA_DIR)
  File "/usr/lib/python2.7/dist-packages/simplestreams/objectstores/swift.py", line 69, in __init__
    '.r:*,.rlistings'})
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1265, in put_container
    response_dict=response_dict)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1189, in _retry
    rv = func(self.url, self.token, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 674, in put_container
    http_response_content=body)
ClientException: Container PUT failed: http://10.5.25.156:80:80/swift/simplestreams 405 Method Not Allowed {"Code":"MethodNotAllowed"}
INFO * 09-18 20:18:37 [PID:12785] * root * sync done.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.