glance/swift image sync fails with ceph-radosgw providing swift storage

Bug #1322540 reported by James Page
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
simplestreams
New
Undecided
Unassigned

Bug Description

The endpoint URL for a Ceph RADOS Gateway includes "v1" at the end; simplestreams strips this from the endpoint URL causing the following failure when syncing stream data into an openstack cloud:

Traceback (most recent call last):
  File "/home/ubuntu/server-stack/admin/images/simplestreams/tools/sstream-mirror-glance", line 130, in <module>
    main()
  File "/home/ubuntu/server-stack/admin/images/simplestreams/tools/sstream-mirror-glance", line 116, in main
    tstore = swift.SwiftObjectStore(args.output_swift, region=region)
  File "/home/ubuntu/server-stack/admin/images/simplestreams/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)
swiftclient.exceptions.ClientException: Container PUT failed: http://10.98.191.34:80:80/swift/simplestreams 405 Method Not Allowed {"Code":"MethodNotAllowed"}
failed gmirror for ubuntu-released

Tags: sts
Revision history for this message
James Page (james-page) wrote :

Workaround:

=== modified file 'simplestreams/openstack.py'
--- simplestreams/openstack.py 2014-01-29 21:28:34 +0000
+++ simplestreams/openstack.py 2014-05-23 09:14:04 +0000
@@ -119,7 +119,7 @@
         endpoint_kwargs['filter_value'] = kwargs.get('region_name')

     endpoint = client.service_catalog.url_for(**endpoint_kwargs)
- return _strip_version(endpoint)
+ return endpoint # _strip_version(endpoint)

 def _strip_version(endpoint):

Gema Gomez (gema)
tags: added: sts
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.