Commit 762edb0
committed
Fix of create template from snapshot on another zone
When a snapshot has a copy on StorPool primary storage in another zone, but the original snapshot resides on secondary storage, creating a template from the copied snapshot results in the template being created in the first zone.
If the snapshot.backup.to.secondary setting is disabled, and a user creates a volume or template from a snapshot, the snapshot is temporarily backed up to secondary storage during the operation. After the operation, this backup should be deleted. However, the snapshot currently remains on both primary and secondary storage.1 parent f2d6356 commit 762edb0
File tree
3 files changed
+17
-15
lines changed- engine/orchestration/src/main/java/org/apache/cloudstack/engine/orchestration
- server/src/main/java
- com/cloud/template
- org/apache/cloudstack/snapshot
3 files changed
+17
-15
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
| 582 | + | |
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | | - | |
591 | 590 | | |
592 | 591 | | |
593 | 592 | | |
594 | 593 | | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| |||
Lines changed: 14 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | | - | |
1699 | | - | |
| 1698 | + | |
1700 | 1699 | | |
1701 | | - | |
1702 | 1700 | | |
1703 | 1701 | | |
1704 | 1702 | | |
1705 | | - | |
1706 | 1703 | | |
1707 | | - | |
1708 | 1704 | | |
1709 | 1705 | | |
1710 | 1706 | | |
| |||
1716 | 1712 | | |
1717 | 1713 | | |
1718 | 1714 | | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1726 | 1728 | | |
1727 | 1729 | | |
1728 | 1730 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments