-
Notifications
You must be signed in to change notification settings - Fork 124
Allow copy of templates from secondary storages of same or other zone when adding a new secondary storage #611
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
Merged
harikrishna-patnala
merged 6 commits into
apache:4.20
from
shapeblue:improve_template_copy_btw_secondary_storages
Jan 28, 2026
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
822838b
Improvements added in making the existing templates available on newl…
harikrishna-patnala adc272a
Added parameter details
harikrishna-patnala c4e9ba6
corrections
harikrishna-patnala 423da79
more corrections
harikrishna-patnala 07514df
Correction
harikrishna-patnala d0880cf
Fix table format
harikrishna-patnala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1705,6 +1705,26 @@ add more servers to an existing zone. | |
| - Path. The path to the zone's Secondary Staging Store. | ||
|
|
||
|
|
||
| When a new Secondary Storage is added, the Management Server attempts to make | ||
| existing templates available on the new Secondary Storage. | ||
|
|
||
| CloudStack improves template availability using the configuration: | ||
|
harikrishna-patnala marked this conversation as resolved.
Outdated
|
||
|
|
||
| +----------------------------------------------+-------------------------------------------------------------------------------------------------------------+-----------+ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @harikrishna-patnala the table is not visible in the html.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks @rajujith fixed it
|
||
| | Name | Description | Default | | ||
| +==============================================+=============================================================================================================+===========+ | ||
| | copy.templates.from.other.secondary.storages | Allow templates to be copied from existing Secondary Storage servers (within the same zone or across zones) | true | | ||
|
harikrishna-patnala marked this conversation as resolved.
Outdated
|
||
| | | when adding a new Secondary Storage, instead of downloading them from the source URL. | | | ||
| +----------------------------------------------+-------------------------------------------------------------------------------------------------------------+-----------+ | ||
|
|
||
| This setting is enabled by default and can be configured globally or at zone level. | ||
|
DaanHoogland marked this conversation as resolved.
Outdated
harikrishna-patnala marked this conversation as resolved.
Outdated
|
||
|
|
||
| CloudStack applies the following order of steps while trying to make a template available in the new secondary storage: | ||
|
harikrishna-patnala marked this conversation as resolved.
Outdated
|
||
|
|
||
| 1. Attempt to copy the template from another Secondary Storage in the same zone. | ||
|
harikrishna-patnala marked this conversation as resolved.
Outdated
|
||
| 2. If not found, attempt to copy the template from a Secondary Storage in a different zone. | ||
|
harikrishna-patnala marked this conversation as resolved.
Outdated
|
||
| 3. If the copy operation fails, CloudStack falls back to downloading the template using its URL when it is registered. | ||
|
harikrishna-patnala marked this conversation as resolved.
Outdated
|
||
|
|
||
| Adding an NFS Secondary Staging Store for Each Zone | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.