Openstack cmd and upload should default to raw not qcow.
builds were timing out. Internally ceph is converting from
qcow2 to raw. Which can cause the time outs.
Issue-ID: RELENG-3102
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: I78b2fe7bcc6e6f631013cf1d58455cf17cbea291
@click.command()
@click.argument("image")
@click.argument("name", nargs=-1, required=True)
-@click.option("--disk-format", type=str, default="qcow2", help="Disk format of image. (default: qcow2)")
+@click.option("--disk-format", type=str, default="raw", help="Disk format of image. (default: raw)")
@click.pass_context
def upload(ctx, image, name, disk_format):
"""Upload image to OpenStack cloud."""
_accept_shared_image(cloud, image_id)
-def upload(os_cloud, image, name, disk_format="qcow2"):
+def upload(os_cloud, image, name, disk_format="raw"):
"""Upload image to openstack."""
log.info('Uploading image {} with name "{}".'.format(image, name))
cloud = shade.openstack_cloud(cloud=os_cloud)
--- /dev/null
+---
+fixes:
+ - |
+ The openstack image upload has been updated to default to raw uploads.
+ This has been done as the LF Openstack cloud provider prefers raw format
+ and having images uploaded in qcow2 format causes issues with services.
+ Openstack cmd and upload should default to raw not qcow.