4 Commits

Author SHA1 Message Date
Federico Ressi
a880634a6f Automatically select python version on scenario and fucntional tests
Change-Id: I6da8e7fd15f913758c562bcc5aa7baca6a9692a2
2019-05-27 06:20:27 +02:00
Federico Ressi
8a4b7af33c Make setup_stack aware of Heat concurrency issue
This is a workaround for a concurrency issue detected on Heat
OSP-14, but that could be affecting any version of Heat (no
investigation has been perfomed). It is unknow if this is a bug
or just a limitation of the service.

The issue:

Heat looks like has a concurrency issue when creating new stacks with
the same name on ame time from more parallel processes.

When Tobiko Neutron test cases are executed using tox -e neutron command
test case execution is spawn along some worker processes.

It happens that the same HeatStackFixture, as it is shared between more
test cases, is being created on the same time from more workers.

The stack creation request is therefore submitted to Heat service with
the same parameters and despite what understood from the documentation,
more than one stack starts being created on the same time with the same
name.

Workaround implementation

After these stack creation is started tobiko asks for stack status
using stack name and all worker processes receives information of
the same stack (with the same stack ID).

Therefore those workers that creates a new stack with an ID different
from the one got by the stack name are deleted, leaving on most of the
cases the cloud with only one stack instance for the same stack name.

Change-Id: Ibcdc04d9436664b788d2ed6d68e2a20c74bd6147
2019-04-12 08:26:53 +02:00
Federico Ressi
597bd231a8 Limit max default concurrency for tox jobs.
Change-Id: Ib6a4a54391d32a25292562af4d02bbc43b2ff274
2019-01-14 10:29:17 +01:00
Federico Ressi
e4ea6d5212 Execute existing neutron tests on upstream CI
Change-Id: I53bdbb535bca8f56399927a85d8cf0e766a5808b
2018-12-14 11:58:15 +01:00