===============
Test environment:
XenServer 6.5
OpenStack upstream code, after Mitaka release
=========
Test steps:
1. Boot an instance with cirros image
2. Create a snapshot S-1 for this instance
3. Create a volume with snapshot S-1
======
Expect:
Create volume successfully
======
Results:
Failed to create volume with snapshot, see cinder error log:
2016-05-04 08:40:42.279 DEBUG oslo_concurrency.processutils [req-8e4a18a8-891c-428c-8cd3-e299b270712c e59f0c1727ea4af7a6da2abc79495f59 c275c46986514d0cab4fca54417eaca1] Running cmd (subprocess): tar -xzf /opt/stack/data/cinder/conversion/tmpg5LwRX -C /opt/stack/data/cinder/conversion/tmpAjJLAs from (pid=419) execute /usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:326
2016-05-04 08:40:42.742 DEBUG oslo_concurrency.processutils [req-8e4a18a8-891c-428c-8cd3-e299b270712c e59f0c1727ea4af7a6da2abc79495f59 c275c46986514d0cab4fca54417eaca1] CMD "tar -xzf /opt/stack/data/cinder/conversion/tmpg5LwRX -C /opt/stack/data/cinder/conversion/tmpAjJLAs" returned: 0 in 0.464s from (pid=419) execute /usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:356
2016-05-04 08:40:42.744 DEBUG oslo_concurrency.processutils [req-8e4a18a8-891c-428c-8cd3-e299b270712c e59f0c1727ea4af7a6da2abc79495f59 c275c46986514d0cab4fca54417eaca1] Running cmd (subprocess): vhd-util modify -n /opt/stack/data/cinder/conversion/tmpAjJLAs/0.vhd -p /opt/stack/data/cinder/conversion/tmpAjJLAs/1.vhd from (pid=419) execute /usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:326
2016-05-04 08:40:42.799 DEBUG oslo_concurrency.processutils [req-8e4a18a8-891c-428c-8cd3-e299b270712c e59f0c1727ea4af7a6da2abc79495f59 c275c46986514d0cab4fca54417eaca1] u'vhd-util modify -n /opt/stack/data/cinder/conversion/tmpAjJLAs/0.vhd -p /opt/stack/data/cinder/conversion/tmpAjJLAs/1.vhd' failed. Not Retrying. from (pid=419) execute /usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py:404
2016-05-04 08:40:42.811 ERROR cinder.volume.flows.manager.create_volume [req-8e4a18a8-891c-428c-8cd3-e299b270712c e59f0c1727ea4af7a6da2abc79495f59 c275c46986514d0cab4fca54417eaca1] Failed to copy image fbee997e-c1bc-44fe-91a2-566d0cff82f4 to volume: b42e4d7f-7187-4b54-878f-04306af6e692
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume Traceback (most recent call last):
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/volume/flows/manager/create_volume.py", line 524, in _copy_image_to_volume
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume copy_image_to_volume(context, volume_ref, image_service, image_id)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 459, in copy_image_to_volume
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume size=volume['size'])
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/image/image_utils.py", line 237, in fetch_to_raw
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume run_as_root=run_as_root)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/image/image_utils.py", line 286, in fetch_to_volume_format
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume replace_xenserver_image_with_coalesced_vhd(tmp)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/image/image_utils.py", line 501, in replace_xenserver_image_with_coalesced_vhd
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume fix_vhd_chain(chain)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/image/image_utils.py", line 423, in fix_vhd_chain
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume set_vhd_parent(child, parent)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/image/image_utils.py", line 414, in set_vhd_parent
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume utils.execute('vhd-util', 'modify', '-n', vhd_path, '-p', parentpath)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/opt/stack/cinder/cinder/utils.py", line 125, in execute
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume return processutils.execute(*cmd, **kwargs)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 345, in execute
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume env=env_variables)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/usr/local/lib/python2.7/dist-packages/eventlet/green/subprocess.py", line 54, in __init__
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume errread, errwrite)
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume raise child_exception
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume OSError: [Errno 2] No such file or directory
2016-05-04 08:40:42.811 TRACE cinder.volume.flows.manager.create_volume
For more information from the log.
Test environment:
- XenServer 6.5
- OpenStack upstream code, after Mitaka release
- Cinder Driver: LVM driver
- Failed operation
vhd-util is failed.
2016-05-04 08:40:42.811 TRACE cinder. volume. flows.manager. create_ volume utils.execute( 'vhd-util' , 'modify', '-n', vhd_path, '-p', parentpath)
....
OSError: [Errno 2] No such file or directory
Need a volunteer who has XenServer environment.