Bug 733430 - qmf-tool exception when "list packages" is executed before "list agents"
Summary: qmf-tool exception when "list packages" is executed before "list agents"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-tools
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Ted Ross
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-25 17:05 UTC by Luigi Toscano
Modified: 2014-04-29 13:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-29 13:30:25 UTC


Attachments (Terms of Use)

Description Luigi Toscano 2011-08-25 17:05:55 UTC
Description of problem:
Run qmf-tool, execute "list packages" as first command.

= With 0.10-5 on RHEL5, the output is:
Traceback (most recent call last):
  File "/usr/bin/qmf-tool", line 676, in ?
    cli.cmdloop()
  File "/usr/lib64/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib64/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/bin/qmf-tool", line 108, in do_list
    self.dataObject.do_list(data)
  File "/usr/bin/qmf-tool", line 217, in do_list
    self.listPackages()
  File "/usr/bin/qmf-tool", line 392, in listPackages
    raise "Default Agent not set - use 'set default'"
Default Agent not set - use 'set default'
2011-08-25 12:56:03 warning Connection [59526 localhost:5672] closed
2011-08-25 12:56:03 error Exception caught in message thread - exiting: Invalid argument (../include/qpid/sys/posix/Mutex.h:116)

and the program exits.

= With 0.10-5 AND 0.12-1 on RHEL6, the output is:
Exception in list command: exceptions must be old-style classes or derived from BaseException, not str

and the program keeps working.


After that "list agents" is executed, subsequent calls to list packages behaves normally (no exceptions).

The condition (unset default agent) should be handled more gracefully.

Version-Release number of selected component (if applicable):
0.10-5, 0.12-1

Comment 1 Justin Ross 2014-04-29 13:30:25 UTC
qmf-tool is removed in Vienna, see bug 1062173.


Note You need to log in before you can comment on or make changes to this bug.