shwstppr opened a new pull request #3250: server: compute offering domains zones URL: https://github.com/apache/cloudstack/pull/3250 ## Description **Problem**: Compute or service offerings cannot be linked to specified multiple domain(s) and zone(s). **Root cause**: Compute offerings are independent of zones and they can be linked only to a single domain/sub-domain **Solution**: Compute or service offerings will be allowed to link with specified domain(s) and zone(s). Disk offering linked with multiple domains and zones can be created both with UI and API. Refactored createServiceOffering API to allow passing list of domain and zone IDs with domainids and zoneids parameter respectively. UI has been refactored to allow selecting multiple domains and zones while creating compute offering using multi-select elements. When list of passed domains contain both parent and child domain offering will be created for parent domain. Compute offering details will now show list of linked domains and zones as a comma-separated list of names. Linked domains and zones will be stored in the cloud.service_offering_details table in database as comma-separated list of IDs with key domainids and zoneids respectively. ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [x] 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) ## Screenshots (if appropriate):     ## How Has This Been Tested? <!-- Please describe in detail how you tested your changes. --> <!-- Include details of your testing environment, and the tests you ran to --> <!-- see how your change affects other areas of the code, etc. --> From UI and using cmk <!-- Please read the [CONTRIBUTING](https://github.com/apache/cloudstack/blob/master/CONTRIBUTING.md) document -->
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
