[ 
https://issues.apache.org/jira/browse/QPID-5329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Ross closed QPID-5329.
-----------------------------

    Resolution: Invalid

This problem only surfaces when you have a system-installed qmf console.  If 
the console code is indeed unavailable, there is no error.  Dealing with other 
qmf code in the search path is not really worth it, so there's nothing to do 
here.

> QMFv2 tests fail when qmf console code is unavailable
> -----------------------------------------------------
>
>                 Key: QPID-5329
>                 URL: https://issues.apache.org/jira/browse/QPID-5329
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker, Qpid Managment Framework
>    Affects Versions: 0.25
>            Reporter: Justin Ross
>            Assignee: Ken Giusti
>             Fix For: 0.25
>
>
> Testing from the release distribution, where the python qmf code isn't 
> available, produces this error, because it's picking up an older 
> system-installed qmf.  I wonder if we shouldn't detect the absence of isV2?  
> Otherwise, we'd need to somehow be stricter about when we run the test.
> 20/54 Testing: qpidd_qmfv2_tests
> 20/54 Test: qpidd_qmfv2_tests
> Command: "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/run_test" 
> "--build-dir=/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/build" "--python" "--" 
> "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py"
> Directory: /tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/build/src/tests
> "qpidd_qmfv2_tests" start time: Nov 09 19:50 EST
> Output:
> ----------------------------------------------------------
> qpidd_qmfv2_tests.ConsoleTest.test_async_method 
> ................................................... pass
> qpidd_qmfv2_tests.ConsoleTest.test_async_method_v1 
> ................................................ pass
> qpidd_qmfv2_tests.ConsoleTest.test_method_call 
> .................................................... pass
> qpidd_qmfv2_tests.ConsoleTest.test_method_call_v1 
> ................................................. pass
> qpidd_qmfv2_tests.ConsoleTest.test_unsolicited_updates 
> ............................................ fail
> Error during test:  Traceback (most recent call last):
>     File "/usr/bin/qpid-python-test", line 340, in run
>       phase()
>     File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", 
> line 249, in test_unsolicited_updates
>       self._test_unsolicited_updates()
>     File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", 
> line 169, in _test_unsolicited_updates
>       assert handler.events, "No event callbacks received"
>   AssertionError: No event callbacks received
>   Traceback (most recent call last):
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2789, in 
> _v1Dispatch
>       self._v1DispatchProtected(msg)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2844, in 
> _v1DispatchProtected
>       agent._handleQmfV1Message(opcode, seq, mp, ah, codec)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3648, in 
> _handleQmfV1Message
>       elif opcode == 'e': self._v1HandleEventInd(codec, seq)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3380, in 
> _v1HandleEventInd
>       self.unsolicitedContext.doEvent(event)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3770, in 
> doEvent
>       self.notifiable(qmf_event=data)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3107, in 
> __call__
>       self.session.console.event(self.broker, event)
>     File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", 
> line 121, in event
>       if event.isV2:
>   AttributeError: Event instance has no attribute 'isV2'
>   Traceback (most recent call last):
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2789, in 
> _v1Dispatch
>       self._v1DispatchProtected(msg)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 2844, in 
> _v1DispatchProtected
>       agent._handleQmfV1Message(opcode, seq, mp, ah, codec)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3648, in 
> _handleQmfV1Message
>       elif opcode == 'e': self._v1HandleEventInd(codec, seq)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3380, in 
> _v1HandleEventInd
>       self.unsolicitedContext.doEvent(event)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3770, in 
> doEvent
>       self.notifiable(qmf_event=data)
>     File "/usr/lib64/python2.7/site-packages/qmf/console.py", line 3107, in 
> __call__
>       self.session.console.event(self.broker, event)
>     File "/tmp/tmp.qNIAEwMgJv/qpid-cpp-0.26/src/tests/qpidd_qmfv2_tests.py", 
> line 121, in event
>       if event.isV2:
>   AttributeError: Event instance has no attribute 'isV2'



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to