Lock external network stack creation between workers
In order to avoid concurrency issues when the ExternalNetworkStackFixture stack or any of its child classes (RouterStackFixture) are created, the interworker_synched decorator is added to its setup_fixture method. Change-Id: I94a2e86838020b6ca9faf77b9f5fd4f2f45b9167
This commit is contained in:
parent
4c5c5d1142
commit
6f30c3fd48
@ -39,6 +39,10 @@ class ExternalNetworkStackFixture(heat.HeatStackFixture):
|
||||
|
||||
template = _hot.heat_template_file('neutron/external_network.yaml')
|
||||
|
||||
@tobiko.interworker_synched('create_external_network_stack')
|
||||
def setup_stack(self):
|
||||
super().setup_stack()
|
||||
|
||||
@property
|
||||
def external_name(self) -> typing.Optional[str]:
|
||||
return tobiko.tobiko_config().neutron.external_network
|
||||
|
Loading…
x
Reference in New Issue
Block a user