erikbocks opened a new pull request, #12650: URL: https://github.com/apache/cloudstack/pull/12650
### Description Currently, if an error occurs when trying to obtain a secondary storage for the creation of a template from a volume, or when uploading a volume, the message from the thrown exception exposes the zone's internal ID. Thus, the exception message was changed, and the descriptive message was moved to the logs. ### Types of changes - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Bug fix (non-breaking change which fixes an issue) - [X] Enhancement (improves an existing feature and functionality) - [ ] Cleanup (Code refactoring and cleanup, that may add test cases) - [ ] Build/CI - [ ] Test (unit or integration test code) ### Feature/Enhancement Scale or Bug Severity #### Feature/Enhancement Scale - [ ] Major - [X] Minor ### Screenshots (if appropriate): ### How Has This Been Tested? In an environment with only one secondary storage, I set it as `read-only`. Then, I tried to create a template from a volume. An exception was thrown, informing that an error had occurred, but no infrastructure leak was present. I accessed the logs, and validated that the log with more information was shown, as well as the new exception message. ``` 2026-02-16 13:01:37,560 ERROR [c.c.t.TemplateManagerImpl] (API-Job-Executor-11:[ctx-5f80938b, job-46, ctx-c87d05bc]) (logid:8879f16f) Cannot find an image store for zone [1]. 2026-02-16 13:01:37,576 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-11:[ctx-5f80938b, job-46]) (logid:8879f16f) Unexpected exception while executing org.apache.cloudstack.api.command.admin.template.CreateTemplateCmdByAdmin com.cloud.utils.exception.CloudRuntimeException: Failed to create template. Please contact the cloud administrator. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
