Bug #2616

onegroup create crashes with malformed resource string

Added by Carlos Martín over 6 years ago. Updated about 6 years ago.

Status:ClosedStart date:01/10/2014
Priority:NormalDue date:
Assignee:Tino Vázquez% Done:

100%

Category:-
Target version:Release 4.6
Resolution:fixed Pull request:
Affected Versions:Development

Description

$ cat /tmp/t
name = abc
resources = VM+IMAGasdgE

$ onegroup create /tmp/t
/usr/lib/one/ruby/opennebula/acl.rb:105:in `allocate': wrong number of arguments (1 for 3) (ArgumentError)
    from /usr/lib/one/ruby/opennebula/group.rb:255:in `block in create_group_acls'
    from /usr/lib/one/ruby/opennebula/group.rb:253:in `each'
    from /usr/lib/one/ruby/opennebula/group.rb:253:in `create_group_acls'
    from /usr/lib/one/ruby/opennebula/group.rb:268:in `create_default_acls'
    from /usr/lib/one/ruby/opennebula/group.rb:103:in `create'
    from /usr/lib/one/ruby/cli/one_helper/onegroup_helper.rb:49:in `create_complete_resource'
    from /usr/bin/onegroup:121:in `block (2 levels) in <main>'
    from /usr/lib/one/ruby/cli/command_parser.rb:449:in `call'
    from /usr/lib/one/ruby/cli/command_parser.rb:449:in `run'
    from /usr/lib/one/ruby/cli/command_parser.rb:76:in `initialize'
    from /usr/bin/onegroup:33:in `new'
    from /usr/bin/onegroup:33:in `<main>'

Associated revisions

Revision 72012804
Added by Tino Vázquez about 6 years ago

Bug #2616: Fix for bad ACL format

History

#1 Updated by Tino Vázquez about 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
  • Resolution set to fixed

#2 Updated by Ruben S. Montero about 6 years ago

  • Project changed from VDC and Federation to OpenNebula
  • Category changed from Sunstone & CLI to 18
  • Target version set to Release 4.6
  • Affected Versions Development added

Also available in: Atom PDF