shwstppr commented on issue #3264: Volume snapshot listing failing when originating primary pool removed URL: https://github.com/apache/cloudstack/issues/3264#issuecomment-583345130 @rhtyd @DaanHoogland tried to reproduce with 4.13 but couldn't - Created snapshot, noticed two entries in snapshot_store_ref ``` select * from snapshot_store_ref\G; *************************** 1. row *************************** id: 2 store_id: 1 snapshot_id: 1 created: 2020-02-07 10:43:47 last_updated: NULL job_id: NULL store_role: Image size: 5368709120 physical_size: 197120 parent_snapshot_id: 0 install_path: snapshots/2/4/0dfc98e6-af66-4636-9dac-2175c473b7b9 state: Destroyed update_count: 4 ref_cnt: 0 updated: 2020-02-07 10:55:48 volume_id: 8 *************************** 2. row *************************** id: 3 store_id: 3 snapshot_id: 2 created: 2020-02-07 10:56:03 last_updated: NULL job_id: NULL store_role: Primary size: 5368709120 physical_size: 5368709120 parent_snapshot_id: 0 install_path: /mnt/ff714bd3-b656-38f9-a210-350e71acf93b/bc6cda75-8359-4c5b-9b7f-178dc098c7ba/c131c60d-d6eb-4f39-9d71-855089244bfa state: Ready update_count: 2 ref_cnt: 0 updated: 2020-02-07 10:56:03 volume_id: 8 *************************** 3. row *************************** id: 4 store_id: 1 snapshot_id: 2 created: 2020-02-07 10:56:03 last_updated: NULL job_id: NULL store_role: Image size: 5368709120 physical_size: 197120 parent_snapshot_id: 0 install_path: snapshots/2/8/c131c60d-d6eb-4f39-9d71-855089244bfa state: Ready update_count: 2 ref_cnt: 0 updated: 2020-02-07 10:56:04 volume_id: 8 ``` - Deleted volume as without deleting/migrating was not being able to delete originating primary storage - Deleted primary storage, primary storage entry gets removed from snapshot_store_ref ``` > select * from snapshot_store_ref\G; *************************** 1. row *************************** id: 2 store_id: 1 snapshot_id: 1 created: 2020-02-07 10:43:47 last_updated: NULL job_id: NULL store_role: Image size: 5368709120 physical_size: 197120 parent_snapshot_id: 0 install_path: snapshots/2/4/0dfc98e6-af66-4636-9dac-2175c473b7b9 state: Destroyed update_count: 4 ref_cnt: 0 updated: 2020-02-07 10:55:48 volume_id: 8 *************************** 2. row *************************** id: 4 store_id: 1 snapshot_id: 2 created: 2020-02-07 10:56:03 last_updated: NULL job_id: NULL store_role: Image size: 5368709120 physical_size: 197120 parent_snapshot_id: 0 install_path: snapshots/2/8/c131c60d-d6eb-4f39-9d71-855089244bfa state: Ready update_count: 2 ref_cnt: 0 updated: 2020-02-07 10:56:04 volume_id: 8 2 rows in set (0.00 sec) ``` - List snapshots worked fine, ``` > list snapshots { "count": 1, "snapshot": [ { "account": "admin", "created": "2020-02-07T10:56:02+0000", "domain": "ROOT", "domainid": "215d2545-4987-11ea-9a78-1e0021010871", "id": "424f92d7-298e-46ff-9c13-6cd7cc820979", "intervaltype": "MANUAL", "name": "test12", "physicalsize": 197120, "revertable": false, "snapshottype": "MANUAL", "state": "BackedUp", "tags": [], "virtualsize": 5368709120, "volumeid": "8b7bee30-c20b-4ed1-9a0a-fc930b1016d7", "volumename": "DATA-3", "volumetype": "DATADISK", "zoneid": "025f0bd8-942f-44ea-9f94-c2c7851c935a" } ] } ``` Should I try with 4.11?
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services