Ask Your Question

flyingdutchman's profile - activity

2018-11-12 06:37:15 -0500 received badge  Taxonomist
2018-07-11 09:44:32 -0500 received badge  Famous Question (source)
2018-03-22 06:05:11 -0500 received badge  Notable Question (source)
2018-03-22 06:05:11 -0500 received badge  Popular Question (source)
2017-12-12 18:46:22 -0500 asked a question getting strange python errors when starting cinder-volume service

I'll start by apologizing for using unstable versions of everything, Ubuntu server 18.04 and OpenStack "Pike" Everything has been working really well so far (trying to get my openstack cluster going) until I hit the cinder-volume section, I wanted to use glusterfs and nfs and started getting errors, so I simplified and switched to using LVM like the docs say: here's my cinder.conf:

[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_name = cinder-vols
volume_group = cinder-volumes
default_volume_type = glusterfs
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
#enabled_backends = glusterfs,nfs
enabled_backends = lvm
transport_url = rabbit://fakeuser:fakepass@controller
my_ip = 192.168.200.1
glance_api_servers = http://controller:9292
volume_manager = cinder.volume.manager.VolumeManager

[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm

[database]
connection = mysql+pymysql://cinderdbuser:dbuserpasswordfake@controller/cinder

[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = myCloud
username = cinderuser
password = fakepassword

[oslo_concurrency]
# ...
lock_path = /var/lib/cinder/tmp

[key_manager]
api_class = cinder.keymgr.barbican.BarbicanKeyManager
backend = barbican

I'm getting the following error in my cinder-volume.log and the server won't start:

2017-12-05 16:53:19.982 78770 INFO cinder.volume.manager [req-0cf76bf3-5229-4c3d-b2c3-854c62a046f8 - - - - -] Service not found for updating active_backend_id, assuming default for driver init.
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume [req-0cf76bf3-5229-4c3d-b2c3-854c62a046f8 - - - - -] Volume service cloud1@lvm failed to start.: ValueError: Empty module name
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume Traceback (most recent call last):
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/cmd/volume.py", line 98, in main
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume     cluster=cluster)
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 395, in create
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume     cluster=cluster)
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 148, in __init__
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume     *args, **kwargs)
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 242, in __init__
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume     self.key_manager = key_manager.API(CONF)
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/cinder/keymgr/__init__.py", line 29, in API
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume     cls = importutils.import_class(conf.key_manager.backend)
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume   File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 30, in import_class
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume     __import__(mod_str)
2017-12-05 16:53:19.983 78770 ERROR cinder.cmd.volume ValueError: Empty module name
2017-12-05 16 ...
(more)