New MR for Bionic: https://code.launchpad.net/~rafaeldtinoco/ubuntu/+source/simplestreams/+git/simplestreams/+merge/375150
PPA with pkg to be tested: https://launchpad.net/~rafaeldtinoco/+archive/ubuntu/lp1790904 @freyes will test this and provide feedback and +1 on the merge request, then I'll ask it to be reviewed by proper pkg uploaders and continue with the SRU. ** Description changed: + [Impact] + OpenStack Rocky has removed glance v1 from the API. Glance v2 is required. Simplestreams errors with the following in a Rocky OpenStack cloud: - Traceback (most recent call last): - File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 464, in main - do_sync(charm_conf, status_exchange) - File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 264, in do_sync - drmirror.sync(smirror, path=initial_path) - File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 91, in sync - return self.sync_index(reader, path, data, content) - File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 254, in sync_index - self.sync(reader, path=epath) - File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 89, in sync - return self.sync_products(reader, path, data, content) - File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 269, in sync_products - target = self.load_products(path, content_id) - File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/glance.py", line 197, in load_products - for image in images: - File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list - for image in paginate(params, return_request_id): - File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate - images, resp = self._list(url, "images") - File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list - resp, body = self.client.get(url) - File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 304, in get - return self.request(url, 'GET', **kwargs) - File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 349, in request - return self._handle_response(resp) - File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 103, in _handle_response - raise exc.from_response(resp) + File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 464, in main + do_sync(charm_conf, status_exchange) + File "/usr/share/glance-simplestreams-sync/glance-simplestreams-sync.py", line 264, in do_sync + drmirror.sync(smirror, path=initial_path) + File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 91, in sync + return self.sync_index(reader, path, data, content) + File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 254, in sync_index + self.sync(reader, path=epath) + File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 89, in sync + return self.sync_products(reader, path, data, content) + File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 269, in sync_products + target = self.load_products(path, content_id) + File "/usr/local/lib/python2.7/dist-packages/simplestreams/mirrors/glance.py", line 197, in load_products + for image in images: + File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 254, in list + for image in paginate(params, return_request_id): + File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 238, in paginate + images, resp = self._list(url, "images") + File "/usr/lib/python2.7/dist-packages/glanceclient/v1/images.py", line 63, in _list + resp, body = self.client.get(url) + File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 304, in get + return self.request(url, 'GET', **kwargs) + File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 349, in request + return self._handle_response(resp) + File "/usr/lib/python2.7/dist-packages/glanceclient/common/http.py", line 103, in _handle_response + raise exc.from_response(resp) HTTPMultipleChoices: HTTPMultipleChoices (HTTP 300) Requested version of OpenStack Images API is not available. + [Test Case] - Allow for Glance v2 API calls. + * To provision an Ubuntu Bionic based Rocky OpenStack environment + * Use a keystone v2 for authentication + + [Regression Potential] + + * Patch changes simplestreams behavior making it to use glance v2 instead of v1 for "non-legacy" versions of the clients. + * Patch is based in upstream patch and it is close to version being used in Bionic, cherry-pick was straight forward and no conflicts needed to be solved. + + [Other Info] + + N/A -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1790904 Title: Glance v2 required by newer versions of OpenStack To manage notifications about this bug go to: https://bugs.launchpad.net/simplestreams/+bug/1790904/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs