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

How to import resource on a openstack provider with multiple region ? #9054

Closed
xtero opened this issue Sep 26, 2016 · 3 comments · Fixed by #10509
Closed

How to import resource on a openstack provider with multiple region ? #9054

xtero opened this issue Sep 26, 2016 · 3 comments · Fixed by #10509
Labels

Comments

@xtero
Copy link

xtero commented Sep 26, 2016

Terraform Version

0.7.4

Affected Resource(s)

  • any importable openstack resources

Terraform Configuration Files

No configuration file

Debug Output

https://gist.github.com/xtero/d048e6b0235a13ea8622eb197781883e

Panic Output

N.A

Expected Behavior

In my environment, I have set the varibale OS_REGION_NAME to "fr1".
So during the import, I expect terraform to filter endpoint based on this value.

Actual Behavior

Nothing is filtered. And I end up with 2 endpoint instead of one

Steps to Reproduce

  1. We need to have at least 2 region with endpoint for each region for the same component.
  2. We have to defined tenant variables :
OS_REGION_NAME=fr1
OS_PASSWORD=123
OS_AUTH_URL=https://identity.fr1.cloudwatt.com/v2.0/
OS_USERNAME=toto
OS_TENANT_NAME=My_tenant
  1. The problem occure when we run something like :
$ terraform import openstack_networking_network_v2.any_name any-id-goes-here
  1. We got the following error message : "Error creating OpenStack networking client: Discovered 2 matching endpoints"

Important Factoids

We are using a public cloud based on Openstack that provide 2 regions "fr1" and "fr2".

References

@lklepner
Copy link

lklepner commented Dec 2, 2016

I'm experiencing the same problem. Have you found a solution to this?

@jtopjian
Copy link
Contributor

jtopjian commented Dec 2, 2016

I'm sorry for the late response on this one.

I've just submitted #10509 which should fix this problem. If you're able to build Terraform from source, please do try it out and let me know the result. :)

@ghost
Copy link

ghost commented Apr 19, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants