Error: "glance.common.exception.ImageSizeLimitExceeded: The provided image is too large"
search cancel

Error: "glance.common.exception.ImageSizeLimitExceeded: The provided image is too large"

book

Article ID: 406852

calendar_today

Updated On:

Products

VMware Integrated OpenStack

Issue/Introduction

  • Trying to create a image in VIO and it's failing with the error: Request Entity Too Large
  • Glance API logs show errors similar to:
    ERROR glance.api.v2.image_data [req-########-####-####-####-############ ################################ ################################ - ################################ ################################] The incoming image is too large: The provided image is too large.: glance.common.exception.ImageSizeLimitExceeded: The provided image is too large.
  • Glance API logs will show a line similar to below that contains the introspected size of the image in bytes (see virutal_size) for the request.
    DEBUG oslo_vmware.image_util [req-########-####-####-####-############ ################################ ################################ - ################################ ################################] Introspected the following properties from the VMDK {'virtual_size': '#####', 'vmware_disktype': 'streamOptimized', 'vmware_adaptertype': 'busLogic'} introspect_vmdk /usr/lib/python3.7/site-packages/oslo_vmware/image_util.py:327

Environment

7.x

Cause

  • The upstream documentation for Openstack (Train)  says that the default size for a Glance Image is 1 TB.
  • See the Configuring Glance Image Size Limit section under the Basic Configuration page.
  • This message indicates that the introspected size exceeds this default limit.

Resolution

Set a higher limit on the image_size_cap value for Glance.

  1. Run the following command and add the following:  

    Note: indentation is important and it must be placed under the DEFAULT section

    #viocli update glance

    conf:
      glance:
        DEFAULT:
          image_size_cap: "###" (new size in bytes)

  2. Save the changes and wait for the pods to recreate
  3. Re-test the image import.