[one-users] Unintended stacktrace on oneuser command

Robert Parrott parrott at seas.harvard.edu
Tue Aug 23 17:24:33 PDT 2011


Hi  Folks,

I'm seeing a stacktrace on the "oneuser" command when (1) the invoking
user does not have oneadmin privileges and (2) the command invoked is
"show" and the desired user is called by username and not id.

I.e. I'm seeing the command

  $ oneuser show parrott

throw a stacktrace like this.

  /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/one_helper.rb:308:in
`get_pool': undefined method `rname' for
#<OneUserHelper:0x2ad9d088b060> (NoMethodError)
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/one_helper.rb:176:in
`to_id'
        from /software/linux/x86_64/opennebula-2.9.xx/bin/oneuser:72
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:362:in
`call'
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:362:in
`check_args!'
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:352:in
`each'
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:352:in
`check_args!'
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:330:in
`collect!'
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:330:in
`check_args!'
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:170:in
`run'
        from /software/linux/x86_64/opennebula-2.9.xx/lib/ruby/cli/command_parser.rb:79:in
`initialize'
        from /software/linux/x86_64/opennebula-2.9.xx/bin/oneuser:33:in `new'
        from /software/linux/x86_64/opennebula-2.9.xx/bin/oneuser:33

If instead I use the user id to query, it works fine.

  $ oneuser show 8

I expect that this behavior is unintended?

Thanks,
Rob

-- 
Robert E. Parrott, Ph.D. (Phys. '06)
Director, Academic Computing
Harvard University Sch. of Eng. and App. Sci.
Maxwell-Dworkin  211,
33 Oxford St.
Cambridge, MA 02138
(617)-496-1520



More information about the Users mailing list