CA-424844: Fix incorrect vdi update in SXM#6949
CA-424844: Fix incorrect vdi update in SXM#6949changlei-li wants to merge 1 commit intoxapi-project:masterfrom
Conversation
In the case of migration, `update_snapshot_info_dest` has handled the snapshot_info correctly. Then in vm import, if the snapshot_of is set to ref null when not found in table, the info is missing. Signed-off-by: Changlei Li <[email protected]>
|
Hi @contificate Another fail is raised in the 26.6.0 test. This is a case to check the snapshot_of after migration. The This is the test log: |
We keep seeing inconsistent
|
|
As context to explain why #6913 was done, I've analised customers' databases with VMs that invalid |
|
I'm not familiar with SXM, so I don't immediately see how these features are related. What is the related test doing that created this CA ticket? SXM followed by an import, or is non-VM metadata exported as part of the migration? The lack of guarantees and ad-hoc logic around non-VM metadata exports is quite worrying if it's used for import, pool join, etc. with different expectations before and after. Overall, I'd like to rule out |
|
It would help to understand the case and expectations that failed: Importing a VDI with
The After allows the invalid state that Colin's PR was meant to prevent. The other cases:
One thing I'm not clear about is how is the |
|
OK. Thank you. Let's aimed to keep the change. I am working to recognize the prerequisite of the regression case. The regression test failed 100%. But I also find the snapshot_of is OK in my manual SXM test. I think the The |
|
This fail can be reproduced in cross-pool SXM for VM with snapshot. After the SXM, the snapshot_of data in vdi is missing. I add some debug log: |
|
Can you describe a bit more about how these two features relate? Does SXM use exportation of non-VM metadata to migrate VDI objects? If so, it's worth noting that the configuration for sending VDIs can specify "include_snapshots" (or something similarly named) but it only traverses immediate snapshots, so if there's a chain of them, they're not expected to be imported elsewhere. I'm trying to work out what's semantically different from before. |
|
Hi @contificate I don't fully understand this now. But I think you can easily reproduce it by cross-pool SXM for a VM with snapshot. |
|
I'd support reverting it if it's too problematic right now. I must confess I'm not sure I have the required test suites at my fingertips to dig into this. I appreciate your work on this. |
|
OK. Let me revert them first to resolve the regression first. |
|
Another two points:
|
In the case of migration,
update_snapshot_info_desthas handled the snapshot_info correctly. Then in vm import, if the snapshot_of is set to ref null when not found in table, the info is missing.Original PR: #6913