Error creating new VMs when using a large image

Solution In Progress - Updated -

Issue

  • We observe when trying to create an instance of a large image the process ends with error, but when we try with an image smaller than 1 Gb the creation occurs successfully.

  • We also can't download the created image as it ends with those errors:

      (overcloud) [stack@undercloud ~]$ time openstack image save 248775bf-6d7f-464a-a460-aba3354b1429 --file 
      img-new-redownload.qcow2
     ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

real    0m23.283s
user    0m4.246s
sys     0m3.327s
  • We can see the same chunkedencoding error in the cinder-volume logs:
2022-05-09 15:00:44.086 87 ERROR cinder.image.image_utils [req-fa843c92-54df-4618-a4f6-47927110ef7f ebcf720c6f3f46a39ee355639b512a39 28135a46c06e496b9fa42a927b8bf49c - default default] IOError: None None: requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))
2022-05-09 15:00:44.455 87 WARNING cinder.volume.manager [req-fa843c92-54df-4618-a4f6-47927110ef7f ebcf720c6f3f46a39ee355639b512a39 28135a46c06e496b9fa42a927b8bf49c - default default] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' (e8a7c141-09d5-4612-91da-b9c981432efb) transitioned into state 'FAILURE' from state 'RUNNING'
...
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server [req-fa843c92-54df-4618-a4f6-47927110ef7f ebcf720c6f3f46a39ee355639b512a39 28135a46c06e496b9fa42a927b8bf49c - default default] Exception during message handling: cinder.exception.ImageDownloadFailed: Failed to download image 05a52859-2da1-4753-93e9-43fa8d855a08, reason: IOError: None None
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 601, in _update_chunk_length
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server     self.chunk_left = int(line, 16)
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server ValueError: invalid literal for int() with base 16: b''
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server During handling of the above exception, another exception occurred:
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server Traceback (most recent call last):
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 360, in _error_catcher
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server     yield
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 666, in read_chunked
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server     self._update_chunk_length()
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server   File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 605, in _update_chunk_length
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server     raise httplib.IncompleteRead(line)
2022-05-09 15:00:44.755 87 ERROR oslo_messaging.rpc.server http.client.IncompleteRead: IncompleteRead(0 bytes read)

Environment

  • Red Hat OpenStack Platform 16.1 (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