[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [BUG?] vhd-parent missing after snapshot removal



Good day.

Found strange behavior (bug?) in xapi: it removes vhd-parent from sm-config of VDI after removing most recent snapshot.

How to reproduce:

VDI=`xe vdi-create ....`
SN1=`xe vdi-snapshot uuid=$VDI`
(perform some write operations on VDI to force creation of second base copy)
SN2=`xe vdi-snapshot uuid=$VDI`
xe vdi-destroy uuid=$SN2
xe vdi-list uuid=$VDI params=sm-config

Expected:
sm-config vhd-parent: uuid_of_corresponding_base_copy

Got:
sm-config contains no vhd-parent.

Why this important? vhd-parent links alllows to calculate sizes of all VHD's, related to snapshot/clone tree. Without vhd-parent we need to rely on snapshort-of and snapshots fields, which are not really reliable (vdi-clone break the chain).

This bug does not affects snapshot functionality, AFAIK real VDI chain is reconstructed from internal headers of VDI, but affects software using XenAPI.

Thanks.

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.