Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ERROR cinder.volume.manager [] Error encountered during initialization of driver: LVMISCSIDriver

cat /var/log/cinder/volume.log 2016-02-24 13:15:06.130 11508 INFO cinder.openstack.common.service [req-f272ae84-750a-4d42-91d2-dc667d92bd4f - - - - -] Caught SIGTERM, stopping children 2016-02-24 13:15:06.134 11508 INFO cinder.openstack.common.service [req-f272ae84-750a-4d42-91d2-dc667d92bd4f - - - - -] Waiting on 1 children to exit 2016-02-24 13:15:06.135 11508 INFO cinder.openstack.common.service [req-f272ae84-750a-4d42-91d2-dc667d92bd4f - - - - -] Child 11534 killed by signal 15 2016-02-24 13:15:07.119 17022 INFO cinder.volume.manager [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] Determined volume DB was not empty at startup. 2016-02-24 13:15:07.131 17022 WARNING cinder.volume.targets.lio [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] The lio_initiator_iqns option has been deprecated and no longer has any effect. 2016-02-24 13:15:07.235 17022 WARNING cinder.volume.drivers.lvm [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] LVMISCSIDriver is deprecated, you should now just use LVMVolumeDriv er and specify target_helper for the target driver you wish to use. 2016-02-24 13:15:07.239 17022 INFO cinder.openstack.common.service [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] Starting 1 workers 2016-02-24 13:15:07.244 17022 INFO cinder.openstack.common.service [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] Started child 17037 2016-02-24 13:15:07.246 17037 INFO cinder.service [-] Starting cinder-volume node (version 2015.1.1) 2016-02-24 13:15:07.249 17037 INFO cinder.volume.manager [req-d659f632-91ca-4258-b1d0-92e2131a1e4a - - - - -] Starting volume driver LVMISCSIDriver (3.0.0) 2016-02-24 13:15:07.374 17037 ERROR cinder.volume.manager [req-d659f632-91ca-4258-b1d0-92e2131a1e4a - - - - -] Error encountered during initialization of driver: LVMISCSIDriver 2016-02-24 13:15:07.375 17037 ERROR cinder.volume.manager [req-d659f632-91ca-4258-b1d0-92e2131a1e4a - - - - -] Unexpected error while running command. Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o name cinder-volumes Exit code: 5 Stdout: u'' Stderr: u'File descriptor 7 (/dev/urandom) leaked on vgs invocation. Parent PID 17039: /usr/bin/python2\n Volume group "cinder-volumes" not found\n Cannot process volume group cinder -volumes\n' 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Traceback (most recent call last): 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 302, in init_host 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager self.driver.check_for_setup_error() 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager return f(args, *kwargs) 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 263, in check_for_setup_error 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager lvm_conf=lvm_conf_file) 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 86, in __init__ 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager if self._vg_exists() is False: 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 123, in _vg_exists 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager run_as_root=True) 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 143, in execute 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager return processutils.execute(cmd, *kwargs) 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 233, in execute 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager cmd=sanitized_cmd) 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager ProcessExecutionError: Unexpected error while running command. 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o name cinder-volumes 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Exit code: 5 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Stdout: u'' 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Stderr: u'File descriptor 7 (/dev/urandom) leaked on vgs invocation. Parent PID 17039: /usr/bin/python2\n Volume group "cinde r-volumes" not found\n Cannot process volume group cinder-volumes\n' 2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager 2016-02-24 13:15:07.408 17037 INFO oslo_messaging._drivers.impl_rabbit [req-7d99472b-ac32-497c-a250-3541b40e825a - - - - -] Connecting to AMQP server on dickens:5672 2016-02-24 13:15:07.421 17037 INFO oslo_messaging._drivers.impl_rabbit [req-7d99472b-ac32-497c-a250-3541b40e825a - - - - -] Connected to AMQP server on dickens:5672 2016-02-24 13:17:04.433 17037 INFO cinder.volume.manager [req-b4f00b7d-6ff5-47bd-9117-390bb17a8c3b - - - - -] Updating volume status 2016-02-24 13:17:04.435 17037 WARNING cinder.volume.manager [req-b4f00b7d-6ff5-47bd-9117-390bb17a8c3b - - - - -] Unable to update stats, LVMISCSIDriver -3.0.0 driver is uninitialized. at scheduler.log 2016-02-24 13:26:43.035 1610 INFO cinder.openstack.common.service [req-fa684b1b-a8cd-4cb7-8f29-da1c81a9ed46 - - - - -] Caught SIGTERM, exiting 2016-02-24 13:42:27.755 1583 WARNING oslo_db.sqlalchemy.session [req-acc9bced-2f6a-4b8e-b29f-fa9c50d102bb - - - - -] SQL connection failed. 10 attempts left. 2016-02-24 13:42:37.947 1583 WARNING cinder.scheduler.host_manager [req-acc9bced-2f6a-4b8e-b29f-fa9c50d102bb - - - - -] volume service is down. (host: dickens) 2016-02-24 13:42:37.957 1583 INFO cinder.service [-] Starting cinder-scheduler node (version 2015.1.1) 2016-02-24 13:42:37.975 1583 INFO oslo_messaging._drivers.impl_rabbit [req-4122bd99-67e2-4bb5-8012-cb91e1c48b7a - - - - -] Connecting to AMQP server on dickens:5672 2016-02-24 13:42:37.987 1583 INFO oslo_messaging._drivers.impl_rabbit [req-4122bd99-67e2-4bb5-8012-cb91e1c48b7a - - - - -] Connected to AMQP server on dickens:5672 2016-02-24 13:42:38.001 1583 INFO oslo_messaging._drivers.impl_rabbit [req-8f3c371d-04fd-4f82-9063-28a554d58173 - - - - -] Connecting to AMQP server on dickens:5672 2016-02-24 13:42:38.012 1583 INFO oslo_messaging._drivers.impl_rabbit [req-8f3c371d-04fd-4f82-9063-28a554d58173 - - - - -] Connected to AMQP server on dickens:5672 [root@dickens cinder]# cat /etc/cinder/cinder.conf [DEFAULT] logdir = /var/log/cinder state_path = /var/lib/cinder lock_path = /var/lib/cinder/tmp volumes_dir = /etc/cinder/volumes iscsi_protocol = iscsi iscsi_helper = lioadm rootwrap_config = /etc/cinder/rootwrap.conf auth_strategy = keystone rpc_backend = rabbit my_ip = 10.54.58.48 verbose = True glance_host = dickens

[database] connection = mysql://cinder:sonus1@dickens/cinder

[keystone_authtoken] auth_uri = http://dickens:5000 auth_url = http://dickens:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = cinder password = cinder

[oslo_messaging_rabbit] rabbit_host = dickens rabbit_userid = openstack rabbit_password = rabbit1

[oslo_concurrency] lock_path = /var/lock/cinder

REQUIRED SETTINGS

VIP of your Virtual Storage Appliance (VSA).

san_ip=10.54.225.10

LeftHand Super user username

san_login=admin

LeftHand Super user password

san_password=admin

LeftHand ssh port, the default for the VSA is usually 16022.

san_ssh_port=16022

LeftHand cluster to use for volume creation

san_clustername=CLUS1

LeftHand iSCSI driver

volume_driver=cinder.volume.drivers.san.hp.hp_lefthand_iscsi.HPLeftHandISCSIDriver

ERROR cinder.volume.manager [] Error encountered during initialization of driver: LVMISCSIDriver

 cat /var/log/cinder/volume.log
2016-02-24 13:15:06.130 11508 INFO cinder.openstack.common.service [req-f272ae84-750a-4d42-91d2-dc667d92bd4f - - - - -] Caught SIGTERM, stopping children
2016-02-24 13:15:06.134 11508 INFO cinder.openstack.common.service [req-f272ae84-750a-4d42-91d2-dc667d92bd4f - - - - -] Waiting on 1 children to exit
2016-02-24 13:15:06.135 11508 INFO cinder.openstack.common.service [req-f272ae84-750a-4d42-91d2-dc667d92bd4f - - - - -] Child 11534 killed by signal 15
2016-02-24 13:15:07.119 17022 INFO cinder.volume.manager [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] Determined volume DB was not empty at startup.
2016-02-24 13:15:07.131 17022 WARNING cinder.volume.targets.lio [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] The lio_initiator_iqns option has been deprecated and no longer has              any effect.
2016-02-24 13:15:07.235 17022 WARNING cinder.volume.drivers.lvm [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] LVMISCSIDriver is deprecated, you should now just use LVMVolumeDriv             er and specify target_helper for the target driver you wish to use.
2016-02-24 13:15:07.239 17022 INFO cinder.openstack.common.service [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] Starting 1 workers
2016-02-24 13:15:07.244 17022 INFO cinder.openstack.common.service [req-6305ad11-eb2b-4b51-8ea5-a919eaa6bfc1 - - - - -] Started child 17037
2016-02-24 13:15:07.246 17037 INFO cinder.service [-] Starting cinder-volume node (version 2015.1.1)
2016-02-24 13:15:07.249 17037 INFO cinder.volume.manager [req-d659f632-91ca-4258-b1d0-92e2131a1e4a - - - - -] Starting volume driver LVMISCSIDriver (3.0.0)
2016-02-24 13:15:07.374 17037 ERROR cinder.volume.manager [req-d659f632-91ca-4258-b1d0-92e2131a1e4a - - - - -] Error encountered during initialization of driver: LVMISCSIDriver
2016-02-24 13:15:07.375 17037 ERROR cinder.volume.manager [req-d659f632-91ca-4258-b1d0-92e2131a1e4a - - - - -] Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o name cinder-volumes
Exit code: 5
Stdout: u''
Stderr: u'File descriptor 7 (/dev/urandom) leaked on vgs invocation. Parent PID 17039: /usr/bin/python2\n  Volume group "cinder-volumes" not found\n  Cannot process volume group cinder             -volumes\n'
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Traceback (most recent call last):
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 302, in init_host
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager     self.driver.check_for_setup_error()
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager     return f(args, *kwargs)
f(*args, **kwargs)
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/lvm.py", line 263, in check_for_setup_error
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager     lvm_conf=lvm_conf_file)
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 86, in __init__
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager     if self._vg_exists() is False:
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 123, in _vg_exists
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager     run_as_root=True)
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 143, in execute
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager     return processutils.execute(cmd, *kwargs)
processutils.execute(*cmd, **kwargs)
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager   File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 233, in execute
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager     cmd=sanitized_cmd)
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager ProcessExecutionError: Unexpected error while running command.
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C vgs --noheadings -o name cinder-volumes
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Exit code: 5
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Stdout: u''
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager Stderr: u'File descriptor 7 (/dev/urandom) leaked on vgs invocation. Parent PID 17039: /usr/bin/python2\n  Volume group "cinde             r-volumes" not found\n  Cannot process volume group cinder-volumes\n'
2016-02-24 13:15:07.375 17037 TRACE cinder.volume.manager
2016-02-24 13:15:07.408 17037 INFO oslo_messaging._drivers.impl_rabbit [req-7d99472b-ac32-497c-a250-3541b40e825a - - - - -] Connecting to AMQP server on dickens:5672
2016-02-24 13:15:07.421 17037 INFO oslo_messaging._drivers.impl_rabbit [req-7d99472b-ac32-497c-a250-3541b40e825a - - - - -] Connected to AMQP server on dickens:5672
2016-02-24 13:17:04.433 17037 INFO cinder.volume.manager [req-b4f00b7d-6ff5-47bd-9117-390bb17a8c3b - - - - -] Updating volume status
2016-02-24 13:17:04.435 17037 WARNING cinder.volume.manager [req-b4f00b7d-6ff5-47bd-9117-390bb17a8c3b - - - - -] Unable to update stats, LVMISCSIDriver -3.0.0  driver is uninitialized.
at scheduler.log
2016-02-24 13:26:43.035 1610 INFO cinder.openstack.common.service [req-fa684b1b-a8cd-4cb7-8f29-da1c81a9ed46 - - - - -] Caught SIGTERM, exiting
2016-02-24 13:42:27.755 1583 WARNING oslo_db.sqlalchemy.session [req-acc9bced-2f6a-4b8e-b29f-fa9c50d102bb - - - - -] SQL connection failed. 10 attempts left.
2016-02-24 13:42:37.947 1583 WARNING cinder.scheduler.host_manager [req-acc9bced-2f6a-4b8e-b29f-fa9c50d102bb - - - - -] volume service is down. (host: dickens)
2016-02-24 13:42:37.957 1583 INFO cinder.service [-] Starting cinder-scheduler node (version 2015.1.1)
2016-02-24 13:42:37.975 1583 INFO oslo_messaging._drivers.impl_rabbit [req-4122bd99-67e2-4bb5-8012-cb91e1c48b7a - - - - -] Connecting to AMQP server on dickens:5672
2016-02-24 13:42:37.987 1583 INFO oslo_messaging._drivers.impl_rabbit [req-4122bd99-67e2-4bb5-8012-cb91e1c48b7a - - - - -] Connected to AMQP server on dickens:5672
2016-02-24 13:42:38.001 1583 INFO oslo_messaging._drivers.impl_rabbit [req-8f3c371d-04fd-4f82-9063-28a554d58173 - - - - -] Connecting to AMQP server on dickens:5672
2016-02-24 13:42:38.012 1583 INFO oslo_messaging._drivers.impl_rabbit [req-8f3c371d-04fd-4f82-9063-28a554d58173 - - - - -] Connected to AMQP server on dickens:5672
[root@dickens cinder]# cat /etc/cinder/cinder.conf
[DEFAULT]
logdir = /var/log/cinder
state_path = /var/lib/cinder
lock_path = /var/lib/cinder/tmp
volumes_dir = /etc/cinder/volumes
iscsi_protocol = iscsi
iscsi_helper = lioadm
rootwrap_config = /etc/cinder/rootwrap.conf
auth_strategy = keystone
rpc_backend = rabbit
my_ip = 10.54.58.48
verbose = True
glance_host = dickens

dickens [database] connection = mysql://cinder:sonus1@dickens/cinder

mysql://cinder:sonus1@dickens/cinder [keystone_authtoken] auth_uri = http://dickens:5000 auth_url = http://dickens:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = cinder password = cinder

cinder [oslo_messaging_rabbit] rabbit_host = dickens rabbit_userid = openstack rabbit_password = rabbit1

rabbit1 [oslo_concurrency] lock_path = /var/lock/cinder

/var/lock/cinder ## REQUIRED SETTINGS

SETTINGS # VIP of your Virtual Storage Appliance (VSA).

san_ip=10.54.225.10

(VSA). san_ip=10.54.225.10 # LeftHand Super user username

san_login=admin

username san_login=admin # LeftHand Super user password

san_password=admin

password san_password=admin # LeftHand ssh port, the default for the VSA is usually 16022.

san_ssh_port=16022

16022. san_ssh_port=16022 # LeftHand cluster to use for volume creation

san_clustername=CLUS1

creation san_clustername=CLUS1 # LeftHand iSCSI driver

volume_driver=cinder.volume.drivers.san.hp.hp_lefthand_iscsi.HPLeftHandISCSIDriver

driver volume_driver=cinder.volume.drivers.san.hp.hp_lefthand_iscsi.HPLeftHandISCSIDriver