Skip to content

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

Merged
Houk (houk-ms) merged 6 commits into
Azure:devfrom
qwordy:14924
Oct 9, 2020
Merged

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

Conversation

@qwordy

@qwordy Feiyue Yu (qwordy) commented Aug 31, 2020

Copy link
Copy Markdown
Member

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.

@yungezz Yunge Zhu (yungezz) self-assigned this Aug 31, 2020
@yungezz Yunge Zhu (yungezz) added the Compute az vm/vmss/image/disk/snapshot label 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

@yungezz Yunge Zhu (yungezz) Sep 8, 2020

Copy link
Copy Markdown
Member

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 Feiyue Yu (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
Copy Markdown
Member Author

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
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 2 pipeline(s).

@yungezz

Copy link
Copy Markdown
Member

service side ready, and tested the change works.

@houk-ms

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
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