-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Service Fabric] az sf cluster node-type add
: Fix the unexpected error that 'StorageAccountsOperations' object has no attribute 'create'
#22283
Conversation
Service Fabric |
Could you add some tests for these cases? |
@a-santamaria for visibility |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Thanks @zhoxing-ms . |
I will. I am currently having issues recording the tests, getting |
Hi Alfredo, |
yeah I just pushed the tests changes: fb8ab50#diff-bcbe83fb48caf55eb8ad02c2f23325d7b4c840f38414f68dbacf8cebb76990d6 the tests that fail with this are: The command that works if I run outside of test is: it seems to me that the test connection is closing |
Hi Alfredo,
It only fails when its run as a test... |
Hi a-santamaria, |
Thanks @wangzelin007 I fixed the tests and skipped the ones that have the issue. @zhoxing-ms please take a look to merge |
/azp run |
Commenter does not have sufficient privileges for PR 22283 in repo Azure/azure-cli |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
az sf cluster node-type add
: Fix the unexpected error that 'StorageAccountsOperations' object has no attribute 'create'
Because this is a bugfix, it needs to be written into the release notes, so I modified the title and description of PR. @a-santamaria please help to see if it meets your expectation? |
@@ -376,16 +379,19 @@ def _add_common_name(cluster, is_admin, certificate_common_name, certificate_iss | |||
|
|||
patch_request = ClusterUpdateParameters(client_certificate_thumbprints=cluster.client_certificate_thumbprints, | |||
client_certificate_common_names=cluster.client_certificate_common_names) | |||
return client.update(resource_group_name, cluster_name, patch_request) | |||
update_cluster_poll = client.begin_update(resource_group_name, cluster_name, patch_request) | |||
return LongRunningOperation(cli_ctx)(update_cluster_poll) |
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.
It is recommended to use sdk_no_wait
instead of LongRunningOperation
and support the --no-wait
parameter.
However, you don't need to complete these in this PR, maybe you can submit a PR separately for this optimization.
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.
ok thanks, I will work on this recommendation on a separate pr
Related command
az sf cluster node-type add
Description
Fix adding a new node type. It was failing because due to a storage account method name breaking change. Reported here #21697
also found on #22344 and #22315
Testing Guide
History Notes
[Service Fabric]
az sf cluster node-type add
: Fix the unexpected error that 'StorageAccountsOperations' object has no attribute 'create'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.
I adhere to the Error Handling Guidelines.