Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-9719

Delay in volume device becoming writable causes failure in volume create operation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhos-18.0.1
    • openstack-cinder
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • None
    • Important

      Description of problem:

      Cu is not able to create volumes using their custom image getting below error [1]

      [1] 2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils [req-595b156e-a33e-4ee3-a7f9-28cfe10c36b6 498cb72ba664461594ac2f3db32e40d2 40ab708776474546ab2ff82055e15670 - - -] Failed to copy image 58f07b29-3027-44d6-b4c5-6f79ec94c6bb to volume: b630f7b6-126b-4cf0-a7e6-194aae03aa4f: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
      Command: qemu-img convert -O raw -t none -f qcow2 /var/lib/cinder/conversion/image_fetch_58f07b29-3027-44d6-b4c5-6f79ec94c6bb_lc5t44mkhostgroup@3pariscsi_1 /dev/dm-7
      Exit code: 1
      Stdout: ''
      Stderr: 'qemu-img: /dev/dm-7: error while converting raw: Cannot grow device files\n'
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils Traceback (most recent call last):
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/volume/volume_utils.py", line 1152, in copy_image_to_volume
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils driver.copy_image_to_volume(
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/volume/driver.py", line 879, in copy_image_to_volume
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils self._copy_image_data_to_volume(
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/volume/driver.py", line 910, in _copy_image_data_to_volume
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils image_utils.fetch_to_raw(
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/image/image_utils.py", line 758, in fetch_to_raw
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils fetch_to_volume_format(context, image_service, image_id, dest, 'raw',
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/image/image_utils.py", line 873, in fetch_to_volume_format
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils convert_image(tmp, dest, volume_format,
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/image/image_utils.py", line 433, in convert_image
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils _convert_image(tuple(throttle_cmd['prefix']),
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/image/image_utils.py", line 357, in _convert_image
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils utils.execute(*cmd, run_as_root=run_as_root)
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/cinder/utils.py", line 114, in execute
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils return processutils.execute(*cmd, **kwargs)
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils File "/usr/lib/python3.9/site-packages/oslo_concurrency/processutils.py", line 438, in execute
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils raise ProcessExecutionError(exit_code=_returncode,
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils Command: qemu-img convert -O raw -t none -f qcow2 /var/lib/cinder/conversion/image_fetch_58f07b29-3027-44d6-b4c5-6f79ec94c6bb_lc5t44mkhostgroup@3pariscsi_1 /dev/dm-7
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils Exit code: 1
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils Stdout: ''
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils Stderr: 'qemu-img: /dev/dm-7: error while converting raw: Cannot grow device files\n'
      2024-05-02 16:40:38.189 8 ERROR cinder.volume.volume_utils
      2024-05-02 16:40:38.369 8 WARNING cinder.volume.manager [req-595b156e-a33e-4ee3-a7f9-28cfe10c36b6 498cb72ba664461594ac2f3db32e40d2 40ab708776474546ab2ff82055e15670 - - -] Task 'cinder.volume.flows.manager.create_volume.CreateVolumeFromSpecTask;volume:create' (f5160af3-f101-4a2f-870d-ebfe674401d6) transitioned into state 'FAILURE' from state 'RUNNING'

      Actual results: Volume is not getting created successfully, moving to error state

      Expected results:Volume should be created successfully.

      Additional info:

      The problem is only with qcow2 image, volume creation is successful while using raw image

              rdhasman@redhat.com Rajat Dhasmana
              rdhasman@redhat.com Rajat Dhasmana
              rhos-dfg-storage-squad-cinder
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: