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

Storage locking on VM Smart Create #336

Closed
JasonRShaver opened this issue May 27, 2016 · 3 comments
Closed

Storage locking on VM Smart Create #336

JasonRShaver opened this issue May 27, 2016 · 3 comments
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute az vm/vmss/image/disk/snapshot
Milestone

Comments

@JasonRShaver
Copy link
Contributor

I created a new, empty subscription and tried to follow our demo steps and ran into a number of issues relating to using an ARM template for deployment.

Example Error #1
Long running operation failed with status 'Failed' {
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see http://aka.ms/arm-debug for usage details.",
"details": [
{
"code": "Conflict",
"message": "{\r\n "error": {\r\n "code": "StorageAccountAlreadyTaken",\r\n "message": "The storage account named vhdstorageki7qdyzg6loo2 is already taken."\r\n }\r\n}"
}
]
}
]
}
}

Example Error #2
Long running operation failed with status 'Failed' {
"error": {
"code": "DeploymentActive",
"message": "Unable to edit or replace deployment 'demo100vmNicIp': previous deployment from '5/27/2016 3:49:49 PM' is still active (expiration time is '6/3/2016 3:49:47 PM'). Please see http://aka.ms/arm-deploy for usage details."
}
}

@yugangw-msft
Copy link
Contributor

@BurtBiel, does our VM creating guarantee the the uniqueness of the storage account? If we don't, then we should detect the conflicts and come out a better name. Imo, we should not fail though, also to let people read deployment result to figure out the cause is not optimal.

@BurtBiel
Copy link
Contributor

BurtBiel commented May 31, 2016

The first example is a bad error message. This happens when you deploy a VM with different settings over the top of an old one. It could also be that the storage account it locked in Azure. I added a work item earlier that we should warn if a resource already exists, but there's nothing we can do about this case other than that.

Example 2 looks like the same VM was deployed multiple times. If the first command was cancelled and a second one was issued, you'll see this error because the previous deployment will continue until completion in the cloud. There is also nothing we can do about this besides checking all the deployment names in client-side code (duplicating the server-side code) and try to stop if any of them are still running. With unique naming of the VM however, this should never happen.

@yugangw-msft
@JasonRShaver, let me know if there are specific repro steps that you think should work in these scenarios but show errors instead.

@BurtBiel BurtBiel changed the title Non-reliable Thick-clients Storage locking on VM Smart Create Jun 10, 2016
@JasonRShaver JasonRShaver added bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute az vm/vmss/image/disk/snapshot and removed question labels Aug 3, 2016
@JasonRShaver JasonRShaver added this to the Backlog milestone Aug 3, 2016
@JasonRShaver JasonRShaver added the Service Attention This issue is responsible by Azure service team. label Aug 4, 2016
@yugangw-msft
Copy link
Contributor

Nothing left to do

@haroldrandom haroldrandom added bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute az vm/vmss/image/disk/snapshot ServiceAttn labels Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute az vm/vmss/image/disk/snapshot
Projects
None yet
Development

No branches or pull requests

4 participants