The scenario tests for clusters are occasionally failing when doing a
cluster-show after a cluster-grow. This seems to happen because the
locality flag on the new instances takes a few seconds (sometimes) to
populate. This results in a 'AssertionError: Cluster missing attribute
locality.' error in the cluster grow test.
The fix is to check all the instances for the server_group information
instead of just the first instance.
The cluster tests were also tweaked so they could be run separately.
Reviewed: https:/ /review. openstack. org/367644 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=3ae00fcf694 eced693a94d0d8d ea2c852880cc0e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3ae00fcf694eced 693a94d0d8dea2c 852880cc0e
Author: Peter Stachowski <email address hidden>
Date: Thu Sep 8 21:17:38 2016 +0000
[fix gate] Cluster grow not showing locality
The scenario tests for clusters are occasionally failing when doing a
cluster-show after a cluster-grow. This seems to happen because the
locality flag on the new instances takes a few seconds (sometimes) to
populate. This results in a 'AssertionError: Cluster missing attribute
locality.' error in the cluster grow test.
The fix is to check all the instances for the server_group information
instead of just the first instance.
The cluster tests were also tweaked so they could be run separately.
Change-Id: I4f369231a8f0bc 8cad338e2eb1de9 cd1ca0253f6
Closes-Bug: #1621634