# Unable To Download Images, Glance Commands Return "Image \[UUID ] Has No Data

## Problem

* Command to download the glance image returns with Error " **No Data**". Both the below mentioned commands fail with the same error

{% tabs %}
{% tab title="None" %}

```none
$ glance image-download --file [FILE] [snapshot UUID]$ openstack image save --file [FILE] [snapshot UUID]
```

{% endtab %}
{% endtabs %}

* Error observed on command prompt without - **-debug** option.

{% tabs %}
{% tab title="None" %}

```none
Image [UUID] has no data.Image [UUID] has no data.
```

{% endtab %}
{% endtabs %}

* Error observed with **--debug** option.

{% tabs %}
{% tab title="None" %}

```none
GET call to image for http://X.X.X.X/v2/images/[Image-UUID] used request id req-xxxxxxUnable to download image: InvalidResponseclean_up SaveImage: Unable to download image: InvalidResponseEND return value: 1
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All Versions
* Glance
* Images

## Cause

* This issue is observed when the images are not stored on a shared host and the download call is hitting the endpoint of Glance host on which the image is not present.
* You can verify the image status on hosts using the below command. If the image is present on all nodes it will show "OK" for all nodes in properties.

{% tabs %}
{% tab title="None" %}

```none
$ openstack image show [snapshot UUID] -c properties
```

{% endtab %}
{% endtabs %}

* Run the below command to confirm which endpoint is hit.

{% tabs %}
{% tab title="None" %}

```none
$ glance --debug image-download --file [FILE] [snapshot UUID]
```

{% endtab %}
{% endtabs %}

OR

{% tabs %}
{% tab title="None" %}

```none
$ openstack image save --file  [FILE] [snapshot UUID] --debug
```

{% endtab %}
{% endtabs %}

## Resolution:

1. Click on the ' ***Images***' tab in the UI.
2. Click on the ' ***Add New Image***' button.
3. Manually ***SCP*** the Image in the path defined under column " ***Path to Image Library Watch Folder*****"** on hosts that do not have this image.

## Additional Information

When a new image is created, it will only be uploaded to one of the authorized image library hosts, and the image file will be stored in the chosen image repository location on that host. Requests to download the file from another image library host will fail unless the image file is made available on that host. To maximize image availability and fault tolerance, each image library host must have access to all the image files cataloged by the **Glance** service. Refer to the article [Image Catalog High Availability](https://docs.platform9.com/openstack/images/image-library-ha/) for more details.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/solution/unable-to-download-images-glance-commands-return-image-uuid-has.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
