Skip to content

Issue with back-to-back invocations of the image-copy extension #149

Open

Description

  • If the issue is to do with Azure CLI 2.0 in-particular, create an issue here at Azure/azure-cli

Extension name (the extension in question)

image-copy extension

Description of issue (in as much detail as possible)


Multiple copy between the same src/dst region/image is unsuccesful.

I run the same image copy command, twice back to back and after the first run, the 2nd run always fails with the same issue irrespective of
a) the src/dst pair of regions
b) the dst being cleaned up before the 2nd run, so that the 2nd run looks like a fresh copy and not a replace.

root@prash-sf-home:/home/ubuntu# az image copy --source-resource-group "cbn-default" --source-object-name "cbn-base-image-copy-test" --target-location eastasia southeastasia centralus eastus eastus2 westus uksouth --target-resource-group "cbn-default" --cleanup --source-type vm
Getting os disk id of the source vm/image
Creating source snapshot
Getting sas url for the source snapshot
Creating resource group: image-copy-rg
Target location count: 7
Starting async process for all locations
eastus2 - Creating target storage account (can be slow sometimes)
southeastasia - Creating target storage account (can be slow sometimes)
eastus - Creating target storage account (can be slow sometimes)
eastasia - Creating target storage account (can be slow sometimes)
westus - Creating target storage account (can be slow sometimes)
centralus - Creating target storage account (can be slow sometimes)
uksouth - Creating target storage account (can be slow sometimes)
eastus2 - Creating container in the target storage account
eastasia - Creating container in the target storage account
uksouth - Creating container in the target storage account
southeastasia - Creating container in the target storage account
eastus2 - Copying blob to target storage account
eastasia - Copying blob to target storage account
uksouth - Copying blob to target storage account
southeastasia - Copying blob to target storage account
eastus2 - Copy progress: 0.0%
uksouth - Copy progress: 0.0%
eastasia - Copy progress: 0.0%
southeastasia - Copy progress: 0.0%
westus - Creating container in the target storage account
eastus - Creating container in the target storage account
centralus - Creating container in the target storage account
westus - Copying blob to target storage account
centralus - Copying blob to target storage account
eastus - Copying blob to target storage account
westus - Copy progress: 0.0%
centralus - Copy progress: 0.0%
eastus - Copy progress: 0.0%
westus - Copy progress: 0.1%
centralus - Copy progress: 0.1%
uksouth - Copy progress: 0.1%
eastasia - Copy progress: 0.1%
southeastasia - Copy progress: 0.1%
eastus2 - Copy progress: 0.1%
eastus - Copy progress: 0.1%
westus - Copy progress: 1.0%
westus - Copy time: 0:04:53.812894
westus - Creating snapshot in target region from the copied blob
westus - Creating final image
centralus - Copy progress: 1.0%
centralus - Copy time: 0:06:35.704296
centralus - Creating snapshot in target region from the copied blob
centralus - Creating final image
eastus - Copy progress: 1.0%
eastus - Copy time: 0:07:56.970567
eastus - Creating snapshot in target region from the copied blob
eastus2 - Copy progress: 1.0%
eastus - Creating final image
eastus2 - Copy time: 0:08:58.687965
eastus2 - Creating snapshot in target region from the copied blob
uksouth - Copy progress: 1.0%
eastasia - Copy progress: 1.0%
uksouth - Copy time: 0:09:19.071384
uksouth - Creating snapshot in target region from the copied blob
command failed: ['/opt/az/bin/python3', '-m', 'azure.cli', 'snapshot', 'create', '--resource-group', 'image-copy-rg', '--name', 'cbn-base-image-copy-test_os_disk_snapshot-uksouth', '--location', 'uksouth', '--source', 'https://uksouthe8d016f.blob.core.windows.net/snapshots/cbn-base-image-copy-test_os_disk_snapshot.vhd', '--output', 'json', '--tags', 'created_by=image-copy-extension']
output: ERROR: The source blob https://uksouthe8d016f.blob.core.windows.net/snapshots/cbn-base-image-copy-test_os_disk_snapshot.vhd is not accessible.

eastasia - Copy time: 0:09:28.489634
eastasia - Creating snapshot in target region from the copied blob
eastus2 - Creating final image
southeastasia - Copy progress: 1.0%
southeastasia - Copy time: 0:09:55.284068
southeastasia - Creating snapshot in target region from the copied blob
eastasia - Creating final image
southeastasia - Creating final image
Deleting transient resources

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

Metadata

Assignees

Labels

customer-reportedIssues that are reported by GitHub users external to the Azure organization.extension/image-copyfeature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions