Merge "Use DLM when creating service network"

This commit is contained in:
Zuul 2023-08-28 21:48:36 +00:00 committed by Gerrit Code Review
commit cad1236ac3
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ from oslo_utils import netutils
from manila.common import constants as const
from manila import compute
from manila import context
from manila import coordination
from manila import exception
from manila.i18n import _
from manila import image
@ -813,7 +814,7 @@ class NeutronNetworkHelper(BaseNetworkhelper):
net = self.neutron_api.get_network(network_info['neutron_net_id'])
return net['name']
@utils.synchronized("service_instance_get_service_network", external=True)
@coordination.synchronized("service_instance_get_service_network")
def _get_service_network_id(self):
"""Finds existing or creates new service network."""
service_network_name = self.get_config_option("service_network_name")