yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #49299
[Bug 1568387] Re: Integration tests fail due to slow creation of an instance
Reviewed: https://review.openstack.org/303769
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=0032f3f5c3e075e3dc959c33352d9bc649e7d1e5
Submitter: Jenkins
Branch: master
commit 0032f3f5c3e075e3dc959c33352d9bc649e7d1e5
Author: Timur Sufiev <tsufiev@xxxxxxxxxxxx>
Date: Sun Apr 10 00:03:35 2016 +0300
Guard against instance row being displayed slowly in i9n tests
Sometimes due to slow Nova response in integration tests an instance
row is being checked for the presence of a specific status before a
row even appears. Wait not only for the status appearance, but for
the row appearance as well.
Change-Id: Ifc58ef55a1e85c99ed442858c4f51a045603dc62
Closes-Bug: #1568387
** Changed in: horizon
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1568387
Title:
Integration tests fail due to slow creation of an instance
Status in OpenStack Dashboard (Horizon):
Fix Released
Bug description:
If you ever encounter traceback like this in the results of gate-
horizon-dsvm-integration job
2016-04-09 19:32:21.451 | 2016-04-09 19:32:21.432 | Traceback (most recent call last):
2016-04-09 19:32:21.453 | 2016-04-09 19:32:21.433 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/tests/test_instances.py", line 197, in test_filter_instances
2016-04-09 19:32:21.455 | 2016-04-09 19:32:21.435 | self.assertTrue(instances_page.is_instance_active(instance_list[0]))
2016-04-09 19:32:21.456 | 2016-04-09 19:32:21.437 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/pages/project/compute/instancespage.py", line 115, in is_instance_active
2016-04-09 19:32:21.458 | 2016-04-09 19:32:21.438 | lambda: row.cells[self.INSTANCES_TABLE_STATUS_COLUMN], 'Active')
2016-04-09 19:32:21.460 | 2016-04-09 19:32:21.440 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/regions/tables.py", line 158, in is_cell_status
2016-04-09 19:32:21.462 | 2016-04-09 19:32:21.443 | self._wait_till_text_present_in_element(cell_getter, status)
2016-04-09 19:32:21.464 | 2016-04-09 19:32:21.444 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/basewebobject.py", line 110, in _wait_till_text_present_in_element
2016-04-09 19:32:21.466 | 2016-04-09 19:32:21.446 | self._wait_until(predicate, timeout)
2016-04-09 19:32:21.468 | 2016-04-09 19:32:21.448 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/basewebobject.py", line 94, in _wait_until
2016-04-09 19:32:21.469 | 2016-04-09 19:32:21.449 | predicate)
2016-04-09 19:32:21.471 | 2016-04-09 19:32:21.451 | File "/opt/stack/new/horizon/.tox/py27integration/local/lib/python2.7/site-packages/selenium/webdriver/support/wait.py", line 71, in until
2016-04-09 19:32:21.472 | 2016-04-09 19:32:21.453 | value = method(self._driver)
2016-04-09 19:32:21.474 | 2016-04-09 19:32:21.454 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/basewebobject.py", line 107, in predicate
2016-04-09 19:32:21.476 | 2016-04-09 19:32:21.456 | elt = element() if hasattr(element, '__call__') else element
2016-04-09 19:32:21.478 | 2016-04-09 19:32:21.458 | File "/opt/stack/new/horizon/openstack_dashboard/test/integration_tests/pages/project/compute/instancespage.py", line 115, in <lambda>
2016-04-09 19:32:21.479 | 2016-04-09 19:32:21.460 | lambda: row.cells[self.INSTANCES_TABLE_STATUS_COLUMN], 'Active')
2016-04-09 19:32:21.481 | 2016-04-09 19:32:21.462 | AttributeError: 'NoneType' object has no attribute 'cells'
It most likely means that an instance row was tested for the presence
of a specific status even before this row had appeared. This (slow
Nova response) could happen, but it shouldn't cause tests to fail.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1568387/+subscriptions
References