Intermittent int-test failures in replication tests

Bug #1450016 reported by Doug Shelley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
New
Undecided
Doug Shelley

Bug Description

Noticed that on occasion, the int-tests fail like this:

<snip>

WaitForCreateSlaveToFinish
  Wait until the instance is created and set up as slave.
  test_slave_created OK 422.83
 VerifySlave
  test_correctly_started_replication OK 287.99
  test_backup_deleted OK 0.18
  test_slave_is_read_only OK 3.95
  test_create_db_on_master OK 0.51
 test_database_replicated_on_slave ERROR
  test_existing_db_exists_on_slave ERROR

<snip>

 ======================================================================
 | ERROR: proboscis.case.MethodTest (test_database_replicated_on_slave)
 | ----------------------------------------------------------------------
 | Traceback (most recent call last):
 | File "/usr/local/lib/python2.7/dist-packages/proboscis/case.py", line 296, in testng_method_mistake_capture_func
      compatability.capture_type_error(s_func)
 | File "/usr/local/lib/python2.7/dist-packages/proboscis/compatability/exceptions_2_6.py", line 27, in capture_type_error
 | func()
 | File "/usr/local/lib/python2.7/dist-packages/proboscis/case.py", line 350, in func
 | func(test_case.state.get_state())
 | File "/usr/local/lib/python2.7/dist-packages/proboscis/decorators.py", line 59, in new_method
 | return func(*kargs, **kwargs)
 | File "/opt/stack/new/trove/trove/tests/api/replication.py", line 182, in test_database_replicated_on_slave
 | poll_until(self.db_is_found(slave_instance.replicated_db))
 | File "/opt/stack/new/trove/trove/common/utils.py", line 199, in poll_until
 | return lc.wait()
 | File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
 | return hubs.get_hub().switch()
 | File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 294, in switch
 | return self.greenlet.switch()
 | File "/opt/stack/new/trove/trove/openstack/common/loopingcall.py", line 81, in _inner
 | self.f(*self.args, **self.kw)
 | File "/opt/stack/new/trove/trove/common/utils.py", line 189, in poll_and_check
 | obj = retriever()
 | File "/opt/stack/new/trove/trove/tests/api/replication.py", line 150, in find_database
 | databases = instance_info.dbaas.databases.list(slave_instance.id)
 | File "/usr/local/lib/python2.7/dist-packages/troveclient/v1/databases.py", line 54, in list
 | return self._paginated(url, "databases", limit, marker)
 | File "/usr/local/lib/python2.7/dist-packages/troveclient/base.py", line 70, in _paginated
 | resp, body = self.api.client.get(url)
 | File "/usr/local/lib/python2.7/dist-packages/troveclient/compat/client.py", line 237, in get
 | return self._cs_request(url, 'GET', **kwargs)
 | File "/usr/local/lib/python2.7/dist-packages/troveclient/compat/client.py", line 231, in _cs_request
 | return request()
 | File "/usr/local/lib/python2.7/dist-packages/troveclient/compat/client.py", line 221, in request
 | **kwargs)
 | File "/usr/local/lib/python2.7/dist-packages/troveclient/compat/client.py", line 209, in _time_request
 | resp, body = self.request(url, method, **kwargs)
 | File "/usr/local/lib/python2.7/dist-packages/troveclient/compat/client.py", line 187, in request
 | raise exceptions.from_response(resp, body)
 | UnprocessableEntity: Instance 6304219e-4ca8-461b-8d50-7fe755df1385 is not ready. (HTTP 422)

Doug Shelley (0-doug)
Changed in trove:
assignee: nobody → Doug Shelley (0-doug)
Revision history for this message
Amrith Kumar (amrith) wrote :

I'm not seeing this of late. If this is no longer occurring, can we get rid of the bug?

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.