Uh oh!
There was an error while loading. Please reload this page.
Fix for create template from snapshot (for snapshots on primary storage and storage doesn't support create snapshot to template directly) - #11452
Conversation
sureshanaparti
commented
Aug 14, 2025
@blueorangutan package |
blueorangutan
commented
Aug 14, 2025
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@## main #11452 +/- ##
=========================================
Coverage 17.36% 17.36% + Complexity 15236 15235 -1
=========================================
Files 5886 5886 Lines 525645 525663 +18 Branches 64156 64158 +2 =========================================
+ Hits 91257 91261 +4 - Misses 424093 424107 +14
Partials 10295 10295
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
blueorangutan
commented
Aug 14, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 14626 |
rp-
commented
Aug 15, 2025
Sorry no, still the same error. |
sureshanaparti
commented
Aug 15, 2025
ok |
rp-
commented
Aug 15, 2025
I'm trying a commit before #9478 to see if it really is the cause of it. |
sureshanaparti
commented
Aug 15, 2025
The if cond. added there matches for only StorPool. I'm assuming Linstor should take the else path, as snapshots will be in primary storage, not Image and earlier condition |
rp-
commented
Aug 15, 2025
Volume snapshots per default go to secondary storage, we have an option to keep all snapshots on primary storage. |
rp-
commented
Aug 15, 2025
I can confirm that it worked before: #9478 |
slavkap
commented
Aug 15, 2025
@rp-, Linstor is keeping only on primary or only on secondary storage? Does it have an option to keep the snapshot on both? |
rp-
commented
Aug 15, 2025
Yes, only on either primary or secondary. There is NO option for both. |
sureshanaparti
commented
Aug 15, 2025
@blueorangutan package |
blueorangutan
commented
Aug 15, 2025
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Aug 15, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14634 |
DaanHoogland
left a comment
There was a problem hiding this comment.
clgtm, I think storage providers must test this in addition to smoke tests
sureshanaparti
commented
Aug 15, 2025
@blueorangutan package |
blueorangutan
commented
Aug 15, 2025
@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
sureshanaparti
commented
Aug 15, 2025
blueorangutan
commented
Aug 15, 2025
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14635 |
slavkap
left a comment
There was a problem hiding this comment.
code LGTM
created volume from a snapshot with NFS, Ceph and StorPool as primary storage
created template from a snapshot with NFS/Ceph and StorPool
with enabled/disabled snapshot.backup.to.secondary option
DaanHoogland
commented
Aug 15, 2025
@rp- ,can you test as well (and maybe others?) |
rp-
left a comment
There was a problem hiding this comment.
tested create template and create volume from snapshot and works now
sureshanaparti
commented
Aug 15, 2025
nvazquez
commented
Aug 15, 2025
@blueorangutan test |
Uh oh!
There was an error while loading. Please reload this page.
…ge and storage doesn't support create snapshot to template directly) (apache#11452) * Fix for create template from snapshot * code improvements, for create volume from snapshot
Description
This PR fixes create template from snapshot, for snapshots on primary storage and storage doesn't support create snapshot to template directly.
seems to be regression from #9478
Fixes#11451
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Tested create volume snapshot (for volumes of running instance) with NFS & PowerFlex primary pools and NFS secondary, and created template & volume from snapshot on NFS primary, created template from snapshot on PowerFlex primary.
How did you try to break this feature and the system with this change?