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

panic: not implemented for type mo.ClusterComputeResource #1162

Closed
lamw opened this Issue Sep 3, 2014 · 4 comments

Comments

Projects
None yet
4 participants
@lamw
Copy link

lamw commented Sep 3, 2014

I have a vSphere 5.5 (vCenter + ESXi host) environment that has the following inventory structure:

screen shot 2014-09-03 at 4 38 24 pm

Here are the proper environmental variables:

GOVC_URL=https://root:vmware@vcsa.primp-industries.com/sdk
GOVC_DATASTORE=mini-local-datastore-1
GOVC_RESOURCE_POOL=MacMini-Cluster
GOVC_DATACENTER=MacMini-Datacenter

However, when I try to upload kube.vmdk, I get the following error+stack trace:

panic: not implemented for type mo.ClusterComputeResource

goroutine 16 [running]:
runtime.panic(0x5d6ee0, 0xc208139ba0)
    /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
github.com/vmware/govmomi/govc/flags/list.ToElement(0x12304b8, 0xc208011400, 0xc208147860, 0x18, 0x0, 0x0, 0x0, 0x0)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/list/lister.go:55 +0x3a5
github.com/vmware/govmomi/govc/flags/list.Lister.ListFolder(0xc208126000, 0xc208179ff8, 0x6, 0xc208138148, 0x8, 0xc208147860, 0x18, 0x0, 0x0, 0x0, ...)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/list/lister.go:159 +0x7a5
github.com/vmware/govmomi/govc/flags/list.Lister.List(0xc208126000, 0xc208179ff8, 0x6, 0xc208138148, 0x8, 0xc208147860, 0x18, 0x0, 0x0, 0x0, ...)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/list/lister.go:88 +0x220
github.com/vmware/govmomi/govc/flags/list.Recurser.Recurse(0xc208126000, 0x0, 0xc208147860, 0x18, 0x12300d8, 0xc208146100, 0xc2081710f0, 0x1, 0x1, 0x0, ...)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/list/recurser.go:63 +0x1d7
github.com/vmware/govmomi/govc/flags.(*ListFlag).List(0xc2080011c0, 0x7fff5fbfff3c, 0xf, 0x0, 0xc20818b4b8, 0x0, 0x0, 0x0, 0x0, 0x0)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/list.go:101 +0x557
github.com/vmware/govmomi/govc/flags.(*ResourcePoolFlag).findResourcePool(0xc20800f2f0, 0x7fff5fbfff3c, 0xf, 0x0, 0x0, 0x0, 0x0, 0x0)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/resource_pool.go:67 +0xd7
github.com/vmware/govmomi/govc/flags.(*ResourcePoolFlag).findSpecifiedResourcePool(0xc20800f2f0, 0x7fff5fbfff3c, 0xf, 0xc208154e70, 0x0, 0x0)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/resource_pool.go:93 +0x64
github.com/vmware/govmomi/govc/flags.(*ResourcePoolFlag).ResourcePool(0xc20800f2f0, 0xc208154e70, 0x0, 0x0)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/flags/resource_pool.go:137 +0xae
github.com/vmware/govmomi/govc/importx.(*vmdk).Run(0xc208084940, 0xc208004900, 0x0, 0x0)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/importx/vmdk.go:89 +0x2cf
github.com/vmware/govmomi/govc/cli.Run(0xc20800e010, 0x2, 0x2, 0x122dfb8)
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/cli/command.go:151 +0x70b
main.main()
    /Users/lamw/src/go/src/github.com/vmware/govmomi/govc/main.go:36 +0x69

goroutine 19 [finalizer wait]:
runtime.park(0x14310, 0x1059918, 0x10583e9)
    /usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x1059918, 0x10583e9)
    /usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
    /usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 17 [syscall]:
runtime.goexit()
    /usr/local/go/src/pkg/runtime/proc.c:1445

goroutine 22 [runnable]:
net/http.(*persistConn).readLoop(0xc20804e6e0)
    /usr/local/go/src/pkg/net/http/transport.go:868 +0x829
created by net/http.(*Transport).dialConn
    /usr/local/go/src/pkg/net/http/transport.go:600 +0x93f

goroutine 23 [select]:
net/http.(*persistConn).writeLoop(0xc20804e6e0)
    /usr/local/go/src/pkg/net/http/transport.go:885 +0x38f
created by net/http.(*Transport).dialConn
    /usr/local/go/src/pkg/net/http/transport.go:601 +0x957

I've tried various other inventory structure ESXi host w/RP, RP at Datacenter level and they all continue to fail searching for Resource Pool, I'm wondering if there's a particular setup that the current version? only supports?

@dchen1107

This comment has been minimized.

Copy link
Member

dchen1107 commented Sep 4, 2014

@pietern Could you please shed some light on this issue?

@pietern

This comment has been minimized.

Copy link
Contributor

pietern commented Sep 4, 2014

This is a govmomi issue, we'll take care of it there. @lamw sending you an email about this.

@bgrant0607 bgrant0607 added bug and removed help wanted labels Sep 5, 2014

@pietern

This comment has been minimized.

Copy link
Contributor

pietern commented Sep 5, 2014

This should be solved by vmware/govmomi@4a533b2.

Issue can be closed.

@dchen1107

This comment has been minimized.

Copy link
Member

dchen1107 commented Sep 5, 2014

@pietern Thanks for updates.

@dchen1107 dchen1107 closed this Sep 5, 2014

vishh added a commit to vishh/kubernetes that referenced this issue Apr 6, 2016

Merge pull request kubernetes#1162 from ericchiang/cleanup_godeps
Godeps: revendor packags with more up-to-date godep version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.