[SRU] Failing to create simplestreams bucket on ceph-radosgw
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
simplestreams |
Fix Released
|
Medium
|
Scott Moser | ||
simplestreams (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Felipe Reyes | ||
Vivid |
Fix Released
|
Medium
|
Felipe Reyes |
Bug Description
[Impact]
This bug prevents from using simplestreams bucket creation, so new deployments
that want to benefit from the glance-
up-to-date images in their private repos is broken.
[Test Case]
1) Deploy an OpenStack cloud
bzr branch lp:~freyes/+junk/lp1346935
cd lp1346935
juju deployer -c default-
2) Once everything has settled down, run glance-
juju ssh glance-
3) Check /var/log/
tail -n 16 /var/log/
4) Log before applying the fix:
ERROR * 09-15 19:15:15 [PID:10596] * root * Exception during do_sync
Traceback (most recent call last):
File "./glance-
do_
File "./glance-
store = SwiftObjectStor
File "/usr/lib/
'.r:
File "/usr/lib/
response_
File "/usr/lib/
rv = func(self.url, self.token, *args, **kwargs)
File "/usr/lib/
http_
ClientException: Container PUT failed: http://
INFO * 09-15 19:15:15 [PID:10596] * root * sync done.
5) Install the patched package
6) Re-run glance-
7) Check glance-
DEBUG * 09-15 19:38:22 [PID:10789] * urllib3.
DEBUG * 09-15 19:38:22 [PID:10789] * swiftclient * REQ: curl -i http://
DEBUG * 09-15 19:38:22 [PID:10789] * swiftclient * RESP STATUS: 201 Created
DEBUG * 09-15 19:38:22 [PID:10789] * swiftclient * RESP HEADERS: [('content-length', '0'), ('accept-ranges', 'bytes'), ('keep-alive', 'timeout=5, max=100'), ('server', 'Apache/2.4.10 (Ubuntu)'), ('connection', 'Keep-Alive'), ('date', 'Tue, 15 Sep 2015 19:38:21 GMT'), ('content-type', 'text/plain; charset=utf-8')]
[Regression Potential]
- Minor, this patch is already integrated in Wily[0] and the change only gets rid
of the logic that removes the version from the endpoint.
- I tested this patch using a real swift endpoint and there is no regression
detected
[Other Info]
If ceph-radosgw (which provides a Swift API for Ceph) is used instead of
Swift, simplestreams sync fail to create the simplestreams bucket.
I tried using the glance-
error:
INFO * 07-22 14:05:30 [PID:3620] * swiftclient * REQ: curl -i http://
2.27:80/
37d3245a4005834
INFO * 07-22 14:05:30 [PID:3620] * swiftclient * RESP STATUS: 405 Method No
t Allowed
INFO * 07-22 14:05:30 [PID:3620] * swiftclient * RESP HEADERS: [('date', 'T
ue, 22 Jul 2014 14:05:30 GMT'), ('accept-ranges', 'bytes'), ('content-type', 'ap
plication/json; charset=utf-8'), ('content-length', '27'), ('server', 'Apache/2.
4.7 (Ubuntu)')]
INFO * 07-22 14:05:30 [PID:3620] * swiftclient * RESP BODY: {"Code":"Method
NotAllowed"}
ERROR * 07-22 14:05:30 [PID:3620] * swiftclient * Container PUT failed: http
://10.96.
NotAllowed"}
Traceback (most recent call last):
File "/usr/lib/
retry
rv = func(self.url, self.token, *args, **kwargs)
File "/usr/lib/
t_container
http_
ClientException: Container PUT failed: http://
ms 405 Method Not Allowed {"Code"
ERROR * 07-22 14:05:30 [PID:3620] * root * Exception during do_sync
Traceback (most recent call last):
File "/etc/cron.
do_
File "/etc/cron.
store = SwiftObjectStor
File "/usr/lib/
ine 70, in __init__
'.r:
File "/usr/lib/
ut_container
response_
File "/usr/lib/
retry
rv = func(self.url, self.token, *args, **kwargs)
File "/usr/lib/
t_container
http_
ClientException: Container PUT failed: http://
ms 405 Method Not Allowed {"Code"
Note that it tries to PUT to http://
it should PUT to http://
to be code in simplestreams that strip the version from the endpoint URL, but
even after I remove that I get a 409 error.
[0] http://
tags: | added: landscape |
tags: | added: cloud-installer |
Changed in simplestreams: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: openstack sts |
Changed in simplestreams (Ubuntu Trusty): | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in simplestreams (Ubuntu Vivid): | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in simplestreams (Ubuntu Trusty): | |
importance: | Undecided → Medium |
Changed in simplestreams (Ubuntu Vivid): | |
importance: | Undecided → Medium |
Hi, paste.ubuntu. com/9465390/
I'd like to get this fixed.
http://
James Page has that patch. I'm apt to just take it.