Merge "Support os-brick specific lock_path"
This commit is contained in:
commit
d5bf53304c
@ -34,6 +34,7 @@ import __original_module_threading as orig_threading # pylint: disable=E0401
|
|||||||
import threading # noqa
|
import threading # noqa
|
||||||
orig_threading.current_thread.__globals__['_active'] = threading._active
|
orig_threading.current_thread.__globals__['_active'] = threading._active
|
||||||
|
|
||||||
|
import os_brick
|
||||||
from oslo_concurrency import processutils
|
from oslo_concurrency import processutils
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
@ -108,6 +109,7 @@ def main():
|
|||||||
priv_context.init(root_helper=shlex.split(utils.get_root_helper()))
|
priv_context.init(root_helper=shlex.split(utils.get_root_helper()))
|
||||||
utils.monkey_patch()
|
utils.monkey_patch()
|
||||||
gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
|
gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
|
||||||
|
os_brick.setup(CONF)
|
||||||
global LOG
|
global LOG
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
semaphore = utils.semaphore_factory(CONF.backup_max_operations,
|
semaphore = utils.semaphore_factory(CONF.backup_max_operations,
|
||||||
|
@ -40,6 +40,7 @@ import __original_module_threading as orig_threading # pylint: disable=E0401
|
|||||||
import threading # noqa
|
import threading # noqa
|
||||||
orig_threading.current_thread.__globals__['_active'] = threading._active
|
orig_threading.current_thread.__globals__['_active'] = threading._active
|
||||||
|
|
||||||
|
import os_brick
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_privsep import priv_context
|
from oslo_privsep import priv_context
|
||||||
@ -178,6 +179,7 @@ def main():
|
|||||||
priv_context.init(root_helper=shlex.split(utils.get_root_helper()))
|
priv_context.init(root_helper=shlex.split(utils.get_root_helper()))
|
||||||
utils.monkey_patch()
|
utils.monkey_patch()
|
||||||
gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
|
gmr.TextGuruMeditation.setup_autorun(version, conf=CONF)
|
||||||
|
os_brick.setup(CONF)
|
||||||
global LOG
|
global LOG
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
12
releasenotes/notes/lock_path-940af881b2112bbe.yaml
Normal file
12
releasenotes/notes/lock_path-940af881b2112bbe.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
os-brick file lock location can be specified independently of the Cinder
|
||||||
|
service lock location using ``lock_path`` in the ``[os_brick]``
|
||||||
|
configuration section. Useful for HCI deployments and when running Cinder
|
||||||
|
and Glance with Cinder backend on the same host.
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
On HCI deployments and when running Cinder and Glance with Cinder backend
|
||||||
|
on the same host an os-brick shared location can be configured using the
|
||||||
|
``lock_path`` in the ``[os_brick]`` configuration section.
|
@ -56,7 +56,7 @@ tenacity>=6.3.1 # Apache-2.0
|
|||||||
WebOb>=1.8.6 # MIT
|
WebOb>=1.8.6 # MIT
|
||||||
oslo.i18n>=5.1.0 # Apache-2.0
|
oslo.i18n>=5.1.0 # Apache-2.0
|
||||||
oslo.vmware>=3.10.0 # Apache-2.0
|
oslo.vmware>=3.10.0 # Apache-2.0
|
||||||
os-brick>=5.2.0 # Apache-2.0
|
os-brick>=6.0.0 # Apache-2.0
|
||||||
os-win>=5.5.0 # Apache-2.0
|
os-win>=5.5.0 # Apache-2.0
|
||||||
tooz>=2.7.1 # Apache-2.0
|
tooz>=2.7.1 # Apache-2.0
|
||||||
google-api-python-client>=1.11.0 # Apache-2.0
|
google-api-python-client>=1.11.0 # Apache-2.0
|
||||||
|
@ -19,3 +19,4 @@ namespace = oslo.service.service
|
|||||||
namespace = oslo.service.sslutils
|
namespace = oslo.service.sslutils
|
||||||
namespace = oslo.service.wsgi
|
namespace = oslo.service.wsgi
|
||||||
namespace = oslo.versionedobjects
|
namespace = oslo.versionedobjects
|
||||||
|
namespace = os_brick
|
||||||
|
Loading…
Reference in New Issue
Block a user