Skip to content

[Compute] Fix a vmss update, disk attach/detach, extension set/delete issue#14992

Merged
houk-ms merged 6 commits intoAzure:devfrom
qwordy:14924
Oct 9, 2020
Merged

[Compute] Fix a vmss update, disk attach/detach, extension set/delete issue#14992
houk-ms merged 6 commits intoAzure:devfrom
qwordy:14924

Conversation

@qwordy
Copy link
Member

@qwordy qwordy commented Aug 31, 2020

Description

Resolve #14924
Resolve #15058

Support partial update of vmss to avoid unnecessary permission check.

How to try it. https://github.com/Azure/azure-cli/blob/dev/doc/try_new_features_before_release.md

Testing 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.

@qwordy qwordy requested a review from arrownj as a code owner August 31, 2020 12:44
@qwordy qwordy requested a review from yungezz August 31, 2020 12:50
@yungezz yungezz self-assigned this Aug 31, 2020
@yungezz yungezz added the Compute az vm/vmss/image/disk/snapshot label Aug 31, 2020
@Azure Azure deleted a comment from yonzhan Aug 31, 2020
g.custom_command('start', 'start_vmss', supports_no_wait=True)
g.custom_command('stop', 'stop_vmss', supports_no_wait=True, validator=process_vm_vmss_stop)
g.generic_update_command('update', getter_name='get_vmss', setter_name='update_vmss', supports_no_wait=True, command_type=compute_custom, validator=validate_vmss_update_namespace)
g.generic_update_command('update', getter_name='get_vmss_modified', setter_name='update_vmss', supports_no_wait=True, command_type=compute_custom, validator=validate_vmss_update_namespace)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very special case, it's better to add a standalone test for it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering it needs to update the permission of user in a subscription, I'm OK to skip the test. Let's make sure the test is done in local.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I test it manually

Copy link
Member

@yungezz yungezz Sep 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long term we need to switch to patch mode to completely resolve the issue. I'll file an issue to track it. While that need service team confirmation firstly.

@qwordy qwordy changed the title [Compute] Fix a vmss update issue [Compute] Fix a vmss update, disk attach/detach, extension set/delete issue Sep 7, 2020
@qwordy
Copy link
Member Author

qwordy commented Sep 14, 2020

I can't merge it now. It breaks a successfully test case. Let's wait for VMSS service team to support not setting image reference.

@yungezz
Copy link
Member

yungezz commented Oct 9, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@yungezz
Copy link
Member

yungezz commented Oct 9, 2020

service side ready, and tested the change works.

@houk-ms
Copy link
Contributor

houk-ms commented Oct 9, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compute az vm/vmss/image/disk/snapshot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should exclude imageReference on VMSS disk attach/detach command request Should exclude storageProfile on VMSS update command request

4 participants