Bug 2292069
| Summary: | Using version 2.10 to query glance returns 300 MULTIPLE_CHOICES | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | mlaniel |
| Component: | openstack-glance | Assignee: | Cyril Roelandt <cyril> |
| Status: | CLOSED MIGRATED | QA Contact: | msava |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 16.2 (Train) | CC: | athomas, cyril, eglynn, jveiraca, mvutcovi, pgrist, yrabl |
| Target Milestone: | z7 | Keywords: | Triaged |
| Target Release: | 16.2 (Train on RHEL 8.4) | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-glance-19.0.5-2.20241015145035.eb6ad61 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-01-22 16:20:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
mlaniel
2024-06-12 20:25:24 UTC
Hello,
> - Could it be related to this bug (https://bugzilla.redhat.com/show_bug.cgi?id=2172285), which does not look like is fixed in 16.2.6. In the Glance container, versions.py still show only 2.10 between quotes.
Quickly looking at this bug, this looks quite likely. Downstream, commit e5c01469a8730f649b85ed9edf42804eb13602d7 fixes issues with "floats vs strings" in versions. This should be part of openstack-glance-19.0.5-2.20230310205019.eb6ad61 .
Can you confirm that you're indeed using 16.2.5 and confirm what version of Glance you're using by running: $ rpm -qa | grep glance Thanks! OK so I've taken a closer look at this, and it seems v2.10 is not part of glance/api/middleware/version_negotiation.py in rhos/rhos-16.2-trunk-patches:
def _get_allowed_versions(self):
allowed_versions = {}
if CONF.enable_v2_api:
allowed_versions['v2'] = 2
allowed_versions['v2.0'] = 2
allowed_versions['v2.1'] = 2
allowed_versions['v2.2'] = 2
allowed_versions['v2.3'] = 2
allowed_versions['v2.4'] = 2
allowed_versions['v2.5'] = 2
allowed_versions['v2.6'] = 2
allowed_versions['v2.7'] = 2
allowed_versions['v2.9'] = 2
if CONF.enabled_backends:
allowed_versions['v2.8'] = 2
return allowed_versions
Because 2.10 is available in glance/api/versions though, you see it in the returned "allowed versions".
Why did you need to use v2.10? Do you need to delete an image from a specific store when using a multistore configuration?
Yes, I agree with your comment on the customer case. If the customer just wants us to know that there is a bug but has no need for the new features in v2.10, we can leave this code as-is. If they need to use features introduced in v2.10, then we need to fix it. I have asked RHOS delivery about potential future async releases. Hello, I expect this fix to be part of 16.2.7. |