Image Upload Fails due to Missing Endpoint

Problem

  • Image upload is failing via CLI due to missing admin endpoint.

$ echo $OS_INTERFACE
admin

$ openstack image create --insecure --container-format bare --disk-format qcow2 --file <IMAGE_PATH> <IMAGE_NAME>
admin endpoint for image service in [REGION_NAME] region not found

Environment

  • Platform9 Cloud Director Virtualization - v2025.4 and Higher

  • Component - Image Library

Cause

  • Image uploads greater than 1 Gi are recommended to be performed via CLI command. Also, adding an admin endpoint interface is a prerequisite before uploading the image via CLI.

  • The admin endpoint is missing from glance service catalog; that blocks any Glance administrative tasks.

$ openstack catalog show image
+-----------+---------------------------------------------------------------------------+
| Field     | Value                                                                     |
+-----------+---------------------------------------------------------------------------+
| endpoints | [REGION_NAME]                                                             |
|           |   public: https:__[FQDN]_glance_                                          |
|           | [REGION_NAME]                                                             |
|           |   internal: http:__glance-api.[REGION_NAME].svc.cluster.local:9292_       | 
| id        | [IMAGE_UUID]                                                              |
| name      | glance                                                                    |
| type      | image                                                                     |
+-----------+---------------------------------------------------------------------------+
  • It can also be verified by listing endpoint information for a image service.

Resolution

  • Manually creating admin endpoint for the image service will allow the images to be uploaded.

  • Verfiy the newly created admin endpoint.

Additional Information

  • When the OS_INTERFACE is set as public[default configuration], image upload fails with the below error. This is because, nginx placed in front of Glance API, blocks an image upload (or download) as the file size exceeds the configured limit [not more than 1Gi].

Last updated