[sheepdog] deleting vdi image not deleting snapshots

Alexandre DERUMIER aderumier at odiso.com
Mon Oct 15 10:43:03 CEST 2012


Hi,
I just see that delete an vdi image not deleting snapshots of the image.
is it normal ?

#collie vdi create image1 100MB
#collie vdi snapshot image1 -s snap1

# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
s image1       1  100 MB  0.0 MB  0.0 MB 2012-10-15 10:38   737a91     2         snap1
  image1       2  100 MB  0.0 MB  0.0 MB 2012-10-15 10:38   737a95     2  


#  collie vdi delete image1
# collie vdi list

  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
s image1       1  100 MB  0.0 MB  0.0 MB 2012-10-15 10:38   737a91     2         snap1





Also, with clone, we can delete the parent image or snapshot, I think we need to add some protections,
to avoid that

# collie vdi create image1 100MB
# collie vdi snapshot image1 -s snap1
# collie vdi clone image1 -s snap1 image2


# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
c image2       1  100 MB  0.0 MB  0.0 MB 2012-10-15 10:41   737578     2              
s image1       1  100 MB  0.0 MB  0.0 MB 2012-10-15 10:40   737a91     2         snap1
  image1       2  100 MB  0.0 MB  0.0 MB 2012-10-15 10:40   737a96     2   


#  collie vdi delete image1
# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
c image2       1  100 MB  0.0 MB  0.0 MB 2012-10-15 10:41   737578     2              
s image1       1  100 MB  0.0 MB  0.0 MB 2012-10-15 10:40   737a91     2         snap1

# collie vdi delete image1
# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
c image2       1  100 MB  0.0 MB  0.0 MB 2012-10-15 10:41   737578     2  



More information about the sheepdog mailing list