Packer in OCI Government

20 views
Skip to first unread message

twmc...@me.com

unread,
Mar 4, 2020, 5:33:02 PM3/4/20
to Packer

Looking for help with this bug. It is filed under hashicorp/packer #8842 (OCI Government Region Fails)



Overview of the Issue

I am working with Packer and using Oracle Government Cloud. oracle-oci builder calls https://iaas..oraclecloud.com/xxx which does not work for us-luke-1 and us-langley-1 regions. It needs to call https://iaas.region.oraclegovcloud.com/xxx. I cannot override this behavior even though the CLI will naturally call the right endpoint when the region is a Government region.

Reproduction Steps

Set "access_cfg_file_account" to profile that uses Oracle government cloud region.
packer build xxxx.json

Packer version

$ packer version
Packer v1.5.1

Simplified Packer Buildfile

"builders":[{
"access_cfg_file_account": "{{user cli_account}}",
"availability_domain": "{{user availability_domain}}",
"base_image_ocid": "{{user base_image}}",
"compartment_ocid": "{{user compartment_id}}",
"image_name": "ConsulServer",
"shape": "VM.Standard2.1",
"ssh_username": "opc",
"subnet_ocid": "{{user subnet_id}}",
"type": "oracle-oci"
}],

Operating system and Environment details

Windows 10.

Log Fragments and crash.log files

2020/03/04 14:48:07 packer.exe plugin: Serving a plugin connection...
2020/03/04 14:48:07 ui: oracle-oci: output will be in this color.
2020/03/04 14:48:07 ui:
2020/03/04 14:48:07 Build debug mode: false
2020/03/04 14:48:07 Force build: false
2020/03/04 14:48:07 On error:
2020/03/04 14:48:07 Preparing build: oracle-oci
2020/03/04 14:48:07 Waiting on builds to complete...
2020/03/04 14:48:07 Starting build run: oracle-oci
2020/03/04 14:48:07 Running builder: oracle-oci
2020/03/04 14:48:07 [INFO] (telemetry) Starting builder oracle-oci
2020/03/04 14:48:07 ui: ==> oracle-oci: Creating temporary ssh key for instance...
2020/03/04 14:48:07 ui: ==> oracle-oci: Creating instance...
2020/03/04 14:48:07 ui error: ==> oracle-oci: Problem creating instance: Post https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial tcp: lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
2020/03/04 14:48:07 [INFO] (telemetry) ending oracle-oci
2020/03/04 14:48:07 ui error: Build 'oracle-oci' errored: Problem creating instance: Post https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial tcp: lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
2020/03/04 14:48:07 machine readable: error-count []string{"1"}
2020/03/04 14:48:07 ui error:
==> Some builds didn't complete successfully and had errors:
2020/03/04 14:48:07 machine readable: oracle-oci,error []string{"Problem creating instance: Post https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial tcp: lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server."}
2020/03/04 14:48:07 ui error: --> oracle-oci: Problem creating instance: Post https://iaas.us-langley-1.oraclecloud.com/20160918/instances: dial tcp: lookup iaas.us-langley-1.oraclecloud.com: getaddrinfow: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server.
2020/03/04 14:48:07 ui:
==> Builds finished but no artifacts were created.

Rickard von Essen

unread,
Mar 5, 2020, 5:17:12 AM3/5/20
to packe...@googlegroups.com
If you have a key account manager at Oracle try contacting him/her since Oracle contributed and maintains this plugin. That might increase the visibility of your issue for them. 

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/6403ce20-7ef5-48df-b3ed-660b4f7ec3ea%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages