Activity log for bug #1346935

Date Who What changed Old value New value Message
2014-07-22 14:15:21 Björn Tillenius bug added bug
2014-07-22 14:15:37 Björn Tillenius tags landscape
2014-07-22 14:15:42 Björn Tillenius tags landscape cloud-installer landscape
2014-07-22 14:15:52 Björn Tillenius bug added subscriber Landscape
2014-07-30 15:37:55 Scott Moser simplestreams: status New Confirmed
2014-07-30 15:37:58 Scott Moser simplestreams: importance Undecided Medium
2014-12-10 18:18:29 Launchpad Janitor branch linked lp:simplestreams
2014-12-10 18:18:42 Scott Moser simplestreams: status Confirmed Fix Committed
2014-12-10 18:18:42 Scott Moser simplestreams: assignee Scott Moser (smoser)
2015-05-28 04:07:06 Launchpad Janitor branch linked lp:ubuntu/simplestreams
2015-06-16 18:31:32 Scott Moser bug task added simplestreams (Ubuntu)
2015-06-16 18:31:40 Scott Moser simplestreams (Ubuntu): status New Fix Released
2015-06-16 18:31:43 Scott Moser simplestreams (Ubuntu): importance Undecided Medium
2015-09-11 14:56:53 Felipe Reyes tags cloud-installer landscape cloud-installer landscape openstack sts
2015-09-11 14:59:07 Louis Bouchard nominated for series Ubuntu Vivid
2015-09-11 14:59:07 Louis Bouchard bug task added simplestreams (Ubuntu Vivid)
2015-09-11 14:59:07 Louis Bouchard nominated for series Ubuntu Trusty
2015-09-11 14:59:07 Louis Bouchard bug task added simplestreams (Ubuntu Trusty)
2015-09-11 18:05:05 Felipe Reyes simplestreams (Ubuntu Trusty): assignee Felipe Reyes (freyes)
2015-09-11 18:05:09 Felipe Reyes simplestreams (Ubuntu Vivid): assignee Felipe Reyes (freyes)
2015-09-11 18:05:28 Felipe Reyes simplestreams (Ubuntu Trusty): importance Undecided Medium
2015-09-11 18:05:32 Felipe Reyes simplestreams (Ubuntu Vivid): importance Undecided Medium
2015-09-15 22:14:38 Felipe Reyes description 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-simplestreams-sync charm, and got the following error: INFO * 07-22 14:05:30 [PID:3620] * swiftclient * REQ: curl -i http://10.96. 2.27:80/swift/simplestreams -X PUT -H "Content-Length: 0" -H "X-Auth-Token: a7f0 37d3245a4005834709b99e3e08f3" -H "X-Container-Read: .r:*,.rlistings" 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.2.27:80:80/swift/simplestreams 405 Method Not Allowed {"Code":"Method NotAllowed"} 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 pu t_container http_response_content=body) ClientException: Container PUT failed: http://10.96.2.27:80:80/swift/simplestrea ms 405 Method Not Allowed {"Code":"MethodNotAllowed"} ERROR * 07-22 14:05:30 [PID:3620] * root * Exception during do_sync Traceback (most recent call last): File "/etc/cron.daily/glance-simplestreams-sync.py", line 286, in <module> do_sync(charm_conf) File "/etc/cron.daily/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", l ine 70, in __init__ '.r:*,.rlistings'}) File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1265, in p ut_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 pu t_container http_response_content=body) ClientException: Container PUT failed: http://10.96.2.27:80:80/swift/simplestrea ms 405 Method Not Allowed {"Code":"MethodNotAllowed"} Note that it tries to PUT to http://10.96.2.27:80:80/swift/simplestreams, where it should PUT to http://10.96.2.27:80:80/swift/v1/simplestreams. There seems to be code in simplestreams that strip the version from the endpoint URL, but even after I remove that I get a 409 error. [Impact] This bug prevents from using simplestreams bucket creation, so new deployments that want to benefit from the glance-simplestreams-sync charm to keep 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-radosgw.yaml -d -v -s 10 SERIES-kilo # SERIES -> trusty or kilo depending on which package you're verifying 2) Once everything has settled down, run glance-simplestreams-sync.py juju ssh glance-simplestreams-sync/0 sudo /var/lib/juju/agents/unit-glance-simplestreams-sync-0/charm/scripts/glance-simplestreams-sync.py 3) Check /var/log/glance-simplestreams-sync.log tail -n 16 /var/log/glance-simplestreams-sync.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-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 1319, in put_container response_dict=response_dict) File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1243, in _retry rv = func(self.url, self.token, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 731, in put_container http_response_content=body) ClientException: Container PUT failed: http://10.5.150.54:80/swift/simplestreams 405 Method Not Allowed {"Code":"MethodNotAllowed"} INFO * 09-15 19:15:15 [PID:10596] * root * sync done. 5) Install the patched package 6) Re-run glance-simplestreams-sync.py (step 2) 7) Check glance-simplestreams-sync.log, log should look like: DEBUG * 09-15 19:38:22 [PID:10789] * urllib3.connectionpool * "PUT /swift/v1/simplestreams HTTP/1.1" 201 0 DEBUG * 09-15 19:38:22 [PID:10789] * swiftclient * REQ: curl -i http://10.5.150.54:80/swift/v1/simplestreams -X PUT -H "Content-Length: 0" -H "X-Auth-Token: d2bb7d174eb84a4aa09fb27a0d06092f" -H "X-Container-Read: .r:*,.rlistings" 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-simplestreams-sync charm, and got the following error: INFO * 07-22 14:05:30 [PID:3620] * swiftclient * REQ: curl -i http://10.96. 2.27:80/swift/simplestreams -X PUT -H "Content-Length: 0" -H "X-Auth-Token: a7f0 37d3245a4005834709b99e3e08f3" -H "X-Container-Read: .r:*,.rlistings" 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.2.27:80:80/swift/simplestreams 405 Method Not Allowed {"Code":"Method NotAllowed"} 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 pu t_container http_response_content=body) ClientException: Container PUT failed: http://10.96.2.27:80:80/swift/simplestrea ms 405 Method Not Allowed {"Code":"MethodNotAllowed"} ERROR * 07-22 14:05:30 [PID:3620] * root * Exception during do_sync Traceback (most recent call last): File "/etc/cron.daily/glance-simplestreams-sync.py", line 286, in <module> do_sync(charm_conf) File "/etc/cron.daily/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", l ine 70, in __init__ '.r:*,.rlistings'}) File "/usr/lib/python2.7/dist-packages/swiftclient/client.py", line 1265, in p ut_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 pu t_container http_response_content=body) ClientException: Container PUT failed: http://10.96.2.27:80:80/swift/simplestrea ms 405 Method Not Allowed {"Code":"MethodNotAllowed"} Note that it tries to PUT to http://10.96.2.27:80:80/swift/simplestreams, where it should PUT to http://10.96.2.27:80:80/swift/v1/simplestreams. There seems 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://bazaar.launchpad.net/~ubuntu-branches/ubuntu/wily/simplestreams/wily/revision/18
2015-09-15 22:14:52 Felipe Reyes summary Failing to create simplestreams bucket on ceph-radosgw [SRU] Failing to create simplestreams bucket on ceph-radosgw
2015-09-15 22:17:05 Felipe Reyes attachment added lp1346935_vivid.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4465535/+files/lp1346935_vivid.debdiff
2015-09-15 22:17:38 Felipe Reyes attachment added lp1346935_trusty.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4465536/+files/lp1346935_trusty.debdiff
2015-09-15 22:17:59 Felipe Reyes bug added subscriber Ubuntu Sponsors Team
2015-09-15 22:18:08 Felipe Reyes simplestreams (Ubuntu Trusty): status New In Progress
2015-09-15 22:18:12 Felipe Reyes simplestreams (Ubuntu Vivid): status New In Progress
2015-09-18 05:07:20 Martin Pitt removed subscriber Ubuntu Sponsors Team
2015-09-18 06:04:10 Nobuto Murata bug added subscriber Nobuto Murata
2015-09-23 20:52:13 Felipe Reyes attachment removed lp1346935_vivid.debdiff https://bugs.launchpad.net/ubuntu/vivid/+source/simplestreams/+bug/1346935/+attachment/4465535/+files/lp1346935_vivid.debdiff
2015-09-23 20:52:37 Felipe Reyes attachment removed lp1346935_trusty.debdiff https://bugs.launchpad.net/ubuntu/vivid/+source/simplestreams/+bug/1346935/+attachment/4465536/+files/lp1346935_trusty.debdiff
2015-09-23 20:53:05 Felipe Reyes attachment added lp1346935_trusty.debdiff https://bugs.launchpad.net/ubuntu/vivid/+source/simplestreams/+bug/1346935/+attachment/4472651/+files/lp1346935_trusty.debdiff
2015-09-23 20:53:29 Felipe Reyes attachment added lp1346935_vivid.debdiff https://bugs.launchpad.net/ubuntu/vivid/+source/simplestreams/+bug/1346935/+attachment/4472652/+files/lp1346935_vivid.debdiff
2015-09-25 14:59:04 Felipe Reyes attachment removed lp1346935_trusty.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4472651/+files/lp1346935_trusty.debdiff
2015-09-25 14:59:16 Felipe Reyes attachment removed lp1346935_vivid.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4472652/+files/lp1346935_vivid.debdiff
2015-09-25 14:59:43 Felipe Reyes attachment added lp1346935_vivid.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4474468/+files/lp1346935_vivid.debdiff
2015-09-25 15:00:03 Felipe Reyes attachment added lp1346935_trusty.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4474469/+files/lp1346935_trusty.debdiff
2015-09-29 21:37:56 Felipe Reyes attachment removed lp1346935_vivid.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4474468/+files/lp1346935_vivid.debdiff
2015-09-29 21:38:09 Felipe Reyes attachment removed lp1346935_trusty.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4474469/+files/lp1346935_trusty.debdiff
2015-09-29 21:39:38 Felipe Reyes attachment added lp1346935_trusty.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4479325/+files/lp1346935_trusty.debdiff
2015-09-29 21:40:01 Felipe Reyes attachment added lp1346935_vivid.debdiff https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4479326/+files/lp1346935_vivid.debdiff
2015-10-08 20:15:57 Brian Murray simplestreams (Ubuntu Vivid): status In Progress Fix Committed
2015-10-08 20:16:00 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2015-10-08 20:16:06 Brian Murray bug added subscriber SRU Verification
2015-10-08 20:16:11 Brian Murray tags cloud-installer landscape openstack sts cloud-installer landscape openstack sts verification-needed
2015-10-08 20:18:07 Brian Murray simplestreams (Ubuntu Trusty): status In Progress Fix Committed
2015-10-08 20:23:18 Launchpad Janitor branch linked lp:ubuntu/vivid-proposed/simplestreams
2015-10-08 20:23:20 Launchpad Janitor branch linked lp:ubuntu/trusty-proposed/simplestreams
2015-10-09 13:51:21 Felipe Reyes attachment added trusty.glance-simplestreams-sync.log.gz https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4489844/+files/trusty.glance-simplestreams-sync.log.gz
2015-10-09 13:51:54 Felipe Reyes attachment added vivid.glance-simplestreams-sync.log.gz https://bugs.launchpad.net/simplestreams/+bug/1346935/+attachment/4489845/+files/vivid.glance-simplestreams-sync.log.gz
2015-10-09 13:52:18 Felipe Reyes tags cloud-installer landscape openstack sts verification-needed cloud-installer landscape openstack sts verification-done
2015-10-21 15:21:28 Launchpad Janitor simplestreams (Ubuntu Trusty): status Fix Committed Fix Released
2015-10-21 15:21:34 Chris J Arges removed subscriber Ubuntu Stable Release Updates Team
2015-10-21 15:21:45 Launchpad Janitor simplestreams (Ubuntu Vivid): status Fix Committed Fix Released
2018-06-25 14:52:16 Scott Moser simplestreams: status Fix Committed Fix Released