Download image from openstack

https://docs.openstack.org/image-guide/obtain-images.html

Convert image to RAW

Since we’re using ceph RBD, RAW format image will significantly boost up VM start up time, QCOW2 image works though but you lost the benefit of Ceph RBD.

source admin-openrc.sh
root@openstack-staging:/home/kevin# qemu-img convert focal-server-cloudimg-amd64.img focal-server-cloudimg-amd64.raw

Upload image

source admin-openrc.sh
root@ems-la4-staging:~/openstack/images# openstack image create "Ubuntu Server 20.04" --file focal-server-cloudimg-amd64.raw --disk-format raw --container-format bare --property hw_qemu_guest_agent=yes --property os_type=linux --public
root@ems-la4-staging:~/openstack/images# openstack image create Fedora-CoreOS --file=fedora-coreos-32.20201004.3.0-openstack.x86_64.raw --disk-format=raw --container-format=bare --property os_distro='fedora-coreos' --public
source octavia-openrc.sh
root@ems-la4-staging:~/openstack/images# openstack image create "amphora-x64-haproxy" --file ./amphora-x64-haproxy.raw --disk-format raw --container-format bare --tag amphora

--

--