Skip to content
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

Cannot copy Cold tier Blob #2447

Closed
SugaMi opened this issue Nov 13, 2023 · 6 comments
Closed

Cannot copy Cold tier Blob #2447

SugaMi opened this issue Nov 13, 2023 · 6 comments
Assignees

Comments

@SugaMi
Copy link

SugaMi commented Nov 13, 2023

Which version of the AzCopy was used?

10.21.2

Note: The version is visible when running AzCopy without any argument

Which platform are you using? (ex: Windows, Mac, Linux)

Windows

What command did you run?

azcopy.exe copy "https://.blob.core.windows.net/nfs/sample?sp=racwdymeop&st=2023-11-13T06:06:13Z&se=2023-11-13T14:06:13Z&spr=https&sv=2022-11-02&sr=b&sig=" "https://.blob.core.windows.net/copytest?sp=racwdli&st=2023-11-13T06:06:51Z&se=2023-11-13T14:06:51Z&spr=https&sv=2022-11-02&sr=c&sig="

Note: Please remove the SAS to avoid exposing your credentials. If you cannot remember the exact command, please retrieve it from the beginning of the log file.

What problem was encountered?

I cannot copy Cold tier blob to another Storage Account.

Accept: application/xml
   Content-Length: 0
   User-Agent: AzCopy/10.21.2 azsdk-go-azblob/v1.1.0 (go1.19.12; Windows_NT)
   X-Ms-Client-Request-Id: 8781ed33-667b-4aa3-47ae-aa9f436f8b5b
   x-ms-access-tier: 
   x-ms-blob-cache-control: 
   x-ms-blob-content-disposition: 
   x-ms-blob-content-encoding: 
   x-ms-blob-content-language: 
   x-ms-blob-content-md5: 
   x-ms-blob-content-type: 
   x-ms-blob-type: 
   x-ms-copy-source: 
   x-ms-version: 
   --------------------------------------------------------------------------------
   RESPONSE Status: 400 The value for one of the HTTP headers is not in the correct format.
   Content-Length: 326
   Content-Type: application/xml
   Date: Mon, 13 Nov 2023 06:07:24 GMT
   Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
   X-Ms-Client-Request-Id: 8781ed33-667b-4aa3-47ae-aa9f436f8b5b
   X-Ms-Error-Code: InvalidHeaderValue
   X-Ms-Request-Id: 91683045-e01e-003f-30f7-159b56000000
   X-Ms-Version: 2020-10-02
Response Details: <Code>InvalidHeaderValue</Code><Message>The value for one of the HTTP headers is not in the correct format. </Message><HeaderName>x-ms-access-tier</HeaderName><HeaderValue>Cold</HeaderValue>

I think this Go SDK version doesn't support Cold tier.
v1.2.0 supports Cold tier.
https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/storage/azblob/CHANGELOG.md#120-2023-10-11

How can we reproduce the problem in the simplest way?

Upload blob as Cold tier and copy this blob to another Storage

Have you found a mitigation/solution?

AzCopy should update Go SDK.

@gapra-msft
Copy link
Member

Hi @SugaMi

This is a known issue and should be resolved by our next release (10.22.0) at the end of the month.

If you'd like, we already have a preview version out (10.22.0-Preview) that you can download and use. Link here.

@SugaMi
Copy link
Author

SugaMi commented Nov 14, 2023

Hi @gapra-msft

Thank you for sending info.
I copied blob (Cold tier) using "10.22.0-Preview" but blob was stored as "Hot (Inferred)".

AzCopy log say

INFO: Destination could not accommodate the tier Cold. Going ahead with the default tier. In case of service to service transfer, consider setting the flag --s2s-preserve-access-tier=false.
100.0 %, 1 Done, 0 Failed, 0 Pending, 0 Skipped, 1 Total, 2-sec Throughput (Mb/s): 0.0001

Destination Storage Account is GPv2.
I think AzCopy should copy Cold tier blob.
Can we copy Cold tier blob ?

If AzCopy doesn't support Cold tier, Could you please update official Doc?

https://learn.microsoft.com/en-us/azure/storage/blobs/access-tiers-overview#cold-tier

image

@gapra-msft
Copy link
Member

@SugaMi

Thanks for reporting this issue, there may be a bug. So I can reproduce, are you just trying to copy a source blob that has tier Cold?

@gapra-msft
Copy link
Member

@SugaMi I have identified the issue and have created a PR to resolve it. This should be available in our next release.

@SugaMi
Copy link
Author

SugaMi commented Nov 15, 2023

Hi @gapra-msft

Thank you for checking my report and fixing this bug.
Yes. Source blob is Cold tier.

@gapra-msft
Copy link
Member

The 10.22.0 version was just released. Closing this issue as a result.

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

No branches or pull requests

2 participants