-
Notifications
You must be signed in to change notification settings - Fork 1.3k
storage: fix private templates are not copied to new image store #9206
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
yadvr
merged 1 commit into
apache:4.19
from
weizhouapache:4.19-copy-private-template-to-new-image-store
Sep 4, 2024
Merged
Changes from all commits
Commits
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
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
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.
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.
I feel the log here is probably wrong otherwise the last condition in the method should take care of the case where the template is private but it needs to be downloaded to a new zone? Or do we download all templates to all stores of the zones?
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.
the method
isSkipTemplateStoreDownloadwas added in your pr #7485the original code snippet was introduced many years ago, only public/featured/system templates are copied.
in my opinion, all the templates/isos should be copied to new image store.
this needs some discussion
(this is why I created this pr as draft.
isSkipTemplateStoreDownloadcan be removed later in this pr)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.
will removing this make private templates be copied cross zones? If it is intra zone yes it makes sense to have templates on all stores, though ACS should be smart enough to do with one copy IMNSHO. I think we can remove this check now and consider making template retrieval smarter later.
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.
@weizhouapache Can this be controlled through a config (which can be default to false - keep the existing behavior as well)?
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.
@sureshanaparti @DaanHoogland
to be frank, I see no reason why private templates cannot be copied to other zones.
the public/private property is only related to user access control (domain/account), not the locations (zones/regions).
I prefer to consider it as a bug.
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.
@weizhouapache , I could live with that but would consider it a gap in functional definition. It was intentionally prohibited in the original code, but I see your point why that would not make sense. Let's go forward with this fix. In this case a setting is not a blocker IMNSHO. We can do but can do without as well. cc @sureshanaparti @weizhouapache