azure-cli: AZ Storage Blob copy show fails on azurestack
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az storage blob show
Errors:
There is currently a pending copy operation.ErrorCode: PendingCopyOperation
<?xml version="1.0" encoding="utf-8"?><Error><Code>PendingCopyOperation</Code><Message>There is currently a pending copy operation.
RequestId:b7bc4247-4367-0190-64d5-81944a675031
Time:2019-08-06T04:44:05.8281636Z</Message></Error>
Traceback (most recent call last):
cli/command_modules/storage/__init__.py, ln 240, in new_handler
handler(ex)
cli/command_modules/storage/__init__.py, ln 180, in handler
if isinstance(ex, t_error) and ex.status_code == 409 and ex.error_code == 'NoPendingCopyOperation':
AttributeError: 'AzureConflictHttpError' object has no attribute 'error_code'
...
<?xml version="1.0" encoding="utf-8"?><Error><Code>PendingCopyOperation</Code><Message>There is currently a pending copy operation.
RequestId:b7bc4247-4367-0190-64d5-81944a675031
Time:2019-08-06T04:44:05.8281636Z</Message></Error>
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
- Start a storage blob copy from azure to AzureStack
az storage blob show --account-name {} --container-name {} --name {} --output {}
Expected Behavior
Environment Summary
Darwin-18.7.0-x86_64-i386-64bit
Python 3.7.3
Shell: bash
azure-cli 2.0.67 *
Additional Context
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 17 (5 by maintainers)
Commits related to this issue
- Catch az storage blob show exception The new version of az cli started to throw an exception for pending downloads. https://github.com/Azure/azure-cli/issues/10160#issuecomment-2014161270 — committed to ubicloud/runner-images by enescakir 3 months ago
- Catch az storage blob show exception The new version of az cli started to throw an exception for pending downloads. https://github.com/Azure/azure-cli/issues/10160#issuecomment-2014161270 — committed to ubicloud/runner-images by enescakir 3 months ago
- Catch az storage blob show exception The new version of az cli started to throw an exception for pending downloads. https://github.com/Azure/azure-cli/issues/10160#issuecomment-2014161270 — committed to ubicloud/runner-images by enescakir 3 months ago
- Catch az storage blob show exception The new version of az cli started to throw an exception for pending downloads. https://github.com/Azure/azure-cli/issues/10160#issuecomment-2014161270 — committed to ubicloud/runner-images by enescakir 3 months ago
- Catch az storage blob show exception The new version of az cli started to throw an exception for pending downloads. https://github.com/Azure/azure-cli/issues/10160#issuecomment-2014161270 — committed to ubicloud/runner-images by enescakir 3 months ago
Not fixed, latest version using Azure CLI (from azure portal), I am getting something like the below:
There is currently a pending copy operation. RequestId:733e7141-b01e-002b-76f9-7b3689000000 Time:2024-03-22T01:36:43.8769772Z ErrorCode:PendingCopyOperation
This is a cross region copy just for reference. This error is intermittent, sometimes it returns the status and info, sometimes it doesn’t and throws the above.
I have multiple copies running so checking status is vital.
Problem here is that I need to query the ongoing status for AzureStack deployed Systems where need to copy blobs from Azure to Azurestack.
Expected Behaviour, verified on Azure
Actual Behaviour on AzureStack:
this brings a whole burden on scrtipting, as i need o query for until “success”, wich may never come back when status is like “connection reset by peer” or “failed”