[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? |
| 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.
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.
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.