Ask Your Question
0

LVMISCSIDriver -2.0.0 (config name lvm) driver is uninitialized

asked 2014-11-24 12:52:46 -0500

patrickt33 gravatar image

updated 2014-11-25 08:15:50 -0500

Any volumes I create are created with a status of error, and this appears all through my log files.

Nov 24 18:29:44 os-node-1 cinder-volume: 2014-11-24 18:29:44.317 19238 WARNING cinder.volume.manager [-] Unable to update stats, LVMISCSIDriver -2.0.0 (config name lvm) driver is uninitialized.
Nov 24 18:29:44 os-node-1 cinder-volume: 2014-11-24 18:29:44.317 19238 WARNING cinder.volume.manager [-] Unable to update volume replication status, LVMISCSIDriver -2.0.0 (config name lvm) driver is uninitialized.

I read about this issue here: https://ask.openstack.org/en/question... , but he kind of glosses over the issue I'm having by saying "The above issue looks to be resolved by adding the driver in cinder.conf ". I (think) I've done that, but I still get the error and can't create volumes.

cinder.conf

[DEFAULT]
amqp_durable_queues=False
rabbit_host=10.5.0.11
rabbit_port=5672
rabbit_hosts=10.5.0.11:5672
rabbit_use_ssl=False
rabbit_userid=guest
rabbit_password=<redacted>
rabbit_virtual_host=/
rabbit_ha_queues=False
notification_driver=cinder.openstack.common.notifier.rpc_notifier
rpc_backend=rabbit
control_exchange=openstack
osapi_volume_listen=0.0.0.0
osapi_volume_workers=8
backup_swift_url=http://10.5.0.11:8080/v1/AUTH_
backup_swift_container=volumes_backup
backup_swift_object_size=52428800
backup_swift_retry_attempts=3
backup_swift_retry_backoff=2
backup_driver=cinder.backup.drivers.swift
api_paste_config=/etc/cinder/api-paste.ini
glance_host=10.5.0.11
backup_topic=cinder-backup
backup_manager=cinder.backup.manager.BackupManager
storage_availability_zone=nova
default_availability_zone=nova
backup_api_class=cinder.backup.api.API
auth_strategy=keystone
enabled_backends=lvm
backup_name_template=backup-%s
debug=False
verbose=True
log_dir=/var/log/cinder
use_syslog=False
**volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver**
[BRCD_FABRIC_EXAMPLE]
[CISCO_FABRIC_EXAMPLE]
[database]
connection=mysql://cinder:<redacted>@10.5.0.11/cinder
idle_timeout=3600
[fc-zone-manager]
[keymgr]
[keystone_authtoken]
auth_uri=http://10.5.0.11:5000/v2.0/
identity_uri=http://10.5.0.11:35357
admin_user=cinder
admin_password=<redacted>
admin_tenant_name=service
[matchmaker_redis]
[matchmaker_ring]
[profiler]
[ssl]
[lvm]
iscsi_helper=lioadm
volume_group=cinder-volumes
iscsi_ip_address=10.5.0.11
volume_backend_name=lvm

vgs

VG             #PV #LV #SN Attr   VSize  VFree
VolGroup00       3   1   0 wz--n-  2.73t 746.52g
cinder-volumes   1   0   0 wz--n- 20.00g  20.00g

vgdisplay cinder-volumes

  --- Volume group ---
  VG Name               cinder-volumes
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               20.00 GiB
  PE Size               4.00 MiB
  Total PE              5119
  Alloc PE / Size       0 / 0
  Free  PE / Size       5119 / 20.00 GiB
  VG UUID               xXLZap-Wdcr-gmKE-6l9S-gzer-8OcC-j910Us

Update 1

target.service - Restore LIO kernel target configuration
   Loaded: loaded (/usr/lib/systemd/system/target.service; enabled)
   Active: active (exited) since Mon 2014-11-24 19:47:43 UTC; 16min ago
  Process: 1988 ExecStart=/usr/bin/targetctl restore (code=exited, status=0/SUCCESS)
 Main PID: 1988 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/target.service

Nov 24 19:47:40 os-node-1 systemd[1]: Starting Restore LIO kernel target configuration...
Nov 24 19:47:43 os-node-1 target[1988]: No saved config file at /etc/target/saveconfig.json, ok, exiting
Nov 24 19:47:43 os-node-1 ...
(more)
edit retag flag offensive close merge delete

Comments

volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver seems to be located in [DEFAULT] section
Would try :

[lvm]
iscsi_helper=lioadm
volume_group=cinder-volumes
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver
iscsi_ip_address=10.5.0.11
volume_backend_name=lvm
dbaxps gravatar imagedbaxps ( 2014-11-24 13:31:37 -0500 )edit

Please,upload somewhere /etc/target/saveconfig.json on Storage Node ( where daemon target is running)

dbaxps gravatar imagedbaxps ( 2014-11-24 13:36:47 -0500 )edit

I tried that prior, actually had it in both sections, and I just took it out of default section and put it only in lvm section, but getting the same error in volume.log. I don't know if it's related, but I also get this in the scheduler.log: <cont>

patrickt33 gravatar imagepatrickt33 ( 2014-11-24 13:41:07 -0500 )edit

Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

patrickt33 gravatar imagepatrickt33 ( 2014-11-24 13:41:12 -0500 )edit

I also presume that a kind of :-

pvcreate  /dev/sdb(x)
vgcreate cinder-volumes /dev/sdb(x)

has been run.

dbaxps gravatar imagedbaxps ( 2014-11-24 13:48:13 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-11-25 08:24:45 -0500

patrickt33 gravatar image

I finally found this question: https://ask.openstack.org/en/question... which said to give cinder user sudo with no password privileges. Doing that has resolved the issue of driver initialization and I can create volumes. Although I'm not sure whether I'm supposed to create iscsi of lvms volume types, I will have to experiment with that.

edit flag offensive delete link more

Comments

I have the entries

[root@juno1 ~(keystone_admin)]# cat  /etc/sudoers.d/cinder
Defaults:cinder !requiretty

cinder ALL = (root) NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf *

generated by packstack and nothing else is needed.

dbaxps gravatar imagedbaxps ( 2014-11-25 09:42:17 -0500 )edit

I have that as well, but it doesn't work unless I add cinder to the wheel group. Had to do the same with nova and neutron. Wondering if my kickstart script is somehow removing an include statement from the sudoers file? Do you have something like that in /etc/sudoers?

patrickt33 gravatar imagepatrickt33 ( 2014-11-25 09:44:48 -0500 )edit

No. /etc/sudoers doesn't have cinder's entry.

dbaxps gravatar imagedbaxps ( 2014-11-25 09:56:32 -0500 )edit

No, I meant does your sudoers file have a #include directive?

patrickt33 gravatar imagepatrickt33 ( 2014-11-26 06:42:42 -0500 )edit

It's commented out

#includedir /etc/sudoers.d
dbaxps gravatar imagedbaxps ( 2014-11-26 06:46:27 -0500 )edit
0

answered 2014-11-25 02:40:09 -0500

dbaxps gravatar image

You /etc/cinder/cinder.conf contains one error , which should generate error messages to /var/log/cinder/scheduler.log regarding access to port 5672

rpc_backend=cinder.openstack.common.rpc.impl_kombu

View http://docs.openstack.org/havana/inst...

edit flag offensive delete link more

Comments

That doc references Havana and is contrary to the Juno docs which say rpc_backend should be rabbit. http://docs.openstack.org/juno/instal... .

patrickt33 gravatar imagepatrickt33 ( 2014-11-25 08:05:05 -0500 )edit

I tried it anyway. Scheduler log shows that success connection to AMQP on 5672 (it always has), still getting driver initialization error.

patrickt33 gravatar imagepatrickt33 ( 2014-11-25 08:05:40 -0500 )edit

If it helps, I've posted the output of cinder-scheduler and cinder-volume restarts as Update 2.

patrickt33 gravatar imagepatrickt33 ( 2014-11-25 08:13:37 -0500 )edit

What OS are you running ?

dbaxps gravatar imagedbaxps ( 2014-11-25 09:54:29 -0500 )edit

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: 2014-11-24 12:52:46 -0500

Seen: 6,976 times

Last updated: Nov 25 '14