Skip to content

Conversation

@LunfanZhang
Copy link
Collaborator

@LunfanZhang LunfanZhang commented Jul 18, 2025

During the SMAPIv3 migration prepare step, it will create the VDI on the destination based on the source. The source retrieves vdi_info via copy_into_srfind_vdiSR.scan2sr_scan2_implCOWVolume.ls, and sr_ls extracts all vdi_info from the database.

However, when creating a snapshot with COWVolume.snapshot on V3, the vdi-type is not stored in the database, which causes getting an empty vdi-type and the migration prepare step to fail and result the folllowing error:

\'INTERNAL_ERROR\', \'Failure("Unknown tag/contents")\']]);S()]]]))]))]))])

This change adds a step to set vdi-type from the original VDI to the snapshot VDI to prevent this issue.

During the SMAPIv3 migration prepare step, it will create the VDI on the destination based on the source.
The source retrieves vdi_info via copy_into_sr → find_vdi → SR.scan2 → sr_scan2_impl → COWVolume.ls,
and sr_ls extracts all vdi_info from the database.

However, when creating a snapshot with COWVolume.snapshot on V3, the vdi-type is not stored in the database,
which causes getting an empty vdi-type and the migration prepare step to fail and result the folllowing error:

`\'INTERNAL_ERROR\', \'Failure("Unknown tag/contents")\']]);S()]]]))]))]))])`

This change adds a step to set vdi-type from the original VDI to the snapshot VDI to prevent this issue.

Signed-off-by: Lunfan Zhang[Lunfan.Zhang] <[email protected]>
@BengangY BengangY added this pull request to the merge queue Jul 21, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 21, 2025
@psafont psafont added this pull request to the merge queue Jul 21, 2025
@psafont psafont removed this pull request from the merge queue due to a manual request Jul 21, 2025
@psafont
Copy link
Member

psafont commented Jul 21, 2025

the job from the merge was cancelled, was this intentional?

@LunfanZhang
Copy link
Collaborator Author

the job from the merge was cancelled, was this intentional?

I don`t think so, the job was cancelled due to a setup environment failure, operation issue? maybe re-trigger will work.

@BengangY BengangY added this pull request to the merge queue Jul 21, 2025
Merged via the queue into xapi-project:master with commit 7a444fe Jul 21, 2025
16 checks passed
@BengangY
Copy link
Contributor

Retried and merged.

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.

4 participants