Avoid empty cluster snapshot

Bug #1312584 reported by sirio81
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

If there are no active snapshots in the cluster I think 'dog cluster
snapshot save' has to print an error.

Revision history for this message
sirio81 (sirio81) wrote :

Note: this bug was partially fixed: dog refuse to take the first cluster snapshot if there are no vdi snapshots.
But it allows it with a second or next cluster snaphost.

How to reproduce:

this is the first cluster snapshot I try to save, but I forgot to snapshot
the vdi:

dog cluster snapshot save first cluster_snapshots
Object not found. It may be caused by:
1. The cluster is empty.
2. All VDIs of the cluster don't have snapshots.

and that's right!

Then I take vdi snapshot and save cluster snapshot, then remove vdi
Now I try to make the same mistake

dog cluster snapshot save second cluster_snapshots
100.0 % [=====] 4 / 4

There are no vdi snapshots and dog doesn't complain about it!
It did it only the first time.

Changed in sheepdog-project:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers