Bug #2702

CLI with X.509 authN requires the ONE_AUTH file

Added by Boris Parak over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:01/30/2014
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:CLI
Target version:Release 4.6
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.4

Description

CLI requires the ONE_AUTH file even though the X.509 authN has been selected. Its contents doesn't matter (i.e., it could be empty) but it has to be there.

oneuser login user --x509 --cert my_cert.pem --key my_key.pem
/home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-4.4.0/lib/opennebula/client.rb:76:in `initialize': ONE_AUTH file not present (RuntimeError)
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/lib/one_helper.rb:289:in `new'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/lib/one_helper.rb:289:in `get_client'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/lib/one_helper.rb:333:in `set_client'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/bin/oneuser:43:in `block (2 levels) in <top (required)>'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/lib/command_parser.rb:445:in `call'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/lib/command_parser.rb:445:in `run'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/lib/command_parser.rb:76:in `initialize'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/bin/oneuser:36:in `new'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/gems/opennebula-cli-4.4.0/bin/oneuser:36:in `<top (required)>'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/bin/oneuser:23:in `load'
    from /home/user/.rvm/gems/ruby-2.0.0-p353/bin/oneuser:23:in `<main>'

Associated revisions

Revision 87287205
Added by Javi Fontan over 7 years ago

bug #2702: do not initialize client for oneuser login

Revision a327fcb8
Added by Javi Fontan over 7 years ago

bug #2702: do not initialize client for oneuser login

(cherry picked from commit 87287205dfbeba9fd11607200d48e8b70f4ba500)

History

#1 Updated by Ruben S. Montero over 7 years ago

  • Status changed from Pending to New
  • Target version set to Release 4.6

#2 Updated by Javi Fontan over 7 years ago

  • Status changed from New to Closed
  • Assignee set to Javi Fontan
  • Resolution set to fixed

Fixed in master and one-4.4

Also available in: Atom PDF