[one-users] oneuser key command failing

Daniel Molina dmolina at opennebula.org
Fri Jul 27 02:21:14 PDT 2012


Hi,

On 26 July 2012 01:41, Rogier Mars <rogier at fortytwo.nl> wrote:
> I just upgrade to opennebula 3.6 (from the rpm's for CentOS) and decided to give ssh authentication a try. While following the documentation the step to output the public key failed:
>
> [root at cloudcontroller1 rogierm]# oneuser key
> Enter PEM pass phrase:
> /usr/bin/oneuser:250: undefined method `public_key' for #<SshAuth:0x7ffc04405ff8> (NoMethodError)
>         from /usr/lib/one/ruby/cli/command_parser.rb:173:in `call'
>         from /usr/lib/one/ruby/cli/command_parser.rb:173:in `run'
>         from /usr/lib/one/ruby/cli/command_parser.rb:79:in `initialize'
>         from /usr/bin/oneuser:36:in `new'
>         from /usr/bin/oneuser:36
>
> I had a quick look at the code and method "public_key" that is referenced in oneuser line 250 does not exist in the file /usr/lib/one/ruby/ssh_auth.rb. There is a method password that seems to print the public key. I've changed line 250 in oneuser to the following:
>
> #        puts sshauth.public_key
>         puts sshauth.password
>
> When I run "oneuser key" now the correct public key is displayed.

Indeed, that is a bug. I have opened a bug to fix it:
http://dev.opennebula.org/issues/1396

Thanks for your feedback

-- 
Daniel Molina
Project Engineer
OpenNebula - The Open Source Solution for Data Center Virtualization
www.OpenNebula.org | dmolina at opennebula.org | @OpenNebula



More information about the Users mailing list