OpenNebula - vCenter 6.5 user authentication issue

Hi everyone - I’m trying to import my vCenter into OpenNebula, and it fails to authenticate my vsphere.local user that I had created for access. I’ve tried just the username by itself, as user@vsphere.local and also vsphere.local\user, but all of them fail. I’m curious to understand what I’m missing so that I can get the import done.

Thanks!

Are you using CLI? what kind of resource are u trying to import?
Try it again using cli, 4 example:

$ onevcenter hosts --vcenter <your.vcenter.server> --vuser youruser@vsphere.local --vpass

Would be nice if u can put here the result.

Hey @Semedi - I was trying to import my vCenter environment. It did fail again, result is below for reference:

onevcenter hosts --vcenter vcenter.ciscocollabguru.com --vuser oneadmin@vsphere.local --vpass

Connecting to vCenter: vcenter…done!

Exploring vCenter resources… Error: [one.clusterpool.info] User couldn’t be authenticated, aborting call./
["/usr/lib/one/ruby/vcenter_driver/vi_helper.rb:15:in return_if_error'", "/usr/lib/one/ruby/vcenter_driver/vi_helper.rb:43:inone_pool’", “/usr/lib/one/ruby/vcenter_driver/importer.rb:132:in import_clusters'", "/usr/bin/onevcenter:113:inblock (2 levels) in '”, “/usr/lib/one/ruby/cli/command_parser.rb:449:in call'", "/usr/lib/one/ruby/cli/command_parser.rb:449:inrun’”, “/usr/lib/one/ruby/cli/command_parser.rb:76:in initialize'", "/usr/bin/onevcenter:57:innew’”, “/usr/bin/onevcenter:57:in `’”]

Appreciate any insight you can share on this.

mmmm it seems that you are facing troubles with the authentication of opennebula.

What opennebula user are using to perform this operation? remember that opennebula its session based so you will need a one user with enough permissions to perform some operations (oneadmin can do everything by default).

4 example if you try this using the root user of your machine opennebula will try to find the file .one/one_auth inside his home folder, if this file does not exist you’ll confront the same issue.

Ahh…that is interesting…I can’t remember how I was trying to run it…more than likely as root which could be the issue. I’ll give it a shot as oneadmin today and see if I can get it going that way.
Thanks!