Fix volume attach tests failing when using FIP as ssh method
When use floating as connect_method, tests:
test_attach_detach_volume[id-52e9045a-e90d-4c0d-9087-79d657faffff]
test_list_get_volume_attachments[id-7fa563fe-f0f7-43eb-9e22-a1ece036b513]
will fail due to that they are under the same class, so when these tests
setup, and using floating as connect_method only one floating IP was
created.We first associated it to instance created at test1 and then we
created another instance in test2 and tried to associate this IP again to
the new server, since the IP was already associated to instance created in
test1, error will happen when try to do this.
This patch fix this by delete the servers after first test finished.
Reviewed: https:/ /review. openstack. org/460484 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=7a547df426a 505d987dd53efb2 f59d6ec2f63af8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7a547df426a505d 987dd53efb2f59d 6ec2f63af8
Author: Kevin_Zheng <email address hidden>
Date: Thu Apr 27 18:00:13 2017 +0800
Fix volume attach tests failing when using FIP as ssh method
When use floating as connect_method, tests: attach_ detach_ volume[ id-52e9045a- e90d-4c0d- 9087-79d657faff ff] list_get_ volume_ attachments[ id-7fa563fe- f0f7-43eb- 9e22-a1ece036b5 13]
test_
test_
will fail due to that they are under the same class, so when these tests
setup, and using floating as connect_method only one floating IP was
created.We first associated it to instance created at test1 and then we
created another instance in test2 and tried to associate this IP again to
the new server, since the IP was already associated to instance created in
test1, error will happen when try to do this.
This patch fix this by delete the servers after first test finished.
Closes-Bug: #1686664
Change-Id: Ie3afb31bd0d324 5760f799b225622 8159b328619