Multiple unit tests generate errors when run on a machine with nova services running

Bug #777537 reported by Lorin Hochstein
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

./run_tests.sh -V generated 50 errors and 1 failure when executed on a node that also has several nova services running (nova-api, nova-network, nova-scheduler, nova-objectstore). When run on a node without these services, all tests pass.

I haven't investigated too closely, but the errors look like collisions with existing services (e.g., trying to listen on a port already in use).

Revision: 1054
OS: SLES 11SP1

Example of one such error:

~/nova/trunk> ./run_tests.sh -V nova.tests.integrated.test_extensions:ExtensionsTest.test_get_foxnsocks
ExtensionsTest
    test_get_foxnsocks ERROR

======================================================================
ERROR: test_get_foxnsocks (nova.tests.integrated.test_extensions.ExtensionsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/lorin/nova/trunk/nova/tests/integrated/integrated_helpers.py", line 163, in setUp
    self.auth_url = self._start_api_service()
  File "/home/lorin/nova/trunk/nova/tests/integrated/integrated_helpers.py", line 172, in _start_api_service
    api_service.start()
  File "/home/lorin/nova/trunk/nova/service.py", line 238, in start
    self.wsgi_app = _run_wsgi(self.conf, self.apis)
  File "/home/lorin/nova/trunk/nova/service.py", line 330, in _run_wsgi
    server.start(*app)
  File "/home/lorin/nova/trunk/nova/test.py", line 177, in _wrapped_start
    self.original_start(inner_self, *args, **kwargs)
  File "/home/lorin/nova/trunk/nova/wsgi.py", line 67, in start
    socket = eventlet.listen((host, port), backlog=backlog)
  File "/home/lorin/nova/trunk/.nova-venv/lib/python2.6/site-packages/eventlet/convenience.py", line 37, in listen
    sock.bind(addr)
  File "<string>", line 1, in bind
error: [Errno 98] Address already in use

Revision history for this message
Lorin Hochstein (lorinh) wrote :
Revision history for this message
Vish Ishaya (vishvananda) wrote :

I think this is a duplicate. Can you try the fix here:

https://code.launchpad.net/~justin-fathomdb/nova/bug744150/+merge/55183

and reopen if it doesn't fix your problem?

Revision history for this message
Lorin Hochstein (lorinh) wrote :

The fix addresses some of the failing tests, but not all of them. The following tests are still failing with the fix applied:

S3APITestCase
    test_000_list_buckets ERROR
    test_001_create_and_delete_bucket ERROR
    test_002_create_bucket_and_key_and_delete_key_again ERROR
    test_unknown_bucket ERROR
QuotaTestCase
    test_allowed_injected_file_content_bytes ERROR
    test_allowed_injected_file_path_bytes ERROR
    test_allowed_injected_files ERROR
    test_max_injected_file_content_bytes ERROR
    test_max_injected_file_path_bytes ERROR
    test_max_injected_files ERROR
    test_no_injected_files ERROR
    test_quota_overrides ERROR
    test_too_many_addresses ERROR
    test_too_many_cores ERROR
    test_too_many_gigabytes ERROR
    test_too_many_injected_file_content_bytes ERROR
    test_too_many_injected_file_path_bytes ERROR
    test_too_many_injected_files ERROR
    test_too_many_instances ERROR
    test_too_many_metadata_items ERROR
    test_too_many_volumes ERROR

Revision history for this message
Lorin Hochstein (lorinh) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.