← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1046870] Re: test_negative_servers in tempest is disabled because of nova bugs

 

Reviewed:  https://review.openstack.org/23110
Committed: http://github.com/openstack/tempest/commit/e623f75ca687db6ada2efded3509d7be1bf738fe
Submitter: Jenkins
Branch:    master

commit e623f75ca687db6ada2efded3509d7be1bf738fe
Author: Sean Dague <sdague@xxxxxxxxxxxxxxxxxx>
Date:   Wed Feb 27 14:52:15 2013 -0500

    enable test_servers_negative
    
    this was disabled when we were seeing flakey fails during Folsom
    release, however all but one of these tests current pass. And the
    failure is a new nova bug. Pushing to CI to verify that bug on both
    databases before providing the fixes to nova (of which there will
    be at least 2)
    
    fix xml clients for negative tests
    
    the xml clients were failing additional tests because the clients
    didn't support all the features as the json tests. This enables
    security_groups and networks in the xml client for create.
    
    It also skips the test_create_numeric_server_name as that can't be
    tested in xml, it always turns it into a string.
    
    Fixes bug #1046870
    
    Change-Id: I8a3a0bef9b1d134da369242a0cf14c3dcb61c6de


** Changed in: tempest
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1046870

Title:
  test_negative_servers in tempest is disabled because of nova bugs

Status in OpenStack Compute (Nova):
  Fix Committed
Status in Tempest:
  Fix Released

Bug description:
  Recently all tempest runs have been failing with some selection of
  errors in test_servers_negative.py and test_images.py. The n-cpu log
  is loaded with errors and stacktraces. Here is a sample of the most
  recent case but there is some flakiness and not all builds show
  exactly the same set of failures:
  http://logs.openstack.org/11936/13/check/gate-tempest-devstack-
  vm/10571/

  Here is some output from my local run:

  ======================================================================
  ERROR: Reboot a deleted server
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/tempest/tempest/tests/compute/test_servers_negative.py", line 127, in test_reboot_deleted_server
      self.client.wait_for_server_termination(self.server_id)
    File "/opt/stack/tempest/tempest/services/nova/json/servers_client.py", line 167, in wait_for_server_termination
      raise exceptions.BuildErrorException
  BuildErrorException: Server %(server_id)s failed to build and is in ERROR status

  ======================================================================
  ERROR: Rebuild a deleted server
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/tempest/tempest/tests/compute/test_servers_negative.py", line 144, in test_rebuild_deleted_server
      self.client.wait_for_server_termination(self.server_id)
    File "/opt/stack/tempest/tempest/services/nova/json/servers_client.py", line 167, in wait_for_server_termination
      raise exceptions.BuildErrorException
  BuildErrorException: Server %(server_id)s failed to build and is in ERROR status

  ======================================================================
  ERROR: Return error when creating an image of a server that is building
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/tempest/tempest/tests/compute/test_images.py", line 380, in tearDown
      ImagesTestBase.tearDown(self)
    File "/opt/stack/tempest/tempest/tests/compute/test_images.py", line 37, in tearDown
      self.servers_client.wait_for_server_termination(server['id'])
    File "/opt/stack/tempest/tempest/services/nova/json/servers_client.py", line 167, in wait_for_server_termination
      raise exceptions.BuildErrorException
  BuildErrorException: Server %(server_id)s failed to build and is in ERROR status
  Details: Server %(server_id)s failed to build and is in ERROR status
  -------------------- >> begin captured logging << --------------------
  tempest.common.rest_client: ERROR: Request URL: http://172.18.0.156:8774/v2/8e694b8a45df44c18fb54aabdeb48c71/servers/01defe3f-1aed-419c-8b02-43ece401a73b/action
  tempest.common.rest_client: ERROR: Request Body: {"createImage": {"name": "test-snap-56810686560"}}
  tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 06 Sep 2012 14:31:56 GMT', 'status': '409', 'content-length': '111', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-ba860a75-c914-4611-87e0-105c53ddf2a6'}
  tempest.common.rest_client: ERROR: Response Body: {u'conflictingRequest': {u'message': u"Cannot 'createImage' while instance is in vm_state building", u'code': 409}}
  --------------------- >> end captured logging << ---------------------

  ======================================================================
  ERROR: Return error when creating an image of a server that is building
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/tempest/tempest/tests/compute/test_images.py", line 406, in tearDown
      ImagesTestBase.tearDown(self)
    File "/opt/stack/tempest/tempest/tests/compute/test_images.py", line 37, in tearDown
      self.servers_client.wait_for_server_termination(server['id'])
    File "/opt/stack/tempest/tempest/services/nova/json/servers_client.py", line 167, in wait_for_server_termination
      raise exceptions.BuildErrorException
  BuildErrorException: Server %(server_id)s failed to build and is in ERROR status
  Details: Server %(server_id)s failed to build and is in ERROR status
  -------------------- >> begin captured logging << --------------------
  tempest.common.rest_client: ERROR: Request URL: http://172.18.0.156:8774/v2/6d20fdf0dac54e0c96f52c5032aa7cdf/servers/18dacb06-d135-40a4-98a2-c75211a55fac/action
  tempest.common.rest_client: ERROR: Request Body: {"createImage": {"name": "test-snap-99444707830"}}
  tempest.common.rest_client: ERROR: Response Headers: {'date': 'Thu, 06 Sep 2012 14:34:58 GMT', 'status': '409', 'content-length': '111', 'content-type': 'application/json; charset=UTF-8', 'x-compute-request-id': 'req-d130e4ad-6c90-416b-8624-571ca2e6f9ab'}
  tempest.common.rest_client: ERROR: Response Body: {u'conflictingRequest': {u'message': u"Cannot 'createImage' while instance is in vm_state building", u'code': 409}}
  --------------------- >> end captured logging << ---------------------

  -------

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1046870/+subscriptions