clstokes / terraform-ovh-openstack

Vagrant box to test OpenStack-based OVH Public Cloud Servers with Terraform.
8 stars 1 forks source link

Got error when trying to apply with actual public cloud #1

Open fredleger opened 7 years ago

fredleger commented 7 years ago

I gave it a try but get the following error:

openstack_compute_instance_v2.test: Creating...
  access_ip_v4:               "" => "<computed>"
  access_ip_v6:               "" => "<computed>"
  flavor_id:                  "" => "0e2b8841-d764-49b4-b2ac-24c8df2c6806"
  flavor_name:                "" => "<computed>"
  image_id:                   "" => "b0e68d0f-e963-44fb-b347-64d0214c3fa1"
  image_name:                 "" => "<computed>"
  key_pair:                   "" => "webofmars"
  metadata.%:                 "" => "2"
  metadata.key1:              "" => "value1"
  metadata.key2:              "" => "value2"
  name:                       "" => "test"
  network.#:                  "" => "<computed>"
  region:                     "" => "GRA1"
  security_groups.#:          "" => "1"
  security_groups.4002270276: "" => "ssh"
  stop_before_destroy:        "" => "false"
Error applying plan:

1 error(s) occurred:

* openstack_compute_instance_v2.test: Error creating OpenStack server: Invalid request due to incorrect syntax or missing required parameters.

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Any idea how this can be trace ? and how to make it work ?

Thxs

clstokes commented 7 years ago

You can enable debug logging by following the options at https://www.terraform.io/docs/internals/debugging.html.

On Thu, Feb 2, 2017 at 4:01 AM, Frederic Leger notifications@github.com wrote:

I gave it a try but get the following error:

openstack_compute_instance_v2.test: Creating... access_ip_v4: "" => "" access_ip_v6: "" => "" flavor_id: "" => "0e2b8841-d764-49b4-b2ac-24c8df2c6806" flavor_name: "" => "" image_id: "" => "b0e68d0f-e963-44fb-b347-64d0214c3fa1" image_name: "" => "" key_pair: "" => "webofmars" metadata.%: "" => "2" metadata.key1: "" => "value1" metadata.key2: "" => "value2" name: "" => "test" network.#: "" => "" region: "" => "GRA1" security_groups.#: "" => "1" security_groups.4002270276: "" => "ssh" stop_before_destroy: "" => "false" Error applying plan:

1 error(s) occurred:

  • openstack_compute_instance_v2.test: Error creating OpenStack server: Invalid request due to incorrect syntax or missing required parameters.

Terraform does not automatically rollback in the face of errors. Instead, your Terraform state file has been partially updated with any resources that successfully completed. Please address the error above and apply again to incrementally change your infrastructure.

Any idea how this can be trace ? and how to make it work ?

Thxs

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/clstokes/terraform-ovh-openstack/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAR7g1psUXOc_1_5P0Lu--8YZZ-KJ9BVks5rYcWCgaJpZM4L1Bmo .

fredleger commented 7 years ago

Tried this with TRACE level but i'm not able to understand where is the issue here :

* openstack_compute_instance_v2.test: Error creating OpenStack server: Invalid request due to incorrect syntax or missing required parameters.
2017/02/07 11:25:40 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:

* openstack_compute_instance_v2.test: Error creating OpenStack server: Invalid request due to incorrect syntax or missing required parameters.
2017/02/07 11:25:40 [TRACE] [walkApply] Exiting eval tree: openstack_compute_instance_v2.test
2017/02/07 11:25:40 [DEBUG] vertex "output.instance", got dep: "openstack_compute_instance_v2.test"
2017/02/07 11:25:40 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "output.instance"
2017/02/07 11:25:40 [DEBUG] vertex 'root.output.objectstorage_container': walking
2017/02/07 11:25:40 [DEBUG] vertex 'root.output.objectstorage_container': evaluating
2017/02/07 11:25:40 [TRACE] [walkApply] Entering eval tree: output.objectstorage_container
2017/02/07 11:25:40 [DEBUG] root: eval: *terraform.EvalOpFilter
2017/02/07 11:25:40 [DEBUG] root: eval: *terraform.EvalSequence
2017/02/07 11:25:40 [DEBUG] root: eval: *terraform.EvalWriteOutput
2017/02/07 11:25:40 [TRACE] [walkApply] Exiting eval tree: output.objectstorage_container
2017/02/07 11:25:40 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "output.objectstorage_container"
2017/02/07 11:25:40 [ERROR] Shadow graph error: 1 error(s) occurred:

* openstack_compute_instance_v2.test: Error creating OpenStack server: Invalid request due to incorrect syntax or missing required parameters.
2017/02/07 11:25:40 [TRACE] Preserving existing state lineage "59645e7b-e1ab-4830-a453-200644b19708"
2017/02/07 11:25:40 [TRACE] Preserving existing state lineage "59645e7b-e1ab-4830-a453-200644b19708"
2017/02/07 11:25:41 [DEBUG] plugin: waiting for all plugin processes to complete...
2017/02/07 11:25:41 [DEBUG] plugin: terraform: openstack-provider (internal) 2017/02/07 11:25:41 [DEBUG] plugin: waiting for all plugin processes to complete...
2017/02/07 11:25:41 [DEBUG] plugin: /opt/terraform/terraform: plugin process exited
clstokes commented 7 years ago

@fredleger I'm afraid there's not much to go in in the debug log. The error message from openstack refers to missing required parameters but doesn't indicate what's missing. It's possible the version of openstack you're using differs from the version I used when I put together this example.

Can your openstack administrator check the openstack server logs and see if they're more helpful?