-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Compute] Dedicated host group automatic placement #14439
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
Conversation
arrownj
left a comment
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.
Code is good. Seems no test for --host-group. And why this is a breaking change ? All the new parameters are optional.
| self.assertTrue(instance_view["assetId"]) | ||
| self.assertTrue(instance_view["availableCapacity"]) | ||
|
|
||
| self.cmd('vm host group get-instance-view -g {rg} -n {host-group}') |
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.
add check ?
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.
Sure. Testing is not finished yet
|
thanks @qwordy , excellent PR description to detail problems and changes! after learning host, host group and service change, I propose below change. It's not necessary to be a breaking change, since meaning of host-group param not change: it means the host group this VM would like to go into. Pls have a look and check does it make sense to you, we can have discussion offline also. My proposal:
|
|
Very clear! |
valid concern :) let's work together to see any better way |
Description
Resolve #14056
--automatic-placementinvm host group create--host-groupinvmss createvm host group get-instance-viewI will make a breaking change. These are parameters from
vm create. However,--host-groupis not a parameter in REST API, it is used to complete the info of host if user only tells host name. Now, in the new API version, host group is supported in service.I plan to abandon old
--host-group, let--hostonly support ID, and the new--host-grouprepresents the dedicated host group that the virtual machine resides in.New spec:
@yungezz @arrownj What do you think about this change? Do you agree?
In the past 30 days, number of invocations:
vm create, 474384vm create --host-group, 39vm create --host, 46Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.