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

Facing below error while creating VM from the image created #10054

Closed
2 of 14 tasks
sagarshitole01 opened this issue Jun 12, 2024 · 7 comments
Closed
2 of 14 tasks

Facing below error while creating VM from the image created #10054

sagarshitole01 opened this issue Jun 12, 2024 · 7 comments

Comments

@sagarshitole01
Copy link

Description

Facing below error while creating VM from the image created

"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."

I am using below script for creating image
Import-Module $(System.DefaultWorkingDirectory)/_actions_runner-images/helpers/GenerateResourcesAndImage.ps1
GenerateResourcesAndImage -SubscriptionId $(SubscriptionId) -ResourceGroupName "$(ResourceGroupName)" -ImageGenerationRepositoryRoot "$(System.DefaultWorkingDirectory)/_actions_runner-images" -ImageType $(ImageType) -AzureLocation "$(AzureLocation)" -AzureClientId $(AzureClientId) -AzureClientSecret $(AzureClientSecret) -AzureTenantId $(AzureTenantId) -Force

and below script to add image version under image definition
az sig image-version create --resource-group $(DestinationResourceGroupName) --gallery-name $(GalleryName) --gallery-image-definition $(GalleryImageDefinitionName) --gallery-image-version $(GalleryImageVersionName) --managed-image $(ManagedImage) --target-regions $(GalleryImageDefinitionLocation)

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

[RELEASE_ARTIFACTS__ACTIONS_RUNNER-IMAGES_SOURCEVERSION] --> [25c57a1]

Is it regression?

NA

Expected behavior

VM is created without any errors attached

Actual behavior

Facing error when trying to create VM in azure portal using the image generated "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."

Repro steps

Step1:
Import-Module $(System.DefaultWorkingDirectory)/_actions_runner-images/helpers/GenerateResourcesAndImage.ps1
GenerateResourcesAndImage -SubscriptionId $(SubscriptionId) -ResourceGroupName "$(ResourceGroupName)" -ImageGenerationRepositoryRoot "$(System.DefaultWorkingDirectory)/_actions_runner-images" -ImageType $(ImageType) -AzureLocation "$(AzureLocation)" -AzureClientId $(AzureClientId) -AzureClientSecret $(AzureClientSecret) -AzureTenantId $(AzureTenantId) -Force

Step2:
az sig image-version create --resource-group $(DestinationResourceGroupName) --gallery-name $(GalleryName) --gallery-image-definition $(GalleryImageDefinitionName) --gallery-image-version $(GalleryImageVersionName) --managed-image $(ManagedImage) --target-regions $(GalleryImageDefinitionLocation)

Step3:
In azure portal I am trying to create a VM from the image generated in our compute image gallery

@hemanthmanga
Copy link

Hi @sagarshitole01,
Could you please share the error logs to investigate further, it would be great if you could provide us.

@sagarshitole01
Copy link
Author

sagarshitole01 commented Jun 13, 2024

{
"code": "DeploymentFailed",
"target": "/",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
"details": [
{
"code": "ResourceDeploymentFailure",
"target": "/",
"message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."
}
]
}

{"code":"OSProvisioningTimedOut","message":"OS Provisioning for VM 'eheu2pd1epvmtestonly' did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning state later. Also, make sure the image has been properly prepared (generalized).\r\n * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ \r\n * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ \r\n * If you are deploying more than 20 Virtual Machines concurrently, consider moving your custom image to shared image gallery. Please refer to https://aka.ms/movetosig for the same."}

@hemanthmanga
Copy link

@sagarshitole01 Please share packer file and complete log file to understand your issue.

@sagarshitole01
Copy link
Author

ReleaseLogs_1151 (1).zip

above are the image creation logs
and for VM creation I am not using any pipeline, I am creating it directly from portal manually, so no any log file is generating and I am not referring to any packer file

@hemanthmanga
Copy link

@hemanthmanga
Copy link

@sagarshitole01 could you please provide your comments.

@hemanthmanga
Copy link

hemanthmanga commented Jun 27, 2024

Hi @sagarshitole01 we tried to follow-up for your response, hopefully issue got resolved with provided instructions. We are closing the issue as of now, Thanks.

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