-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix for create template from snapshot (for snapshots on primary storage and storage doesn't support create snapshot to template directly) #11452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@blueorangutan package |
|
@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:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 14626 |
|
Sorry no, still the same error. |
ok |
|
I'm trying a commit before #9478 to see if it really is the cause of it. |
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 |
Volume snapshots per default go to secondary storage, we have an option to keep all snapshots on primary storage. |
|
I can confirm that it worked before: #9478 |
|
@rp-, Linstor is keeping only on primary or only on secondary storage? Does it have an option to keep the snapshot on both? |
Yes, only on either primary or secondary. There is NO option for both. |
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14634 |
DaanHoogland
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm, I think storage providers must test this in addition to smoke tests
|
@blueorangutan package |
|
@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. |
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14635 |
slavkap
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
@rp- ,can you test as well (and maybe others?) |
rp-
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested create template and create volume from snapshot and works now
weizhouapache
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
|
@blueorangutan test |
…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?