Problem creating volumes from images larger than 20GB with NFS backend
Issue
- When creating a volume from image where image is larger than 20GB, the request fails with:
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume [req-a949dde9-f616-4367-9079-78bad5bf473b - - - - -] Failed to copy image e2d87bc4-a0db-4309-bb3d-83afcade12ed to volume: bec63297-1679-4e6b-9424-681616567ef7
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume Traceback (most recent call last):
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/flows/manager/create_volume.py", line 519, in _copy_image_to_volume
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume copy_image_to_volume(context, volume_ref, image_service, image_id)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 870, in trace_method_logging_wrapper
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume return f(*args, **kwargs)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 870, in trace_method_logging_wrapper
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume return f(*args, **kwargs)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/nfs_cmode.py", line 435, in copy_image_to_volume
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume context, volume, image_service, image_id)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 870, in trace_method_logging_wrapper
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume return f(*args, **kwargs)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/netapp/dataontap/nfs_base.py", line 301, in copy_image_to_volume
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume context, volume, image_service, image_id)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 404, in copy_image_to_volume
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume run_as_root=run_as_root)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 244, in fetch_to_raw
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume run_as_root=run_as_root)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 342, in fetch_to_volume_format
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume data = qemu_img_info(dest, run_as_root=run_as_root)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/image/image_utils.py", line 78, in qemu_img_info
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume prlimit=QEMU_IMG_LIMITS)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 155, in execute
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume return processutils.execute(*cmd, **kwargs)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 342, in execute
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume cmd=sanitized_cmd)
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume ProcessExecutionError: Unexpected error while running command.
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume Command: /usr/bin/python2 -m oslo_concurrency.prlimit --as=1073741824 --cpu=2 -- sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C qemu-img info /var/lib/cinder/mnt/fbdef210720e36d661073a6e8ee114ab/volume-bec63297-1679-4e6b-9424-681616567ef7
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume Exit code: 137
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume Stdout: u''
2018-02-06 10:37:20.156 31951 ERROR cinder.volume.flows.manager.create_volume Stderr: u''
Environment
- Red Hat OpenStack Platform 8.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
