Fix: openstack image upload defaults to qcow2 92/64792/3 v0.34.2
authorAric Gardner <agardner@linuxfoundation.org>
Tue, 28 Jul 2020 18:01:49 +0000 (14:01 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Tue, 28 Jul 2020 20:18:48 +0000 (16:18 -0400)
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

lftools/openstack/cmd.py
lftools/openstack/image.py
releasenotes/notes/openstack-276ef6e079124325.yaml [new file with mode: 0644]

index 6478738..aa8fdec 100644 (file)
@@ -82,7 +82,7 @@ def share(ctx, image, dest):
 @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."""
index b7d31f0..b37597a 100644 (file)
@@ -186,7 +186,7 @@ def share(os_cloud, image, clouds):
         _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)
diff --git a/releasenotes/notes/openstack-276ef6e079124325.yaml b/releasenotes/notes/openstack-276ef6e079124325.yaml
new file mode 100644 (file)
index 0000000..7b2d445
--- /dev/null
@@ -0,0 +1,7 @@
+---
+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.