You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Record still left in snapshot_store_ref after primary storage has been removed causing 530 when listSanpshots is called #7093
When a primary storage is deleted, the corresponding record in the snapshot_store_ref table is not deleted
Noted specifically in VMware
STEPS TO REPRODUCE
Take ROOT volume snapshot(This primary storage is Storage1.)
Migrate ROOT volume to other storage(as Storage2) with the API - migrateVirtualMachine -
Confirm the snapshot has two entries in cloud.snapshot_store_ref - one for primary and one for image.
Then remove Storage1.
Confirm that two entries remain in cloud.snapshot_store_ref.
Do a listSnapshots API call against the snapshot and observe Error:(HTTP 530, error code 9999) - Due to an NPE in the DB record refering to the deleted storage pool
EXPECTED RESULTS
The record in the table pointing to the now deleted primary storage is still present
Activity
weizhouapache commentedon Jan 27, 2023
@davidjumani
the issue with snapshot_store_ref might have been fixed by #6057
weizhouapache commentedon Jan 30, 2023
I am able to reproduce the issue in 4.15.2, but not in 4.17.2 it seems to be fixed by #6057 .
For those who have problem caused by the bug, please refer to what @andrijapanicsb said in #3264 (comment)
DELETE FROM snapshot_store_ref WHERE store_role="Primary" AND store_id IN (SELECT id FROM storage_pool WHERE removed IS NOT NULL);DaanHoogland commentedon Feb 20, 2023
@davidjumani , please verify #7205.