-
Notifications
You must be signed in to change notification settings - Fork 676
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
CRN token malformed in Region eu-de (Frankfurt 1) - CRN constructor issue when using non-us region? #1141
Comments
Can you please set region to eu-de-1 |
Hi, Thx for your help! `Error: Get https://eu-de-1.power-iaas.cloud.ibm.com/pcloud/v1/cloud-instances/f83b6038-b9a7-42a6-9500-6d458bbdd11e/networks/internal: dial tcp: lookup eu-de-1.power-iaas.cloud.ibm.com on xxxxxxx : no such host on main.tf line 8, in data "ibm_pi_network" "power_networks": Error: Get https://eu-de-1.power-iaas.cloud.ibm.com/pcloud/v1/cloud-instances/f83b6038-b9a7-42a6-9500-6d458bbdd11e/images/d8b5dff9-973b-4107-83d5-a705076ff6f0: dial tcp: lookup eu-de-1.power-iaas.cloud.ibm.com on xxxxxxxx no such host on main.tf line 14, in data "ibm_pi_image" "power_images": |
The error which we see is from the API even when I tried from CLI
I tried creating SSHKEY for the power virtual system of frankfurt 1 region
|
For the issues from API can you please open issue against PI |
Well, the error seems to be around this CRN constructor when using a multi-zone Region like Frankfort , right ? and the issue is in func crnBuilder(powerinstance, useraccount, region string) , which does not use the zone to build the Cloud Resource Number, which is very us-south / us-east centric and will be a problem sooner or later for customers in Europe or other Regions. |
we are looking into design how to handle the issue.We will update the design soon.. |
thx a lot for your support! |
Code update has been made.. |
We added a new provider argument zone to work for multi-zone . Specify the zone parameter if the region support multi-zone |
Thanks very much , it works now using the latest version of the Provider (I pulled it from the source) - in us-south (single zone regions) and Frankfurt (multi-zone regions) . In my test, I set the regions from a variables.tf file :
Problem Solved. |
Hi there,
Here is the description of the experienced issue: I can't create a new Power Virtual Server virtual instance (VM) from Terraform/CAM when pointing to eu-de , Frankfurt 1 (works ok in us-south) , receiving the following error when running terraform plan:
"{"description":"an error has occurred; please try again: unable to get admin image instance: unable to get new image instance: unable to get provider client: provider client does not exist or does not have any credentials registered","error":"internal server error"}"
The crn generated (based on the Region and Location , I suppose) by the provider should contain eu-de-1/xxxx , but it contains eu-de/xxx which generates the error above. (note the -1 , dash one at the end, for Frankfurt 1 location)
CRN constructor generated (KO) : crn:v1:bluemix:public:power-iaas:eu-de:a/45d319a
CRN to be generated instead (Frankfurt 1) : crn:v1:bluemix:public:power-iaas:eu-de:a-1/45d319a
CRN to be generated instead (Frankfurt 2) : crn:v1:bluemix:public:power-iaas:eu-de:a-2/45d319a
This statement concerns my environment & IBM Cloud Account. Note that for eu-de , Frankfurt 2 , the crn should contains -2 (dash 2) , based on my environment (please check :) )
Terraform Version
terraform --version
Terraform v0.12.19
Affected Resource(s)
Terraform Configuration Files
Debug Output
Expected Behavior
What should have happened?
Actual Behavior
Fail to provision a pi_instance in region eu-de , even with export IC_REGION=eu-de
Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered: