Hi, On 24 August 2011 02:24, Robert Parrott <[email protected]> wrote: > 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?
Yes, it was unintended. It has been fixed in the master branch [1] and will be included in the next release. Thanks for your feedback. > > Thanks, > Rob Kind Regards. [1] http://dev.opennebula.org/projects/opennebula/repository/revisions/4ea2629a51d54ce53f934a2ee634f770cca49ac5/diff/src/cli/one_helper.rb > > -- > 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 > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > -- Daniel Molina, Cloud Technology Engineer/Researcher Major Contributor OpenNebula - The Open Source Toolkit for Cloud Computing www.OpenNebula.org | [email protected] _______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
