Why i can't get my cinder-volume service started ?
I installed openstack grizzly followed the guide, Service cinder-api and service-scheduler is ok but I can't get my cinder-volume service started, please help, tks.
The cinder-volume.log:
2013-08-10 15:21:29 INFO [cinder.service] Starting 1 workers
2013-08-10 15:21:29 INFO [cinder.service] Started child 7218
2013-08-10 15:21:29 AUDIT [cinder.service] Starting cinder-volume node (version 2013.1.2)
2013-08-10 15:21:30 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 149, in init_host
self.driver.ensure_export(ctxt, volume)
File "/usr/lib/python2.7/dist-packages/cinder/volume/drivers/lvm.py", line 391, in ensure_export
old_name=old_name)
File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 225, in create_iscsi_target
self._new_target(name, tid, **kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 284, in _new_target
**kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 73, in _run
self._execute(self._cmd, *args, run_as_root=True, **kwargs)
File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 145, in execute
'to utils.execute: %r') % kwargs)
Error: Got unknown keyword args to utils.execute: {'old_name': None}
2013-08-10 15:21:30 INFO [cinder.service] Child 7218 exited with status 2
2013-08-10 15:21:30 INFO [cinder.service] _wait_child 1
2013-08-10 15:21:30 INFO [cinder.service] wait wrap.failed True
my cinder.conf:
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = ietadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
sql_connection = mysql://cinder:password@localhost/cinder
rabbit_password = password
In my control node:
root@cloud02:~# service iscsitarget status
* iSCSI enterprise target is running
root@cloud02:~# service open-iscsi status
* iscsid is running
* Current active iSCSI sessions: iscsiadm: No active sessions.
root@cloud02:~# lsof -i:3260
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
ietd 19137 root 7u IPv4 12646743 0t0 TCP *:3260 (LISTEN)
ietd 19137 root 9u IPv6 12646744 0t0 TCP *:3260 (LISTEN)
root@cloud02:~# vgdisplay
--- Volume group ---
VG Name cinder-volumes
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 39
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 93.13 GiB
PE Size 4.00 MiB
Total PE 23841
Alloc PE / Size 8192 / 32.00 GiB
Free PE / Size 15649 / 61.13 GiB
VG UUID LApmGn-C3aQ-e2em-GZeB-1qQh-uKSJ-pqNqqV
I also have the same. Cinder volume created on physical hard drive. earliar it was doing ok. but after changing the network and reboot it is not.