Bug 1324783 - state_path/lock_path does not have the sane defaults
Summary: state_path/lock_path does not have the sane defaults
Keywords:
Status: CLOSED EOL
Alias: None
Product: RDO
Classification: Community
Component: openstack-manila
Version: trunk
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Kilo
Assignee: Pete Zaitcev
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-07 09:44 UTC by Attila Fazekas
Modified: 2016-05-19 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-19 15:37:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Attila Fazekas 2016-04-07 09:44:55 UTC
Description of problem:
lock_path does not have sane default value.

All other openstack package knows which directory
created by the rpm for state data, but looks like manila does not.

Version-Release number of selected component (if applicable):
python-manila-2.0.0-0.1.0rc1.el7.noarch

Actual results:
2016-04-07 09:18:45.571 19094 ERROR oslo_messaging.rpc.dispatcher     lock_file_path = _get_lock_path(name, lock_file_prefix, lock_path)
2016-04-07 09:18:45.571 19094 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 140, in _get_lock_path
2016-04-07 09:18:45.571 19094 ERROR oslo_messaging.rpc.dispatcher     raise cfg.RequiredOptError('lock_path')
2016-04-07 09:18:45.571 19094 ERROR oslo_messaging.rpc.dispatcher RequiredOptError: value required for option: lock_path
2016-04-07 09:18:45.571 19094 ERROR oslo_messaging.rpc.dispatcher 


Expected results:
The directory created for state data is used by default.

/usr/share/manila/manila-dist.conf:
[DEFAULT]
state_path = /var/lib/manila
rootwrap_config = /etc/manila/rootwrap.conf
[oslo_concurrency]
lock_path = $state_path/tmp

(Currently the manila-dist.conf just has one comment line.)

Additional info:
lock_path = $state_path/lock could be used if the package would create this directory,but $state_path/tmp also sounds good.

rootwrap_config = /etc/manila/rootwrap.conf also needs to be in the manila-dist.conf .

Comment 1 Chandan Kumar 2016-05-19 15:37:25 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.


Note You need to log in before you can comment on or make changes to this bug.