Revision history [back]

click to hide/show revision 1
initial version

cinder volume creation error.

cat /var/log/cinder/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 ~]# cat /var/log/cinder/volume.log 2016-02-24 14:16:12.858 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Caught SIGTERM, stopping children 2016-02-24 14:16:12.860 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Waiting on 1 children to exit 2016-02-24 14:16:12.861 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Child 4061 killed by signal 15 2016-02-24 14:16:13.910 8654 INFO cinder.volume.manager [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Determined volume DB was not empty at startup. 2016-02-24 14:16:13.919 8654 WARNING cinder.volume.targets.lio [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] The lio_initiator_iqns option has been deprecated and no longer has any effect. 2016-02-24 14:16:14.018 8654 WARNING cinder.volume.drivers.lvm [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] LVMISCSIDriver is deprecated, you should now just use LVMVolumeDriver and specify target_helper for the target driver you wish to use. 2016-02-24 14:16:14.020 8654 INFO cinder.openstack.common.service [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Starting 1 workers 2016-02-24 14:16:14.024 8654 INFO cinder.openstack.common.service [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Started child 8670 2016-02-24 14:16:14.025 8670 INFO cinder.service [-] Starting cinder-volume node (version 2015.1.1) 2016-02-24 14:16:14.026 8670 INFO cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] Starting volume driver LVMISCSIDriver (3.0.0) 2016-02-24 14:16:14.127 8670 ERROR cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] Error encountered during initialization of driver: LVMISCSIDriver 2016-02-24 14:16:14.128 8670 ERROR cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] 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 8672: /usr/bin/python2\n Volume group "cinder-volumes" not found\n Cannot process volume group cinder-volumes\n' 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager Traceback (most recent call last): 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 302, in init_host 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager self.driver.check_for_setup_error() 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager return f(args, *kwargs) 2016-02-24 14:16:14.128 8670 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 14:16:14.128 8670 TRACE cinder.volume.manager lvm_conf=lvm_conf_file) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 86, in __init__ 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager if self._vg_exists() is False: 2016-02-24 14:16:14.128 8670 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 14:16:14.128 8670 TRACE cinder.volume.manager run_as_root=True) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 143, in execute 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager return processutils.execute(cmd, *kwargs) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 233, in execute 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager cmd=sanitized_cmd) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager ProcessExecutionError: Unexpected error while running command. 2016-02-24 14:16:14.128 8670 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 14:16:14.128 8670 TRACE cinder.volume.manager Exit code: 5 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager Stdout: u'' 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager Stderr: u'File descriptor 7 (/dev/urandom) leaked on vgs invocation. Parent PID 8672: /usr/bin/python2\n Volume group "cinder-volumes" not found\n Cannot process volume group cinder-volumes\n' 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager 2016-02-24 14:16:14.161 8670 INFO oslo_messaging._drivers.impl_rabbit [req-3b29ba3c-4f81-47df-9697-6aba989e43ee - - - - -] Connecting to AMQP server on dickens:5672 2016-02-24 14:16:14.173 8670 INFO oslo_messaging._drivers.impl_rabbit [req-3b29ba3c-4f81-47df-9697-6aba989e43ee - - - - -] Connected to AMQP server on dickens:5672 2016-02-24 14:18:02.184 8670 INFO cinder.volume.manager [req-fbea23cd-9a53-4e6f-8a56-98c75b5e3f8a - - - - -] Updating volume status 2016-02-24 14:18:02.185 8670 WARNING cinder.volume.manager [req-fbea23cd-9a53-4e6f-8a56-98c75b5e3f8a - - - - -] Unable to update stats, LVMISCSIDriver -3.0.0 driver is uninitialized.

[root@dickens ~]# 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

cinder volume creation error.

 cat /var/log/cinder/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 **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) 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

dickens:5672 [root@dickens ~]# cat /var/log/cinder/volume.log 2016-02-24 14:16:12.858 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Caught SIGTERM, stopping children 2016-02-24 14:16:12.860 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Waiting on 1 children to exit 2016-02-24 14:16:12.861 1579 INFO cinder.openstack.common.service [req-0349c689-a534-487f-aee4-c973d2cf7e16 - - - - -] Child 4061 killed by signal 15 2016-02-24 14:16:13.910 8654 INFO cinder.volume.manager [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Determined volume DB was not empty at startup. 2016-02-24 14:16:13.919 8654 WARNING cinder.volume.targets.lio [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] The lio_initiator_iqns option has been deprecated and no longer has any effect. 2016-02-24 14:16:14.018 8654 WARNING cinder.volume.drivers.lvm [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] LVMISCSIDriver is deprecated, you should now just use LVMVolumeDriver and specify target_helper for the target driver you wish to use. 2016-02-24 14:16:14.020 8654 INFO cinder.openstack.common.service [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Starting 1 workers 2016-02-24 14:16:14.024 8654 INFO cinder.openstack.common.service [req-375dbfe8-1918-4613-9c53-d21661ea2894 - - - - -] Started child 8670 2016-02-24 14:16:14.025 8670 INFO cinder.service [-] Starting cinder-volume node (version 2015.1.1) 2016-02-24 **2016-02-24 14:16:14.026 8670 INFO cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] Starting volume driver LVMISCSIDriver (3.0.0) 2016-02-24 14:16:14.127 8670 ERROR cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] Error encountered during initialization of driver: LVMISCSIDriver 2016-02-24 14:16:14.128 8670 ERROR cinder.volume.manager [req-803411c2-f708-40b9-ba41-24eb7dd102b1 - - - - -] 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 8672: /usr/bin/python2\n Volume group "cinder-volumes" not found\n Cannot process volume group cinder-volumes\n' cinder-volumes\n'** 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager Traceback (most recent call last): 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 302, in init_host 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager self.driver.check_for_setup_error() 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 105, in wrapper 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager return f(args, *kwargs) f(*args, **kwargs) 2016-02-24 14:16:14.128 8670 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 14:16:14.128 8670 TRACE cinder.volume.manager lvm_conf=lvm_conf_file) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/brick/local_dev/lvm.py", line 86, in __init__ 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager if self._vg_exists() is False: 2016-02-24 14:16:14.128 8670 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 14:16:14.128 8670 TRACE cinder.volume.manager run_as_root=True) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/cinder/utils.py", line 143, in execute 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager return processutils.execute(cmd, *kwargs) processutils.execute(*cmd, **kwargs) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager File "/usr/lib/python2.7/site-packages/oslo_concurrency/processutils.py", line 233, in execute 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager cmd=sanitized_cmd) 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager ProcessExecutionError: Unexpected error while running command. 2016-02-24 14:16:14.128 8670 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 14:16:14.128 8670 TRACE cinder.volume.manager Exit code: 5 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager Stdout: u'' 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager Stderr: u'File descriptor 7 (/dev/urandom) leaked on vgs invocation. Parent PID 8672: /usr/bin/python2\n Volume group "cinder-volumes" not found\n Cannot process volume group cinder-volumes\n' 2016-02-24 14:16:14.128 8670 TRACE cinder.volume.manager 2016-02-24 14:16:14.161 8670 INFO oslo_messaging._drivers.impl_rabbit [req-3b29ba3c-4f81-47df-9697-6aba989e43ee - - - - -] Connecting to AMQP server on dickens:5672 2016-02-24 14:16:14.173 8670 INFO oslo_messaging._drivers.impl_rabbit [req-3b29ba3c-4f81-47df-9697-6aba989e43ee - - - - -] Connected to AMQP server on dickens:5672 2016-02-24 14:18:02.184 8670 INFO cinder.volume.manager [req-fbea23cd-9a53-4e6f-8a56-98c75b5e3f8a - - - - -] Updating volume status 2016-02-24 14:18:02.185 8670 WARNING cinder.volume.manager [req-fbea23cd-9a53-4e6f-8a56-98c75b5e3f8a - - - - -] Unable to update stats, LVMISCSIDriver -3.0.0 driver is uninitialized.

uninitialized. [root@dickens ~]# 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