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

Error creating vcd_network_routed #344

Closed
carmine73 opened this issue Oct 3, 2019 · 5 comments · Fixed by vmware/go-vcloud-director#249
Closed

Error creating vcd_network_routed #344

carmine73 opened this issue Oct 3, 2019 · 5 comments · Fixed by vmware/go-vcloud-director#249
Assignees

Comments

@carmine73
Copy link

Terraform Version (not yet released, download on 2019/10/02)

$ terraform -v
Terraform v0.12.9
+ provider.vcd v2.5.0

vCloud Version

8.20

Affected Resource(s)

  • vcd_network_routed

Terraform Configuration Files

resource "vcd_network_routed" "net3" {
    name = "training_test_1"
    edge_gateway = "${var.vcd_edge_1}"
    gateway = "172.16.3.1"
    netmask = "255.255.255.0"
    shared = true
    dns1 = "172.16.3.1"
    dns2 = "8.8.8.8"
    dns_suffix = "training.net"
}

Debug Output

2019/10/03 14:58:18 [ERROR] <root>: eval: *terraform.EvalApplyPost, err: Provider produced inconsistent result after apply: When applying changes to vcd_network_routed.net3, provider "vcd" produced an unexpected new value for was present, but now absent.

This is a bug in the provider, which should be reported in the provider's own issue tracker.
2019/10/03 14:58:18 [ERROR] <root>: eval: *terraform.EvalSequence, err: Provider produced inconsistent result after apply: When applying changes to vcd_network_routed.net3, provider "vcd" produced an unexpected new value for was present, but now absent.

Expected Behavior

The network is created

Actual Behavior

The network is created on vCloud but terraform stops with an error

Error: Provider produced inconsistent result after apply

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Notes

It works with

$ terraform -v
Terraform v0.12.9
+ provider.vcd v2.4.0

$ terraform apply
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # vcd_network_routed.net3 will be created
  + resource "vcd_network_routed" "net3" {
      + dns1         = "172.16.3.1"
      + dns2         = "8.8.8.8"
      + dns_suffix   = "training.net"
      + edge_gateway = "training_edge_1"
      + gateway      = "172.16.3.1"
      + href         = (known after apply)
      + id           = (known after apply)
      + name         = "training_test_1"
      + netmask      = "255.255.255.0"
      + shared       = true
    }

Plan: 1 to add, 0 to change, 0 to destroy.

vcd_network_routed.net3: Creating...
vcd_network_routed.net3: Still creating... [10s elapsed]
vcd_network_routed.net3: Still creating... [20s elapsed]
vcd_network_routed.net3: Creation complete after 24s [id=training_test_1]
@vbauzys
Copy link
Contributor

vbauzys commented Oct 3, 2019

@datacharmer
Copy link

Not a duplicate. This is the proper place to report such issue.
Issue #330 is a feature request

@vbauzys
Copy link
Contributor

vbauzys commented Oct 3, 2019

Yes, it's true - just there is reported the same issue.

@dataclouder
Copy link
Contributor

Please try again with 2.5 master. It should now work with 9.1 and beyond.

@carmine73
Copy link
Author

Tested with vCloud 8.20. It works!
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants