Ask Your Question
0

Why i can't get my cinder-volume service started ?

asked 2013-08-10 02:34:07 -0600

stevenbzb gravatar image

updated 2013-08-10 07:19:15 -0600

Jobin gravatar image

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
edit retag flag offensive close merge delete

Comments

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.

Yashjit gravatar imageYashjit ( 2013-09-20 06:52:56 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-03-18 03:35:35 -0600

kamlesh gravatar image

Change from iscsi_helper = ietadm to iscsi_helper = tgtdm.It will work.try it.

edit flag offensive delete link more
0

answered 2013-08-12 19:17:32 -0600

Mathias Ewald gravatar image

updated 2013-08-12 19:22:09 -0600

Hi, I have a similar problem:

2013-08-12 20:42:31     INFO [cinder.service] Starting 1 workers
2013-08-12 20:42:31     INFO [cinder.service] Started child 18960
2013-08-12 20:42:31    AUDIT [cinder.service] Starting cinder-volume node (version 2013.1.2)
2013-08-12 20:42:31    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-12 20:42:31     INFO [cinder.service] Child 18960 exited with status 2
2013-08-12 20:42:31     INFO [cinder.service] _wait_child 1
2013-08-12 20:42:31     INFO [cinder.service] wait wrap.failed True

Can anybody help?

edit flag offensive delete link more

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

2 followers

Stats

Asked: 2013-08-10 02:34:07 -0600

Seen: 1,777 times

Last updated: Mar 18 '14