OpenStack: Failed to get ISO image to upload to Glance

Solution Unverified - Updated -

Issue

  • Trying to upload an ISO image in Glance (glance image-create) fails with no error message when Glance is unable to access the image from the location indicated. While there is no message telling that the glance command fails, listing existing images shows that the image was not uploaded to Glance:
# glance image-create --name test-iso --disk-format iso --container-format bare \
--copy-from http://abc.example.com/rhel-server-6.4-x86_64-dvd.iso --is-public yes
   ...
# glance image-list

+--------------------------------------+---------------+-------------+------------------+------------+--------+
| ID                                   | Name          | Disk Format | Container Format | Size       | Status |
+--------------------------------------+---------------+-------------+------------------+------------+--------+
|                                      |               |             |                  |            |        |
+--------------------------------------+---------------+-------------+------------------+------------+--------+
  • Further investigation shows that the glance command failed to get the ISO image. These messages from the api.log file reflect different types of failures that can occur:
# less /var/log/glance/api.log

2013-03-21 13:26:44 INFO glance.api.v1.images [107d1f0b-b07b-47fb-9244-1b2c3cad1ca6 91e455f21dbb4fc6a4aff19de2360f41 7864ea2e490f44a6ad1ada6c157d540b] Triggering asynchronous copy from external source
2013-03-21 13:26:44 3319 ERROR glance.api.v1.images [-] Copy from external source failed: [Errno 111] ECONNREFUSED

or

2013-03-21 13:34:16 INFO glance.api.v1.images [21148215-80ed-4e4e-9472-d4ee7bcbbfd8 91e455f21dbb4fc6a4aff19de2360f41 7864ea2e490f44a6ad1ada6c157d540b] Triggering asynchronous copy from external source
2013-03-21 13:34:16 3286 ERROR glance.api.v1.images [-] Copy from external source failed: /rhel-server-6.4-x86_64-dvd.iso

Environment

  • OpenStack Folsom (Preview)
  • Red Hat Enterprise Linux 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content