Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-7814

Optimized path for upload volume to image doesn't work when glance backend is cinder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhos-18.0.0
    • openstack-glance
    • None
    • 8
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • None
    • Moderate

      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:

      1. Configure cinder to use optimized upload path
        1. In cinder.conf's driver section, add the following:
          1. image_upload_use_cinder_backend = True
      2. 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>

              rdhasman@redhat.com Rajat Dhasmana
              rdhasman@redhat.com Rajat Dhasmana
              rhos-storage-cinder
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: