upload_to_image() function should be updated when
client version is bigger than 3.1.
Without this we are not able to run this function:
image = cinder_client.volumes.upload_to_image(
volume=temporary_volume,
force=True,
image_name='temporary_image_of_{0}'.format(temporary_volume.id),
container_format="bare",
disk_format="raw"
)
Change-Id: I825ad0d6f6c25e2d85c756e6148e73e7e298ef75
Closes-Bug: #1787399
Co-Authored-By: Jiao Pengju <jiaopengju@cmss.chinamobile.com>