Ask Your Question
0

Cinder down Failed to initialize driver. lvm

asked 2016-08-27 13:48:13 -0500

anonymous user

Anonymous

Cinder starts but fail to load driver

      33327 ERROR cinder.volume.manager [req-209e844b-9165-463e-b200-030f7384c43b - - - - -] Failed to initialize driver.
  33327 ERROR cinder.volume.manager Traceback (most recent call last):
  33327 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 426, in init_host
  33327 ERROR cinder.volume.manager     self.driver.check_for_setup_error()
  33327 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 283, in check_for_setup_error
  33327 ERROR cinder.volume.manager     lvm_conf=lvm_conf_file)
  33327 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 115, in __init__
  33327 ERROR cinder.volume.manager     self.pv_list = self.get_all_physical_volumes(root_helper, vg_name)
  33327 ERROR cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 351, in get_all_physical_volumes
  33327 ERROR cinder.volume.manager     'size': float(fields[2]),
  33327 ERROR cinder.volume.manager IndexError: list index out of range
  33327 ERROR cinder.volume.manager 
 13:36:35.047 33327 INFO cinder.volume.manager [req-209e844b-9165-463e-b200-030f7384c43b - - - - -] Initializing RPC dependent components of volume driver LVMVolumeDriver (3.0.0)
 13:36:35.048 33327 WARNING cinder.volume.drivers.lvm [req-209e844b-9165-463e-b200-030f7384c43b - - - - -] Unable to update stats on non-initialized Volume Group: cinder-volumes

Many changes same result basic config file

[DEFAULT]
logdir = /var/log/cinder
state_path = /var/lib/cinder
lock_path = /var/lib/cinder/tmp
volumes_dir = /etc/cinder/volumes
iscsi_helper = lioadm
rootwrap_config = /etc/cinder/rootwrap.conf
auth_strategy = keystone
enabled_backends = lvm
lvm_conf_file = /etc/cinder/lvm.conf
rpc_backend=cinder.openstack.common.rpc.impl_kombu

[database]
connection = mysql+pymysql://cinder:xxxxxxxx@xxxxxx/cinder

[keystone_authtoken]
auth_uri = http://xxxxxxxx:5000/v2.0

admin_password=2ec7858ed96f4fc0
admin_tenant_name=services
identity_uri=http://xxxxxxx:35357
admin_user=cinder



[lvm]
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
volumes_dir = /var/lib/cinder
volume_backend_name=lvm
iscsi_protocol = iscsi
iscsi_helper = lioadm
lvm_type = auto

Runing on centos 7 packstak

edit retag flag offensive close merge delete

Comments

Whats the output of vgdisplay command ? Does the Volume group name "cinder-volumes" matches with volume group on the server?

Also check if volume_driver needs to be changed.

volume_driver = cinder.volume.drivers.lvm.LVMISCSIDriver
sunnyarora gravatar imagesunnyarora ( 2016-08-28 05:31:57 -0500 )edit

What are the contents of /etc/cinder/lvm.conf?

barry.davis gravatar imagebarry.davis ( 2016-08-29 12:17:06 -0500 )edit

The is not /etc/cinder/lmv.conf

aeperezt gravatar imageaeperezt ( 2016-08-30 11:13:39 -0500 )edit

Yes it maches cinder-volumes

aeperezt gravatar imageaeperezt ( 2016-08-30 11:14:03 -0500 )edit

Comment out lvm_conf_file if not using /etc/cinder/lvm.conf

#lvm_conf_file = /etc/cinder/lvm.conf
barry.davis gravatar imagebarry.davis ( 2016-08-30 19:58:35 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-08-30 11:20:23 -0500

aeperezt gravatar image

updated 2016-08-30 11:58:39 -0500

sunnyarora gravatar image

Figured out the cause of the issue, vgs was giving an error on a missing volume

 Missing volume XXXXXXXX
  VG             #PV #LV #SN Attr   VSize   VFree 
  cinder-volumes   1   1   0 wz--n- 30.26g 27.12g

So because vgs reported an error line on top of the output cinder could not read the proper information from vgs output and that causes not to load the driver.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-08-27 13:48:13 -0500

Seen: 1,392 times

Last updated: Aug 30 '16