-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
ISSUE TYPE
- Bug Report
COMPONENT NAME
Snapshot to secondary storage
CLOUDSTACK VERSION
4.19.1
CONFIGURATION
OS / ENVIRONMENT
KVM, NFS secondary storage
SUMMARY
Upgrading from Cloudstack 4.18 to 4.19.1, I see reports in the UI that all snapshots have a 0 Physical Size even when there is a physical size in the database.
select * from snapshot_store_ref where snapshot_id=91517\g
+--------+----------+-------------+---------------------+--------------+--------+------------+-------------+---------------+--------------------+--------------------------------------------------------------------------------------+-------+--------------+---------+---------------------+-----------+----------------+--------------+-----------+---------+------------+
| id | store_id | snapshot_id | created | last_updated | job_id | store_role | size | physical_size | parent_snapshot_id | install_path | state | update_count | ref_cnt | updated | volume_id | download_state | download_pct | error_str | display | local_path |
+--------+----------+-------------+---------------------+--------------+--------+------------+-------------+---------------+--------------------+--------------------------------------------------------------------------------------+-------+--------------+---------+---------------------+-----------+----------------+--------------+-----------+---------+------------+
| 129502 | 69 | 91517 | 2024-09-09 09:00:09 | NULL | NULL | Primary | 85899345920 | 85899345920 | 0 | cloudstack/1721884e-c618-413b-9f31-4eba9a4acc50/582372a9-a122-4121-b25b-f6ea2d875e38 | Ready | 2 | 0 | 2024-09-09 09:00:10 | 25832 | NULL | 0 | NULL | 1 | NULL |
| 129505 | 1 | 91517 | 2024-09-09 09:00:10 | NULL | NULL | Image | 85899345920 | 56633131008 | 0 | snapshots/13511/25832/582372a9-a122-4121-b25b-f6ea2d875e38 | Ready | 2 | 0 | 2024-09-09 09:04:45 | 25832 | NULL | 0 | NULL | 1 | NULL |
+--------+----------+-------------+---------------------+--------------+--------+------------+-------------+---------------+--------------------+--------------------------------------------------------------------------------------+-------+--------------+---------+---------------------+-----------+----------------+--------------+-----------+---------+------------+
2 rows in set (0.000 sec)
I am using Ceph and local storage with snapshot.backup.to.secondary enabled. I can give more information if needed.
STEPS TO REPRODUCE
Snapshot using local storage with snapshot.backup.to.secondary enabled
EXPECTED RESULTS
Seeing the physical size in the UI as reflected in the database
ACTUAL RESULTS
"physicalsize": 0,
Reactions are currently unavailable