Reviving this thread, since it seems like the closest match to the issue i
am seeing.
Running packer 1.4.2 on an ubuntu machine (invoked through a jenkins job,
not through the packer plugin on jenkins, but through a shell invocation).
Running azure builder and tried to use shared image gallery replication for
all available regions and i run into the following issue -:
On a side note,
Does SIG image name really mean SIG image definition ?
Is there a way to stipulate how many replications we want, per region for
this image (the --replica-count argument in the azure CLI command for
shared image galleries).
[1;36m==> azure: Capturing image ... [0m
[1;36m==> azure: -> Compute ResourceGroupName :
'temp-image-resource-group-215' [0m
[1;36m==> azure: -> Compute Name : 'cbn-img-215' [0m
[1;36m==> azure: -> Compute Location : 'West US' [0m
[1;36m==> azure: -> Image ResourceGroupName : 'cbn-base-image' [0m
[1;36m==> azure: -> Image Name : 'test-cbn-base-image-215' [0m
[1;36m==> azure: -> Image Location : 'westus' [0m
[1;36m==> azure: Publishing to Shared Image Gallery ... [0m
[1;36m==> azure: -> MDI ID used for SIG publish :
'/subscriptions/****/resourceGroups/cbn-base-image/providers/Microsoft.Compute/images/test-cbn-base-image-215'
[0m
[1;36m==> azure: -> SIG publish resource group : 'cbn-shared-images' [0m
[1;36m==> azure: -> SIG gallery name : 'cbnGallery' [0m
[1;36m==> azure: -> SIG image name : 'cbn-base-beta' [0m
[1;36m==> azure: -> SIG image version : '0.0.215' [0m
[1;36m==> azure: -> SIG replication regions : '[eastus eastus2 westus
westeurope eastasia southeastasia japaneast japanwest northcentralus
southcentralus centralus northeurope brazilsouth australiaeast
australiasoutheast southindia centralindia westindia canadaeast canadacentral
westus2 westcentralus uksouth ukwest koreacentral koreasouth francecentral
southafricanorth]' [0m
[1;36m==> azure: [0m
[1;31m==> azure: Future#WaitForCompletion: context has been cancelled:
StatusCode=200 -- Original Error: context deadline exceeded [0m
[1;36m==> azure:
==> azure: Cleanup requested, deleting resource group ... [0m
[1;36m==> azure: Resource group has been deleted. [0m
[1;31mBuild 'azure' errored: Future#WaitForCompletion: context has been
cancelled: StatusCode=200 -- Original Error: context deadline exceeded [0m
==> Some builds didn't complete successfully and had errors:
--> azure: Future#WaitForCompletion: context has been cancelled: StatusCode=200
-- Original Error: context deadline exceeded
JSON file -:
{
"name":"azure",
"client_id": "{{user `az_client_id`}}",
"client_secret": "{{user `az_client_secret`}}",
"subscription_id": "{{user `az_subscription_id`}}",
"image_offer": "UbuntuServer",
"image_publisher": "Canonical",
"image_sku": "18.04-LTS",
"image_version": "18.04.201810030",
"location": "West US",
"os_type": "Linux",
"type": "azure-arm",
"vm_size": "Standard_F16s_v2",
"shared_image_gallery_destination": {
"resource_group": "{{user `az_shrd_resource_group`}}",
"gallery_name": "{{user `az_shrd_gallery_name`}}",
"image_name": "{{user `az_shrd_gallery_img_dfn`}}",
"image_version": "0.0.{{user `build_number`}}",
"replication_regions":
["eastus","eastus2","westus","westeurope","eastasia","southeastasia","japaneast","japanwest","northcentralus","southcentralus","centralus","northeurope","brazilsouth","australiaeast","australiasoutheast","southindia","centralindia","westindia","canadaeast","canadacentral","westus2","westcentralus","uksouth","ukwest","koreacentral","koreasouth","francecentral","southafricanorth"]
},
"managed_image_name": "test-cbn-base-image-{{user `build_number`}}",
"managed_image_resource_group_name": "{{user `az_resource_group`}}",
"temp_compute_name" : "{{user `cbn_image_name`}}",
"temp_resource_group_name" : "{{user `temp_az_resource_group`}}",
"os_disk_size_gb" : 64
},
On Monday, October 15, 2018 at 1:56:57 PM UTC-7, Alvaro Miranda Aguilera
wrote:
>
> Hello
>
> Can you provide more context?
>
> what do you mean by resource group deployment?
>
> alvaro
>
> On Fri, Oct 12, 2018 at 1:08 AM goffries <[email protected] <javascript:>>
> wrote:
>
>> I'm starting to see the below error with the azure builder. Is there a
>> way to increase the timeout during the resource group deployment?
>>
>> ==> azure-arm: Future#WaitForCompletion: context has been cancelled:
>> StatusCode=200 -- Original Error: context deadline exceeded
>> ==> azure-arm: Future#WaitForCompletion: context has been cancelled:
>> StatusCode=200 -- Original Error: context deadline exceeded
>>
>> --
>> This mailing list is governed under the HashiCorp Community Guidelines -
>> https://www.hashicorp.com/community-guidelines.html. Behavior in
>> violation of those guidelines may result in your removal from this mailing
>> list.
>>
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/packer-tool/6e541aff-cb32-4b42-bf0e-deedbcdd9242%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/packer-tool/6e541aff-cb32-4b42-bf0e-deedbcdd9242%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Alvaro
>
>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/87fdb9b7-174f-49f3-9597-4271aeac035d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.