[SRU] glance-simplestreams-sync charm doesn't support keystone v3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance - Simplestreams Sync Charm |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Glance-Simplestreams-Sync Charm |
Fix Released
|
High
|
Ryan Beisner | ||
simplestreams |
Fix Released
|
Medium
|
Unassigned | ||
glance-simplestreams-sync (Juju Charms Collection) |
Invalid
|
High
|
Unassigned | ||
simplestreams (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Won't Fix
|
Medium
|
Unassigned | ||
Artful |
Won't Fix
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
simplestreams can't sync images when keystone is configured to use v3, keystone v2 is deprecated since mitaka[0] (the version shipped with xenial)
The OpenStack Keystone charm supports v3 only since Queens and later[1]
[Test Case]
* deploy a openstack environment with keystone v3 enabled
- get a copy of the bundle available at http://
Expected result:
- "glance image-list" lists trusty and xenial images
- the file glance-
Actual result:
- "glance image-list" is empty
- the file glance-
INFO * 04-09 22:04:06 [PID:14571] * root * Calling DryRun mirror to get item list
ERROR * 04-09 22:04:06 [PID:14571] * root * Exception during syncing:
Traceback (most recent call last):
File "/usr/share/
do_
File "/usr/share/
objectstore
File "/usr/lib/
super(
File "/usr/lib/
self.
File "/usr/lib/
raise ValueError(
ValueError: (tenant_id or tenant_name)
[Regression Potential]
* A possible regression will manifest itself figuring out if v2 or v3 should be used, after the connection is made there are no further changes introduced by this SRU
[Other Info]
I was deploying a Mitaka Trusty 16.04 charm based Openstack cloud (using the cloud archives), including glance-
Once I had everything deployed, the glance-
INFO * 08-10 23:16:01 [PID:33554] * root * glance-
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient.
INFO * 08-10 23:16:01 [PID:33554] * urllib3.
DEBUG * 08-10 23:16:01 [PID:33554] * urllib3.
DEBUG * 08-10 23:16:01 [PID:33554] * urllib3.
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient.
RESP BODY: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient.
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient.
Please update the charm to understand when its using keystone v3 and use the right auth methods.
Related bugs:
* bug 1686437: glance sync: need keystone v3 auth support
Related branches
- charmers: Pending requested
-
Diff: 8587 lines (+4648/-1649)72 files modifiedcharm-helpers-sync.yaml (+1/-0)
charmhelpers/__init__.py (+11/-13)
charmhelpers/contrib/__init__.py (+11/-13)
charmhelpers/contrib/charmsupport/__init__.py (+11/-13)
charmhelpers/contrib/charmsupport/nrpe.py (+84/-24)
charmhelpers/contrib/charmsupport/volumes.py (+11/-13)
charmhelpers/contrib/hahelpers/__init__.py (+11/-13)
charmhelpers/contrib/hahelpers/apache.py (+30/-17)
charmhelpers/contrib/hahelpers/cluster.py (+70/-23)
charmhelpers/contrib/network/__init__.py (+11/-13)
charmhelpers/contrib/network/ip.py (+80/-39)
charmhelpers/contrib/openstack/__init__.py (+11/-13)
charmhelpers/contrib/openstack/alternatives.py (+11/-13)
charmhelpers/contrib/openstack/amulet/__init__.py (+11/-13)
charmhelpers/contrib/openstack/amulet/deployment.py (+145/-47)
charmhelpers/contrib/openstack/amulet/utils.py (+194/-30)
charmhelpers/contrib/openstack/context.py (+201/-120)
charmhelpers/contrib/openstack/exceptions.py (+21/-0)
charmhelpers/contrib/openstack/files/__init__.py (+11/-13)
charmhelpers/contrib/openstack/files/check_haproxy.sh (+7/-5)
charmhelpers/contrib/openstack/ha/__init__.py (+13/-0)
charmhelpers/contrib/openstack/ha/utils.py (+128/-0)
charmhelpers/contrib/openstack/ip.py (+52/-24)
charmhelpers/contrib/openstack/neutron.py (+53/-23)
charmhelpers/contrib/openstack/templates/__init__.py (+11/-13)
charmhelpers/contrib/openstack/templates/haproxy.cfg (+19/-11)
charmhelpers/contrib/openstack/templates/openstack_https_frontend (+2/-0)
charmhelpers/contrib/openstack/templates/openstack_https_frontend.conf (+2/-0)
charmhelpers/contrib/openstack/templates/section-keystone-authtoken (+8/-5)
charmhelpers/contrib/openstack/templates/section-keystone-authtoken-legacy (+10/-0)
charmhelpers/contrib/openstack/templates/section-keystone-authtoken-mitaka (+12/-0)
charmhelpers/contrib/openstack/templating.py (+11/-13)
charmhelpers/contrib/openstack/utils.py (+1062/-148)
charmhelpers/contrib/python/__init__.py (+11/-13)
charmhelpers/contrib/python/packages.py (+51/-25)
charmhelpers/contrib/storage/__init__.py (+11/-13)
charmhelpers/contrib/storage/linux/__init__.py (+11/-13)
charmhelpers/contrib/storage/linux/ceph.py (+754/-72)
charmhelpers/contrib/storage/linux/loopback.py (+21/-13)
charmhelpers/contrib/storage/linux/lvm.py (+11/-13)
charmhelpers/contrib/storage/linux/utils.py (+16/-18)
charmhelpers/core/__init__.py (+11/-13)
charmhelpers/core/decorators.py (+11/-13)
charmhelpers/core/files.py (+11/-13)
charmhelpers/core/fstab.py (+11/-13)
charmhelpers/core/hookenv.py (+110/-19)
charmhelpers/core/host.py (+270/-122)
charmhelpers/core/host_factory/centos.py (+56/-0)
charmhelpers/core/host_factory/ubuntu.py (+56/-0)
charmhelpers/core/hugepage.py (+13/-13)
charmhelpers/core/kernel.py (+34/-30)
charmhelpers/core/kernel_factory/centos.py (+17/-0)
charmhelpers/core/kernel_factory/ubuntu.py (+13/-0)
charmhelpers/core/services/__init__.py (+11/-13)
charmhelpers/core/services/base.py (+11/-13)
charmhelpers/core/services/helpers.py (+25/-18)
charmhelpers/core/strutils.py (+11/-13)
charmhelpers/core/sysctl.py (+11/-13)
charmhelpers/core/templating.py (+40/-24)
charmhelpers/core/unitdata.py (+11/-14)
charmhelpers/fetch/__init__.py (+42/-302)
charmhelpers/fetch/archiveurl.py (+12/-14)
charmhelpers/fetch/bzrurl.py (+48/-50)
charmhelpers/fetch/centos.py (+171/-0)
charmhelpers/fetch/giturl.py (+33/-37)
charmhelpers/fetch/ubuntu.py (+313/-0)
charmhelpers/osplatform.py (+19/-0)
charmhelpers/payload/__init__.py (+11/-13)
charmhelpers/payload/archive.py (+11/-13)
charmhelpers/payload/execd.py (+11/-13)
scripts/glance-simplestreams-sync.py (+28/-9)
templates/identity.yaml (+4/-2)
- charmers: Pending requested
-
Diff: 61 lines (+33/-0)2 files modifiedcharmhelpers/contrib/openstack/context.py (+3/-0)
tests/contrib/openstack/test_os_contexts.py (+30/-0)
- Server Team CI bot: Approve (continuous-integration)
- simplestreams-dev: Pending requested
-
Diff: 13 lines (+2/-1)1 file modifiedsimplestreams/openstack.py (+2/-1)
- Rafael David Tinoco (community): Disapprove
- Bryce Harrington (community): Approve
- Felipe Reyes (community): Approve
- Edward Hope-Morley: Pending requested
-
Diff: 1851 lines (+1732/-11)10 files modifieddebian/changelog (+15/-0)
debian/patches/428-do-not-require-that-hypervisor_config-be-present.patch (+23/-0)
debian/patches/433-glance-ignore-inactive-images.patch (+42/-0)
debian/patches/435-glance-refactor-for-testing.patch (+853/-0)
debian/patches/436-glance-fix-race-conditions.patch (+479/-0)
debian/patches/450-453-454-keystone-v3-support.patch (+13/-10)
debian/patches/455-nova-lxd-support-squashfs-images.patch (+230/-0)
debian/patches/460-glance-handle-v2-auth-with-sessions.patch (+33/-0)
debian/patches/series (+8/-1)
debian/patches/skip-openstack-tests-if-no-libs.patch (+36/-0)
- Billy Olsen (community): Approve
- Scott Moser (community): Needs Resubmitting
- Felipe Reyes: Pending requested
- Eric Desrochers: Pending requested
-
Diff: 380 lines (+342/-0)6 files modifieddebian/changelog (+8/-0)
debian/patches/460-glance-handle-v2-auth-with-sessions.patch (+33/-0)
debian/patches/keystone-v3-1719879.patch (+35/-0)
debian/patches/keystone-v3-1728982.patch (+32/-0)
debian/patches/nova-lxd-support-squashfs-images.patch (+230/-0)
debian/patches/series (+4/-0)
- Rafael David Tinoco (community): Disapprove
- Billy Olsen (community): Approve
- Scott Moser (community): Needs Resubmitting
- Felipe Reyes (community): Approve
- Eric Desrochers: Pending requested
-
Diff: 1845 lines (+1729/-11)10 files modifieddebian/changelog (+12/-0)
debian/patches/428-do-not-require-that-hypervisor_config-be-present.patch (+23/-0)
debian/patches/433-glance-ignore-inactive-images.patch (+42/-0)
debian/patches/435-glance-refactor-for-testing.patch (+853/-0)
debian/patches/436-glance-fix-race-conditions.patch (+479/-0)
debian/patches/450-453-454-keystone-v3-support.patch (+13/-10)
debian/patches/455-nova-lxd-support-squashfs-images.patch (+230/-0)
debian/patches/460-glance-handle-v2-auth-with-sessions.patch (+33/-0)
debian/patches/series (+8/-1)
debian/patches/skip-openstack-tests-if-no-libs.patch (+36/-0)
Changed in glance-simplestreams-sync (Juju Charms Collection): | |
status: | New → Triaged |
milestone: | none → 16.10 |
importance: | Undecided → High |
Changed in glance-simplestreams-sync (Juju Charms Collection): | |
assignee: | nobody → Liam Young (gnuoy) |
Changed in glance-simplestreams-sync (Juju Charms Collection): | |
milestone: | 16.10 → 17.01 |
tags: | added: ks-v3 openstack |
Changed in charm-glance-simplestreams-sync: | |
assignee: | nobody → Liam Young (gnuoy) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in glance-simplestreams-sync (Juju Charms Collection): | |
status: | Triaged → Invalid |
Changed in charm-glance-simplestreams-sync: | |
assignee: | Liam Young (gnuoy) → Alex Kavanagh (ajkavanagh) |
Changed in glance-simplestreams-sync (Juju Charms Collection): | |
assignee: | Liam Young (gnuoy) → nobody |
Changed in charm-glance-simplestreams-sync: | |
assignee: | Alex Kavanagh (ajkavanagh) → nobody |
Changed in glance-simplestreams-sync-charm: | |
status: | New → Invalid |
tags: | added: cpe-onsite |
description: | updated |
Changed in simplestreams (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in simplestreams: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → David Ames (thedac) |
Changed in simplestreams (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in simplestreams (Ubuntu Artful): | |
status: | New → Confirmed |
Changed in simplestreams (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in simplestreams (Ubuntu Artful): | |
importance: | Undecided → Medium |
Changed in charm-glance-simplestreams-sync: | |
assignee: | nobody → Ryan Beisner (1chb1n) |
milestone: | none → 18.05 |
Changed in charm-glance-simplestreams-sync: | |
status: | Triaged → In Progress |
description: | updated |
summary: |
- glance-simplestreams-sync charm doesn't support keystone v3 + [SRU] glance-simplestreams-sync charm doesn't support keystone v3 |
tags: | added: sts |
Changed in charm-glance-simplestreams-sync: | |
status: | Fix Committed → Fix Released |
Changed in simplestreams (Ubuntu Artful): | |
status: | Confirmed → Won't Fix |
Changed in simplestreams (Ubuntu Xenial): | |
assignee: | nobody → Joshua Powers (powersj) |
assignee: | Joshua Powers (powersj) → Rafael David Tinoco (rafaeldtinoco) |
Changed in simplestreams (Ubuntu Xenial): | |
status: | In Progress → Won't Fix |
assignee: | Rafael David Tinoco (rafaeldtinoco) → nobody |
Changed in simplestreams (Ubuntu Bionic): | |
assignee: | nobody → Rafael David Tinoco (rafaeldtinoco) |
Changed in simplestreams (Ubuntu Bionic): | |
assignee: | Rafael David Tinoco (rafaeldtinoco) → nobody |
So this is fun.
Swift proxy v3 integration appears to be broken: Bug #1624304
The simplestreams package does not support v3 integration: Bug #1624306