Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cinder Error Message

Hi, I am just getting started with OpenStack trying to install all the components on different virtual machines just in order not so screw up 5 services at once ;) I think I set up mysql, rabbitmq, keystone and glance (without switf) successfully and am now working on cinder.

Staring the cinder-volume service, I get the following error message:

root@cinder:~# cat /var/log/cinder/cinder-volume.log
2013-08-13 09:33:13     INFO [cinder.service] Starting 1 workers
2013-08-13 09:33:13     INFO [cinder.service] Started child 4020
2013-08-13 09:33:13    AUDIT [cinder.service] Starting cinder-volume node (version 2013.1.2)
2013-08-13 09:33:13    ERROR [cinder.service] Unhandled exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 227, in _start_child
    self._child_process(wrap.server)
  File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 204, in _child_process
    launcher.run_server(server)
  File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 95, in run_server
    server.start()
  File "/usr/lib/python2.7/dist-packages/cinder/service.py", line 355, in start
    self.manager.init_host()
  File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 143, in init_host
    self.driver.check_for_setup_error()
  File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 76, in check_for_setup_error
    run_as_root=True)
  File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 174, in execute
    shell=shell)
  File "/usr/lib/python2.7/dist-packages/eventlet/green/subprocess.py", line 25, in __init__
    subprocess_orig.Popen.__init__(self, args, 0, *argss, **kwds)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
2013-08-13 09:33:13     INFO [cinder.service] Child 4020 exited with status 2
2013-08-13 09:33:13     INFO [cinder.service] _wait_child 1
2013-08-13 09:33:13     INFO [cinder.service] wait wrap.failed True
root@cinder:~#

I set up the LVM2 volume group:

root@cinder:~# pvscan
  PV /dev/sdb   VG cinder-volumes   lvm2 [100.00 GiB / 100.00 GiB free]
  Total: 1 [100.00 GiB] / in use: 1 [100.00 GiB] / in no VG: 0 [0   ]
root@cinder:~# vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "cinder-volumes" using metadata type lvm2
root@cinder:~#

configured the filter

root@cinder:~# cat /etc/lvm/lvm.conf
...
    filter = [ "a/sdb/" ]
...
root@cinder:~#

and configured cinder like this:

root@cinder:~# cat /etc/cinder/cinder.conf                                                                                                                                
[DEFAULT]                                                                                                                                                                 
scheduler_driver=cinder.scheduler.filter_scheduler.FilterScheduler                                                                                                        
rootwrap_config = /etc/cinder/rootwrap.conf                                                                                                                               
sql_connection = mysql://cinder:password@10.10.10.3/cinder                                                                                                                
api_paste_confg = /etc/cinder/api-paste.ini                                                                                                                               

iscsi_helper = tgtadm                                                                                                                                                     
volume_driver=cinder.volume.drivers.lvm.LVMISCSIDriver                                                                                                                    
volume_name_template = volume-%s                                                                                                                                          
volume_group = cinder-volumes                                                                                                                                             

verbose = True                                                                                                                                                            
auth_strategy = keystone                                                                                                                                                  

logdir = /var/log/cinder                                                                                                                                                  
state_path=/var/lib/cinder                                                                                                                                                
lock_path=/var/lock/cinder                                                                                                                                                
volumes_dir = /var/lib/cinder/volumes                                                                                                                                     

rabbit_host = 10.10.10.5                                                                                                                                                  
rabbit_port = 5672                                                                                                                                                        
rabbit_use_ssl = false                                                                                                                                                    
rabbit_userid = guest                                                                                                                                                     
rabbit_password = *****                                                                                                                                                
rabbit_virtual_host = /

Cinder-scheduler starts successfully:

2013-08-13 21:22:50    AUDIT [cinder.service] SIGTERM received
2013-08-13 21:22:50    AUDIT [cinder.service] Starting cinder-scheduler node (version 2013.1.2)
2013-08-13 21:22:50     INFO [cinder.openstack.common.rpc.common] Connected to AMQP server on 10.10.10.5:5672
2013-08-13 21:22:50     INFO [cinder.openstack.common.rpc.common] Connected to AMQP server on 10.10.10.5:5672

and so does cinder-api:

2013-08-13 21:23:33    AUDIT [cinder.service] SIGTERM received
2013-08-13 21:23:33     INFO [cinder.wsgi] WSGI server has stopped.
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Initializing extension manager.
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-image-create
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-types-extra-specs
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-extended-snapshot-attributes
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: backups
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-volume-actions
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-quota-class-sets
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-vol-tenant-attr
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-hosts
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-vol-image-meta
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-vol-host-attr
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-admin-actions
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-quota-sets
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-types-manage
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-services
2013-08-13 21:23:34     INFO [keystoneclient.middleware.auth_token] Starting keystone auth_token middleware
2013-08-13 21:23:34     INFO [keystoneclient.middleware.auth_token] Using /var/lib/cinder as cache directory for signing certificate
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Initializing extension manager.
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-image-create
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-types-extra-specs
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-extended-snapshot-attributes
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: backups
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-volume-actions
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-quota-class-sets
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-vol-tenant-attr
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-hosts
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-vol-image-meta
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-vol-host-attr
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-admin-actions
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-quota-sets
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-types-manage
2013-08-13 21:23:34    AUDIT [cinder.api.extensions] Loaded extension: os-services
2013-08-13 21:23:34     INFO [keystoneclient.middleware.auth_token] Starting keystone auth_token middleware
2013-08-13 21:23:34     INFO [keystoneclient.middleware.auth_token] Using /var/lib/cinder as cache directory for signing certificate
2013-08-13 21:23:34     INFO [cinder.wsgi] Started osapi_volume on 0.0.0.0:8776

The error message cinder-volume shows (see above) is not very intuitive, so I have to more ideas what could be wrong with my config. Any ideas?

cheers Mathias