Skip to content

Instantly share code, notes, and snippets.

@mkuzmin
Created February 14, 2015 22:17
Show Gist options
  • Save mkuzmin/271854fe3e7765599d09 to your computer and use it in GitHub Desktop.
Save mkuzmin/271854fe3e7765599d09 to your computer and use it in GitHub Desktop.
<no state> in CheckDestroy function
=== RUN TestProvider
--- PASS: TestProvider (0.00s)
=== RUN TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN TestAccVirtualMachine_basic
2015/02/15 00:43:44 [WARN] Test: Executing step 0
2015/02/15 00:43:44 [DEBUG] Creating graph for path: [root]
2015/02/15 00:43:44 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/15 00:43:44 [INFO] Validating provider: vsphere
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:43:44 [INFO] Validating resource: vsphere_virtual_machine.app
2015/02/15 00:43:44 [DEBUG] Creating graph for path: [root]
2015/02/15 00:43:44 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/15 00:43:44 [INFO] Configuring provider: vsphere
2015/02/15 00:43:44 [INFO] vSphere Client configured
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:43:44 [INFO] Module root walking: vsphere_virtual_machine.app (Graph node: vsphere_virtual_machine.app)
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: Not refreshing, ID is empty
2015/02/15 00:43:44 [DEBUG] Creating graph for path: [root]
2015/02/15 00:43:44 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/15 00:43:44 [INFO] Configuring provider: vsphere
2015/02/15 00:43:44 [INFO] vSphere Client configured
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:43:44 [INFO] Module root walking: vsphere_virtual_machine.app (Graph node: vsphere_virtual_machine.app)
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: Executing diff
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: Diff: &terraform.InstanceDiff{Attributes:map[string]*terraform.ResourceAttrDiff{"id":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:true, Type:0x2}, "power_on":*terraform.ResourceAttrDiff{Old:"", New:"1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "ip_address":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "datacenter":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "cpus":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "host":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "resource_pool":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "folder":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "memory":*terraform.ResourceAttrDiff{Old:"", New:"", NewComputed:true, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "name":*terraform.ResourceAttrDiff{Old:"", New:"basic-1", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "image":*terraform.ResourceAttrDiff{Old:"", New:"basic", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}, "linked_clone":*terraform.ResourceAttrDiff{Old:"", New:"0", NewComputed:false, NewRemoved:false, NewExtra:interface {}(nil), RequiresNew:false, Type:0x0}}, Destroy:false, DestroyTainted:false}
2015/02/15 00:43:44 [WARN] Test: Step plan: DIFF:
CREATE: vsphere_virtual_machine.app
cpus: "" => "<computed>"
datacenter: "" => "<computed>"
folder: "" => "<computed>"
host: "" => "<computed>"
image: "" => "basic"
ip_address: "" => "<computed>"
linked_clone: "" => "0"
memory: "" => "<computed>"
name: "" => "basic-1"
power_on: "" => "1"
resource_pool: "" => "<computed>"
STATE:
<no state>
2015/02/15 00:43:44 [INFO] Apply walk starting
2015/02/15 00:43:44 [DEBUG] Creating graph for path: [root]
2015/02/15 00:43:44 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/15 00:43:44 [INFO] Configuring provider: vsphere
2015/02/15 00:43:44 [INFO] vSphere Client configured
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:43:44 [INFO] Module root walking: vsphere_virtual_machine.app (Graph node: vsphere_virtual_machine.app)
2015/02/15 00:43:44 [DEBUG] vsphere_virtual_machine.app: Executing Apply
2015/02/15 00:45:14 [INFO] Apply walk complete
2015/02/15 00:45:14 [WARN] Test: Executing destroy step
2015/02/15 00:45:14 [DEBUG] Creating graph for path: [root]
2015/02/15 00:45:14 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/15 00:45:14 [INFO] Validating provider: vsphere
2015/02/15 00:45:14 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:45:14 [INFO] Validating resource: vsphere_virtual_machine.app
2015/02/15 00:45:14 [DEBUG] Creating graph for path: [root]
2015/02/15 00:45:14 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/15 00:45:14 [INFO] Configuring provider: vsphere
2015/02/15 00:45:15 [INFO] vSphere Client configured
2015/02/15 00:45:15 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:45:15 [INFO] Module root walking: vsphere_virtual_machine.app (Graph node: vsphere_virtual_machine.app)
2015/02/15 00:45:15 [DEBUG] Creating graph for path: [root]
2015/02/15 00:45:15 [DEBUG] Graph [root] created and valid. 3 nouns.
2015/02/15 00:45:15 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:45:15 [DEBUG] vsphere_virtual_machine.app: Making for destroy
2015/02/15 00:45:15 [WARN] Test: Step plan: DIFF:
DESTROY: vsphere_virtual_machine.app
STATE:
vsphere_virtual_machine.app:
ID = vm-141
cpus = 1
datacenter = DC
image = basic
ip_address = 172.20.160.50
linked_clone = false
memory = 512
name = basic-1
power_on = true
2015/02/15 00:45:15 [INFO] Apply walk starting
2015/02/15 00:45:15 [DEBUG] Creating graph for path: [root]
2015/02/15 00:45:15 [DEBUG] Graph [root] created and valid. 4 nouns.
2015/02/15 00:45:15 [INFO] Configuring provider: vsphere
2015/02/15 00:45:15 [INFO] vSphere Client configured
2015/02/15 00:45:15 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:45:15 [INFO] Module root walking: vsphere_virtual_machine.app (Graph node: vsphere_virtual_machine.app)
2015/02/15 00:45:15 [DEBUG] vsphere_virtual_machine.app: Executing Apply
2015/02/15 00:45:17 [DEBUG] vsphere_virtual_machine.app: expanding to count = 1
2015/02/15 00:45:17 [INFO] Module root walking: vsphere_virtual_machine.app (Graph node: vsphere_virtual_machine.app)
2015/02/15 00:45:17 [DEBUG] vsphere_virtual_machine.app: Diff is empty. Will not apply.
2015/02/15 00:45:17 [INFO] Apply walk complete
--- FAIL: TestAccVirtualMachine_basic (92.70s)
testing.go:142: Error destroying resource! WARNING: Dangling resources
may exist. The full state and error is shown below.
Error: Check failed: ####### <no state>
State: <no state>
FAIL
exit status 1
FAIL github.com/mkuzmin/terraform-vsphere 92.717s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment