Image Upload Fails due to Missing Endpoint

Problem

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

Environment

  • Platform9 Cloud Director

Cause

  • PCD image uploads > 1Gi is recommended to be performed via CLI command. Also adding 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.
Bash
Copy
  • It can also be verified by listing endpoint information for a image service.
Bash
Copy

Resolution

  • Manually creating admin endpoint for the image service will allow the images to be uploaded.
Bash
Copy
  • Verfiy the newly created admin endpoint.
Bash
Copy

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].
Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard