-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
rhos-18.0.0
-
None
When glance is configured to use cinder as it's backend and we try to upload a volume to glance, the optimized path doesn't work and we fall back to the generic path.
The image creation works but it is not optimized and is a slow process.
Steps to reproduce:
- Configure cinder to use optimized upload path
- In cinder.conf's driver section, add the following:
- image_upload_use_cinder_backend = True
- In cinder.conf's driver section, add the following:
- Try uploading a volume to glance
Expected result: optimized upload volume works
Actual result: Optimized upload volume fails with the following error
2024-06-18 06:21:16.636 2778473 ERROR cinder.volume.manager glanceclient.exc.HTTPBadRequest: HTTP 400 Bad Request: Invalid location
This happens because when glance is configured using multi stores (default deployment method), it uses a new location format i.e. cinder://<store-id>/<vol-id> whereas cinder sends the old location format i.e. cinder://<vol-id>