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

vsphere_virtual_machine portgroup lookup by key returned nil result for DVS UUID #479

Closed
Koleon opened this issue Apr 16, 2018 · 2 comments

Comments

@Koleon
Copy link

Koleon commented Apr 16, 2018

Hey there,
regarding issue #456 I compiled terraform-provider-vsphere with golang 1.10.1 against the branch in the PR #471 and thanks to @vancluever I got DVS UUID and portgroup. Unfortunately the deploy failed again. I still wonder how come it's deployable via different distro.

Terraform Version

$ tf -v
Terraform v0.11.7
+ provider.vsphere (unversioned)

vSphere Provider Version

$ tf providers
.
├── provider.terraform
└── provider.vsphere

Affected Resource(s)

Please list the resources as a list, for example:

  • vsphere_virtual_machine

Terraform Configuration Files

Please see previous issue #456

Expected Behavior

Deploy without problem.

Actual Behavior

$ tf apply

Error: Error applying plan:

2 error(s) occurred:

* vsphere_virtual_machine.ops_win7[0]: 1 error(s) occurred:

* vsphere_virtual_machine.ops_win7.0: network_interface.0: portgroup lookup by key returned nil result for DVS UUID "50 36 d2 92 e8 af e4 f6-9f c2 aa 9e a9 48 b2 95" and portgroup key "dvportgroup-1119"
* vsphere_virtual_machine.ops_win7[1]: 1 error(s) occurred:

* vsphere_virtual_machine.ops_win7.1: network_interface.0: portgroup lookup by key returned nil result for DVS UUID "50 36 d2 92 e8 af e4 f6-9f c2 aa 9e a9 48 b2 95" and portgroup key "dvportgroup-1119"

When I run terraform destory

$ tf destroy

Error: Error refreshing state: 1 error(s) occurred:

* vsphere_virtual_machine.ops_win7: 2 error(s) occurred:

* vsphere_virtual_machine.ops_win7[1]: vsphere_virtual_machine.ops_win7.1: network_interface.0: cannot find network device: invalid ID ""
* vsphere_virtual_machine.ops_win7[0]: vsphere_virtual_machine.ops_win7.0: network_interface.0: cannot find network device: invalid ID ""

Steps to Reproduce

  1. terraform apply

References

@Koleon
Copy link
Author

Koleon commented Apr 16, 2018

Alright, indeed the problem concern our template. So thanks again to @vancluever to help me with identification the VMs :) You can close this issue.

@vancluever
Copy link
Contributor

Thanks @Koleon! PS: master right now has some fixes for the broken state issue you got after this as well. 🙂

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

No branches or pull requests

2 participants