Created attachment 414134 [details] The Agent program Description of problem: The C++ QMF console seems to have lost the ability to find C++ QMF agents, but the C++ QMF agent is able to be detected by pure-python consoles. The SessionManager.getObjects call is returning a list with 0 entries. Version-Release number of selected component (if applicable): 0.7.939184 How reproducible: 100% Steps to Reproduce: 1. Put all attached files in a single directory 2. make 3. In one terminal, run qmf-agent 4. In another terminal, run qmf-console Actual results: No agents are returned Expected results: Should find the QMF object Additional info:
Created attachment 414135 [details] The Console application
Created attachment 414136 [details] Makefile
Created attachment 414137 [details] QMF Schema
Created attachment 418314 [details] Packed example The tarball contains the same files as were previously separately attached, but in is all-in-one archive and containts also a namespace change (from mrg::grid com::redhat::grid).
Still valid on 0.7.946106-2
The agent is not even visible using qpid-tool. Reproduced with following packages and code from attached example reproducer: python-qpid-qmf-0.9.1079953-3.el5 python-qpid-0.9.1079482-1.el5 qpid-cpp-client-devel-0.9.1079953-1.el5 qpid-cpp-client-0.9.1079953-1.el5 qpid-cpp-server-0.9.1079953-1.el5 qpid-qmf-devel-0.9.1079953-3.el5 qpid-qmf-0.9.1079953-3.el5 qpid-tools-0.9.1078967-1.el5 ------------------------------------------------------------------------- $ make /usr/bin/qmf-gen -o ./gen/qmf ./schema.xml Generated: gen/qmf/com/redhat/grid/TestClass.h Generated: gen/qmf/com/redhat/grid/TestClass.cpp Generated: gen/qmf/com/redhat/grid/Package.h Generated: gen/qmf/com/redhat/grid/Package.cpp make[1]: Entering directory `/home/jsarenik/bz592400' make[2]: Entering directory `/home/jsarenik/bz592400' gcc -c -g -O3 -I. -I./gen -o agent.o agent.cpp gcc -c -g -O3 -I. -I./gen -o gen/qmf/com/redhat/grid/Package.o gen/qmf/com/redhat/grid/Package.cpp gcc -c -g -O3 -I. -I./gen -o gen/qmf/com/redhat/grid/TestClass.o gen/qmf/com/redhat/grid/TestClass.cpp gcc -o ./qmf-agent -g -O3 -lqmf ./agent.o ./gen/qmf/com/redhat/grid/Package.o ./gen/qmf/com/redhat/grid/TestClass.o gcc -c -g -O3 -I. -I./gen -o console.o console.cpp gcc -o ./qmf-console -g -O3 -lqmfconsole -lqmf ./console.o ./gen/qmf/com/redhat/grid/Package.o ./gen/qmf/com/redhat/grid/TestClass.o make[2]: Leaving directory `/home/jsarenik/bz592400' make[1]: Leaving directory `/home/jsarenik/bz592400' $ ./qmf-agent & [1] 13261 $ ./qmf-console callGetObjects list size: 0 Error: Failed to find QMF Agent 2011-03-22 11:23:53 warning Session was not closed cleanly: anonymous.qmfc-acaf5162-4723-4fc4-9f28-0baf7b2211f8 2011-03-22 11:23:53 warning Connection [50305 127.0.0.1:5672] closed
Add "-t" to the broker args and see if there are indications that the agent is actually registering. If so, then this is almost certainly a recurring problem in the QMF console.py file - likely that one of Ted's recent patches somehow got left out.
Created attachment 487330 [details] qpidd trace of agent connecting to it I set long mgmt-pub-interval so the heartbeats do not disturb the output.
Comment on attachment 487330 [details] qpidd trace of agent connecting to it The C++ agent was running for a few seconds, then I killed it by pressing ^C, then I did the same to the broker.
Ted, please explain your devel_ack- a bit more. Do you plan to fix this problem in the future? Is the API which was the C++ test agent written in still supported? Thanks.
Ted, can this be closed?
This bug is in code that is being deprecated. There has been no activity for a long time. I'm closing it.