Damans227 opened a new pull request, #12418:
URL: https://github.com/apache/cloudstack/pull/12418

   ### Description
   
   When registering a Kubernetes supported version ISO without specifying a 
zone, the ISO registration can fail if one or more zones lack an image store. 
The problem is that the ISO gets registered before the image store check 
happens downstream, leaving an orphaned ISO in the system.
   
   This PR adds upfront validation to check that image stores exist before 
attempting to register the ISO:
   - If a specific zone is provided, validates that zone has an image store
   - If no zone is provided (registering for all zones), validates all zones 
have image stores and reports which zones are missing storage
   
   This upfront validation prevents orphaned ISOs by catching the error before 
any resources are created.
   
   Fixes: #10994
   
   ### Types of changes
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] 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
   - [ ] Minor
   
   #### Bug Severity
   - [ ] BLOCKER
   - [ ] Critical
   - [x] Major
   - [ ] Minor
   - [ ] Trivial
   
   ### Screenshots (if appropriate):
   
   N/A
   
   ### How Has This Been Tested?
   
   - Added unit tests for `validateImageStoreForZone` method.
   


-- 
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]

Reply via email to