Commit a87c5c2
authored
Create new Instance from VM backup (#10140)
This feature adds the ability to create a new instance from a VM backup for dummy, NAS and Veeam backup providers. It works even if the original instance used to create the backup was expunged or unmanaged. There are two parts to this functionality:
Saving all configuration details that the VM had at the time of taking the backup. And using them to create an instance from backup.
Enabling a user to expunge/unmanage an instance that has backups.1 parent b9febe4 commit a87c5c2
File tree
141 files changed
+10868
-1787
lines changed- api/src
- main/java
- com/cloud
- capacity
- event
- network
- offering
- storage
- vm
- org/apache/cloudstack
- alert
- api
- command
- admin
- resource
- storage
- vm
- user
- backup
- vm
- response
- backup
- test/java/org/apache/cloudstack/api/command
- admin/storage
- user/vm
- core/src/main/java/org/apache/cloudstack/backup
- engine
- api/src/main/java
- com/cloud/vm
- org/apache/cloudstack/engine/service/api
- components-api/src/main/java/com/cloud/storage
- orchestration/src/main/java
- com/cloud/vm
- org/apache/cloudstack/engine/orchestration
- schema/src
- main
- java
- com/cloud
- capacity
- usage/dao
- vm/dao
- org/apache/cloudstack
- backup
- dao
- storage/datastore/db
- resources/META-INF
- cloudstack/core
- db
- test/java/org/apache/cloudstack/backup/dao
- storage/src/main/java/org/apache/cloudstack/storage/object/datastore
- plugins
- backup
- dummy/src/main/java/org/apache/cloudstack/backup
- nas/src
- main/java/org/apache/cloudstack/backup
- test/java/org/apache/cloudstack/backup
- networker/src
- main/java/org/apache/cloudstack/backup
- networker
- test/java/org/apache/backup/networker
- veeam/src
- main/java/org/apache/cloudstack/backup
- veeam
- test/java/org/apache/cloudstack/backup
- veeam
- hypervisors
- kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper
- simulator/src/main/java/com/cloud/simulator
- vmware/src
- main/java/com/cloud/hypervisor/guru
- test/java/com/cloud/hypervisor/guru
- integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers
- storage
- object
- ceph/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle
- minio/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle
- simulator/src/main/java/org/apache/cloudstack/storage/datastore/lifecycle
- scripts/vm/hypervisor/kvm
- server/src
- main/java
- com/cloud
- alert
- api
- query/dao
- network
- as
- server
- storage
- vm
- org/apache/cloudstack
- backup
- consoleproxy
- resource
- storage/object
- test/java
- com/cloud
- alert
- network
- as
- storage
- vm
- vpc
- org/apache/cloudstack
- backup
- resource
- storage/object
- test/integration/smoke
- tools/marvin/marvin/lib
- ui
- public/locales
- src
- components
- view
- widgets
- config/section
- infra
- views
- compute
- backup
- wizard
- dashboard
- infra
- storage
- usage/src/main/java/com/cloud/usage
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
141 files changed
+10868
-1787
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| 635 | + | |
635 | 636 | | |
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
639 | 640 | | |
| 641 | + | |
640 | 642 | | |
641 | 643 | | |
642 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | | - | |
| 224 | + | |
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
| |||
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
300 | | - | |
| 301 | + | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
| |||
369 | 370 | | |
370 | 371 | | |
371 | 372 | | |
372 | | - | |
| 373 | + | |
373 | 374 | | |
374 | 375 | | |
375 | 376 | | |
| |||
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
519 | 524 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| 160 | + | |
158 | 161 | | |
159 | 162 | | |
160 | 163 | | |
| |||
163 | 166 | | |
164 | 167 | | |
165 | 168 | | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| |||
305 | 309 | | |
306 | 310 | | |
307 | 311 | | |
| 312 | + | |
308 | 313 | | |
309 | 314 | | |
310 | 315 | | |
| |||
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| 364 | + | |
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
| |||
383 | 389 | | |
384 | 390 | | |
385 | 391 | | |
| 392 | + | |
386 | 393 | | |
387 | 394 | | |
388 | 395 | | |
| |||
459 | 466 | | |
460 | 467 | | |
461 | 468 | | |
| 469 | + | |
462 | 470 | | |
463 | 471 | | |
464 | 472 | | |
| |||
494 | 502 | | |
495 | 503 | | |
496 | 504 | | |
| 505 | + | |
497 | 506 | | |
498 | 507 | | |
499 | 508 | | |
| |||
509 | 518 | | |
510 | 519 | | |
511 | 520 | | |
| 521 | + | |
512 | 522 | | |
513 | 523 | | |
514 | 524 | | |
| |||
576 | 586 | | |
577 | 587 | | |
578 | 588 | | |
| 589 | + | |
579 | 590 | | |
580 | 591 | | |
581 | 592 | | |
| |||
634 | 645 | | |
635 | 646 | | |
636 | 647 | | |
| 648 | + | |
637 | 649 | | |
638 | 650 | | |
| 651 | + | |
639 | 652 | | |
640 | 653 | | |
641 | 654 | | |
| |||
817 | 830 | | |
818 | 831 | | |
819 | 832 | | |
| 833 | + | |
820 | 834 | | |
821 | 835 | | |
822 | 836 | | |
| |||
0 commit comments