Skip to content

Conversation

@AnthoineB
Copy link

@AnthoineB AnthoineB commented Nov 13, 2025

'scan' function uses SNAPSHOT_OF_TAG as a vdi_uuid. Same, function '_finishSnapshot', part of 'clone', initialize SNAPSHOT_OF_TAG field with a vdi_uuid.
Without this patch the MGT is filled with 'OpaqueRef:' VDI after MGT is recreated.

To reproduce:

  1. Create a VDI with a snapshot on LVM SR <SR UUID>.
  2. lvremove /dev/VG_XenStorage-<SR UUID>/MGT
  3. xe sr-scan uuid=<SR UUID>

'scan' function uses SNAPSHOT_OF_TAG as a vdi_uuid.
Same, function '_finishSnapshot', part of 'clone', initialize
SNAPSHOT_OF_TAG field with a vdi_uuid.

Signed-off-by: Anthoine Bourgeois <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant