]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Restore osapi_volume_workers config option
authorZhiteng Huang <zhithuang@ebaysf.com>
Fri, 27 Jun 2014 19:38:08 +0000 (03:38 +0800)
committerMatt Riedemann <mriedem@us.ibm.com>
Wed, 2 Jul 2014 19:33:26 +0000 (12:33 -0700)
osapi_volume_worker was introduced when enabling multi-process API
support for Cinder. However, this config option was accidentally
dropped in commit 464277220ddb800ac69562649fde62e5ca9358c4
(https://review.openstack.org/#/c/67657/20/cinder/service.py).
As a result, the value in cinder.conf wouldn't be honored.  This
change restore this config option.

Closes-bug: #1335295

Change-Id: Ib2d8532d3e6d0f48da0bc4dd6f6e64bfff8973ea

cinder/service.py
etc/cinder/cinder.conf.sample

index 4b5caa5bfe703a05ffebedc7feb669e55ed78f0c..2c00d5c68af44dbb22c4fa334eada01aaee106f2 100755 (executable)
@@ -57,7 +57,10 @@ service_opts = [
                help='IP address on which OpenStack Volume API listens'),
     cfg.IntOpt('osapi_volume_listen_port',
                default=8776,
-               help='Port on which OpenStack Volume API listens'), ]
+               help='Port on which OpenStack Volume API listens'),
+    cfg.IntOpt('osapi_volume_workers',
+               default=1,
+               help='Number of workers for OpenStack Volume API service'), ]
 
 CONF = cfg.CONF
 CONF.register_opts(service_opts)
index 018ea0a19307a62f4806649181b4cc205988ac8e..12cb0dfe007ff121e0a6f83710890c3b3711d869 100644 (file)
 # Port on which OpenStack Volume API listens (integer value)
 #osapi_volume_listen_port=8776
 
+# Number of workers for OpenStack Volume API service (integer
+# value)
+#osapi_volume_workers=1
+
 
 #
 # Options defined in cinder.test