Unable to create an image in glance

Solution In Progress - Updated -

Issue

  • We are unable to create an image in glance

  • When creating an image, the following behavior is observed

cloud@host0:/home/stack$ glance image-create --name "image.qcow2" --file image.qcow2
+------------------+-----------------------------------------------+
| Property         | Value                                         |
+------------------+-----------------------------------------------+
| checksum         | None                                          |
| container_format | bare                                          |
| created_at       | 2016-10-31T15:10:40Z                          |
| disk_format      | qcow2                                         |
| id               | 7d52eecc-626b-4dce-b746-7c0a0dd50da2          |
| min_disk         | 0                                             |
| min_ram          | 0                                             |
| name             | image.qcow2 |
| owner            | a835964794924fb8babb57a4e1c3b94d              |
| protected        | False                                         |
| size             | None                                          |
| status           | queued                                        |
| tags             | []                                            |
| updated_at       | 2016-10-31T15:10:40Z                          |
| virtual_size     | None                                          |
| visibility       | public                                        |
+------------------+-----------------------------------------------+
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 671, in main
    OpenStackImagesShell().main(argv)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/shell.py", line 602, in main
    args.func(client, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/utils.py", line 98, in func_wrapper
    return func(gc, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/shell.py", line 86, in do_image_create
    do_image_upload(gc, args)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/shell.py", line 324, in do_image_upload
    gc.images.upload(args.id, image_data, args.size)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/v2/images.py", line 217, in upload
    self.http_client.put(url, headers=hdrs, data=body)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 208, in put
    return self.request(url, 'PUT', **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 346, in request
    return self._handle_response(resp)
  File "/usr/local/lib/python2.7/dist-packages/glanceclient/common/http.py", line 107, in _handle_response
    raise exc.from_response(resp, resp.content)
HTTPInternalServerError: 500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

Environment

  • Red Hat OpenStack Platform 8.0 (RHOSP)

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