Terraform: resource openstack_compute_instance_v2 doesn't support import

Created on 23 Feb 2017  ยท  6Comments  ยท  Source: hashicorp/terraform

Terraform Version

Terraform v0.9.0-dev (89acb5811a25e59e6a9d55cf5a2429846e3b5982+CHANGES)

Affected Resource(s)

openstack_compute_instance_v2

Terraform Configuration Files

resource "openstack_compute_instance_v2" "test" {
  name = "test"
  image_id = "ubuntu"
  flavor_name = "m1.large"
  key_pair = "misko"
  availability_zone = "mz"
}

Expected Behavior

resource should be imported

Actual Behavior

Error importing: 1 error(s) occurred:

* import openstack_compute_instance_v2.test (id: 2a98121a-5ec0-4694-98f2-9aff75bc666c): resource openstack_compute_instance_v2 doesn't support import

Steps to Reproduce

  1. create the .tf file
  2. get an id of one existing instance
  3. terraform import openstack_compute_instance_v2.test
bug

Most helpful comment

@michalmedvecky I'm not sure how I missed this Issue. Sorry for the late reply.

This is correct: instances do not have the ability to be imported. They should be able to soon. There's an existing Issue/PR for this at #11379, so I'm going to close this issue. Please let me know if you have any questions, though. :)

All 6 comments

@michalmedvecky I'm not sure how I missed this Issue. Sorry for the late reply.

This is correct: instances do not have the ability to be imported. They should be able to soon. There's an existing Issue/PR for this at #11379, so I'm going to close this issue. Please let me know if you have any questions, though. :)

@jtopjian Any update on this? Let me know if there is anything I can do to get this going.

@akitada Now that floating IPs and volumes have been deprecated, it should be possible to start working on this. It's just that those two pieces won't be supported. Reading in the networks is going to be the next hurdle since there isn't an easy way to obtain a network UUID from the instance's information alone. I do not want to mix in a Neutron client into the instance resource at this time, so it'll be interesting to see how difficult this is.

I've been a bit busy at work lately but hope to dedicate some time to getting caught up with the queue of feature requests soon. If you'd like to give this a try, by all means go for it. I'd be happy to answer any questions you have :)

Re-opening since the referenced PR couldn't get merged.

This issue has been automatically migrated to terraform-providers/terraform-provider-openstack#121 because it looks like an issue with that provider. If you believe this is _not_ an issue with the provider, please reply to this issue and let us know.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

franklinwise picture franklinwise  ยท  3Comments

ketzacoatl picture ketzacoatl  ยท  3Comments

carl-youngblood picture carl-youngblood  ยท  3Comments

jrnt30 picture jrnt30  ยท  3Comments

thebenwaters picture thebenwaters  ยท  3Comments