1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #5393: Prefix libvirt snapshot name with snap- (#492)

libvirt/QEMU has problem with simple numberic names,
it's confused with the internal snapshot IDs:
https://bugzilla.redhat.com/show_bug.cgi?id=733143
This commit is contained in:
Vlastimil Holer 2017-09-25 17:47:27 +02:00 committed by Ruben S. Montero
parent bbaf17a992
commit d8cc0fea13

View File

@ -22,7 +22,7 @@ source $(dirname $0)/../../scripts_common.sh
DOMAIN="$1"
SNAP_ID="$2"
data=`virsh --connect $LIBVIRT_URI snapshot-create-as $DOMAIN --name $SNAP_ID`
data=`virsh --connect $LIBVIRT_URI snapshot-create-as $DOMAIN --name "snap-${SNAP_ID}"`
if [ "$?" = "0" ]; then
echo "$data" | awk '{print $3}'