Bug 733430

Summary: qmf-tool exception when "list packages" is executed before "list agents"
Product: Red Hat Enterprise MRG Reporter: Luigi Toscano <ltoscano>
Component: qpid-toolsAssignee: Ted Ross <tross>
Status: CLOSED WONTFIX QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: DevelopmentCC: jross, tross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-29 13:30:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.