We are trying to create snapshots in our cluster (shared ceph-fs on all nodes), but this is only possible if all devices are QCOW2.
Problem is, we use SWAP devices, which - no matter what you select in the UI, can only be RAW because of that code in /usr/lib/one/sh/scripts_common.sh:
…
function mkfs_command {
DST=$1
FSTYPE=2
SIZE={3:-0}
if [ "$FSTYPE" = "qcow2" ]; then
QEMU_FORMAT="qcow2"
else
QEMU_FORMAT="raw"
fi
echo "$QEMU_IMG create -f ${QEMU_FORMAT} ${DST} ${SIZE}M"
if [ "$FSTYPE" = "swap" ]; then
echo "$MKSWAP -L swap $DST"
fi
}
…
And because the mkswap script is hardcoded to FSTYPE=swap, you will never be able to create snapshots as soon as you add a swap device.
Is there a reason for that?