"post-processors": [
{
"type": "shell-local",
"inline": [
"/usr/bin/glance image-download snapshotv2016 --file /tmp/tempImage.qcow2
"/usr/bin/qemu-img convert -p -c -O qcow2 tempImage imagecompressed01.qcow2",
"/usr/bin/glance image-create --name final_image --file imagecompressed01.qcow2 --disk-format qcow2 --container-format bare"
]
}]
Hope it helps :-)
Cheers,
Lorena
"post-processors": [
{
"type": "shell-local",
"inline": [
"/usr/bin/glance image-download snapshotv2016 --file /tmp/tempImage.qcow2
"/usr/bin/qemu-img convert -p -c -O qcow2 /tmp/tempImage.qcow2 imagecompressed01.qcow2",
"/usr/bin/glance image-create --name final_image --file imagecompressed01.qcow2 --disk-format qcow2 --container-format bare"
]
}]