[chef] knife-vsphere permission denied


Chronological Thread 
  • From: < >
  • To:
  • Subject: [chef] knife-vsphere permission denied
  • Date: Mon, 16 Apr 2012 15:04:16 -0700 (PDT)

Hello Chefs! I hope one of you might have a little experience with the knife
vsphere plugin. It would be sooooooo cool to make this work in our environment
and make my bosses happy so they will pay me more money :D

So, the problem is: even though I have full admin privileges on the Datacenter
I'm trying to deploy to, when I run 'knife vsphere vm list', I get the
following output:

ERROR: RbVmomi::Fault: NoPermission: Permission to perform this operation was
denied.

full stack trace:

DEBUG: Using configuration from /home/miles/.chef/knife.rb
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/rbvmomi-1.2.3/lib/rbvmomi/connection.rb:47:in
`parse_response': NoPermission: Permission to perform this operation was
denied. (RbVmomi::Fault)
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/rbvmomi-1.2.3/lib/rbvmomi/connection.rb:71:in
`call'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/rbvmomi-1.2.3/lib/rbvmomi/basic_types.rb:182:in
`_call'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/rbvmomi-1.2.3/lib/rbvmomi/basic_types.rb:70:in
`block (2 levels) in init'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/rbvmomi-1.2.3/lib/rbvmomi/vim/Folder.rb:7:in
`find'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/rbvmomi-1.2.3/lib/rbvmomi/vim/Folder.rb:83:in
`traverse'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/rbvmomi-1.2.3/lib/rbvmomi/vim/ServiceInstance.rb:8:in
`find_datacenter'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/knife-vsphere-0.1.6/lib/chef/knife/BaseVsphereCommand.rb:101:in
`find_folder'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/knife-vsphere-0.1.6/lib/chef/knife/vsphere_vm_list.rb:50:in
`run'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/chef-0.10.8/lib/chef/knife.rb:391:in
`run_with_pretty_exceptions'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/chef-0.10.8/lib/chef/knife.rb:166:in
`run'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/chef-0.10.8/lib/chef/application/knife.rb:128:in
`run'
        from
/home/miles/.rvm/gems/ruby-1.9.2-p318/gems/chef-0.10.8/bin/knife:25:in `<top
(required)>'
        from /home/miles/.rvm/gems/ruby-1.9.2-p318/bin/knife:19:in `load'
        from /home/miles/.rvm/gems/ruby-1.9.2-p318/bin/knife:19:in `<main>'

My knife.rb vsphere values:

knife[:vsphere_host] = "10.10.0.4"
knife[:vsphere_user] = "miles"
knife[:vsphere_pass] = "foo"
knife[:vsphere_dc] = "Labs"

If I comment out the vsphere_dc option in my knife.rb and run knife vsphere vm
list again, it *works*, but selects the first datacenter it finds on the
vsphere host, which of course is not the datacenter I want. If I enable
vsphere_dc again and use a random value, it comes back with the same 
permission
denied error, which leads me to believe that vsphere_dc should be in some
format that's not obvious. 

I have installed rvc and am able to connect to my vcenter server and list
datacenters, which appear named exactly as I have specified in knife.rb. Don't
know if this applicable or not.

That's where I'm stuck. Any help is appreciated. BTW I'm chef v0.10.8. Let me
know if you guys need any additional info.

Thanks yall!

-Miles Monteleone



Archive powered by MHonArc 2.6.16.

§