RpcQpidTestCase: SKIP: Test requires qpid

Asked by Shirley Woo

I'm following the steps at http://wiki.openstack.org/XenServerDevelopment
After running "./run_tests.sh -x -N", I'm seeing the following in the test results:

RpcQpidTestCase
    test_call SKIP: Test requires qpid
    test_cast SKIP: Test requires qpid
    test_create_connection SKIP: Test requires qpid
    test_create_consumer SKIP: Test requires qpid
    test_create_consumer_fanout SKIP: Test requires qpid
    test_fanout_cast SKIP: Test requires qpid
    test_multicall SKIP: Test requires quid

The overall test results are:
Ran 2553 tests in 388.941s

OK (SKIP=12)
Slowest 5 tests took 29.23 secs:
    7.76 test_instance_initiated_shutdown_behavior (nova.tests.api.ec2.test_cloud.CloudTestCase)
    7.48 test_create_and_rebuild_server (nova.tests.integrated.test_servers.ServersTest)
    5.78 test_create_multiple_servers (nova.tests.integrated.test_servers.ServersTest)
    4.11 test_stop_with_attached_volume (nova.tests.api.ec2.test_cloud.CloudTestCase)
    4.11 test_stop_start_with_volume (nova.tests.api.ec2.test_cloud.CloudTestCase)
Running pep8 ...

The instruction page says "Ensure Test Pass". Are these skipped tests are critical?
If they are, what are the qpid package names?

Thanks you.
--Shirley

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Russell Bryant
Solved:
Last query:
Last reply:
Revision history for this message
Shirley Woo (swoo) said :
#1

I installed the following qpid packages, but still have the "Test requires qpid" messages

    sudo apt-get install python-qpid
    sudo apt-get install qpid-python
    sudo apt-get install qpid
    sudo apt-get install qpid-client
    sudo apt-get install libqpidclient2
    sudo apt-get install libqpidcommon2

Revision history for this message
Russell Bryant (russellb) said :
#2

Can you post the output of the following command? Run it from the base directory in the source tree (where run_tests.sh is)

$ python -c "import nova.rpc.impl_qpid"

Revision history for this message
Russell Bryant (russellb) said :
#3

To answer your question more directly, if you are following the instructions you linked to, these tests are not important and you can ignore them. Presumably you are usinng rabbitmq. These tests are only relevant if you would like to use Qpid instead of rabbitmq.

I'm still curious why the tests didn't run after you installed python-qpid, which is why I asked my last question.

Revision history for this message
Shirley Woo (swoo) said :
#4

~/openstack/nova$ python -c "import nova.rpc.impl_qpid"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "nova/rpc/impl_qpid.py", line 25, in <module>
    import qpid.messaging
ImportError: No module named qpid.messaging

Seems like I might still be missing a package, but not sure which one.

Revision history for this message
Shirley Woo (swoo) said :
#5

In response to comment #4:
I've been following the install and don't recall that there was any place that asked me if I wanted to use rabbitmq vs python-qpid. How do I know if I'm using rabbitmq?

Revision history for this message
Shirley Woo (swoo) said :
#6

In response to comment #5:
I just checked and I see a rabbitmq-server process running on the system.

Revision history for this message
Best Russell Bryant (russellb) said :
#7

The message "ImportError: No module named qpid.messaging" means that python-qpid is not installed (or there is a problem with the python-qpid package). Since your system is configured to use rabbitmq (the OpenStack default), you can safely ignore the fact that these tests are not being run.

Revision history for this message
Shirley Woo (swoo) said :
#8

Thank you for your help.

Revision history for this message
Shirley Woo (swoo) said :
#9

Thanks Russell Bryant, that solved my question.