3.8. Configuring upload-to-image optimization


You can enable upload-to-image optimization in the Block Storage service (cinder) to improve the performance of uploading volumes to the Image service (glance).

When you enable this optimization, the upload-to-image operation creates a cloned volume and registers its location with the Image service instead of transferring data. This significantly improves performance for upload operations.

Prerequisites

Procedure

  1. Open your OpenStackControlPlane CR file, openstack_control_plane.yaml, and add the image_upload_use_cinder_backend parameter to the Block Storage back-end configuration. In this example, the Image service uses the Block Storage service as a back end, and the Block Storage service uses Red Hat Ceph Storage as a back end:

    apiVersion: core.openstack.org/v1beta1
    kind: OpenStackControlPlane
    spec:
      cinder:
        template:
          cinderVolumes:
            ceph:
              customServiceConfig: |
                [DEFAULT]
                cinder_internal_tenant_project_id = <project_id>
                cinder_internal_tenant_user_id = <user_id>
                [ceph]
                image_upload_use_cinder_backend = True
                image_upload_use_internal_tenant = True
    ...
    • Replace <project_id> with the ID of your cinder-internal project.
    • Replace <user_id> with the ID of your cinder-internal project user.
    • Set image_upload_use_cinder_backend to True to enable the optimization.
    • Set image_upload_use_internal_tenant to True to store image-volumes in the cinder-internal project instead of the user’s project.
  2. Update the control plane:

    $ oc apply -f openstack_control_plane.yaml -n openstack
  3. Wait until RHOCP creates the resources related to the OpenStackControlPlane CR. Run the following command to check the status:

    $ oc get openstackcontrolplane -n openstack

    The OpenStackControlPlane resources are created when the status is "Setup complete".

    提示

    Append the -w option to the end of the get command to track deployment progress.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部