keyword arg “oldname" to utils.execute prevents cinder-volume service from starting

Bug #1206480 reported by Pawel Koniszewski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

I'm using OpenStack Grizzly release. I tried to delete volume when cinder-volumes service was not running. This caused volume to be in 'deleting' state forever. Restarting of cinder-volumes raises that exception:

2013-07-30 13:41:15 INFO [cinder.service] Starting 1 workers
2013-07-30 13:41:15 INFO [cinder.service] Started child 21573
2013-07-30 13:41:15 AUDIT [cinder.service] Starting cinder-volume node (version 2013.1.2)
2013-07-30 13:41:15 INFO [cinder.volume.manager] volume volume-1cd7077b-6c24-4e14-8474-96785a638b74: skipping export
2013-07-30 13:41:15 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-07-30 13:41:15 INFO [cinder.service] Child 21573 exited with status 2
2013-07-30 13:41:15 INFO [cinder.service] _wait_child 1
2013-07-30 13:41:15 INFO [cinder.service] wait wrap.failed True

summary: - Cinder volume stucked in deleting state
+ keyword arg “oldname" to utils.execute prevents cinder-volume service
+ from starting
Revision history for this message
Xiaoxi Chen (xiaoxi-chen) wrote :

Hi,
   This bug has nothing to do with the volume in deleting status. It happens when cinder trying to export another volume in available status. It's a known bug which is reported and fixed after Cinder Havana-1, please refer to (https://bugs.launchpad.net/cinder/+bug/1175207) for more details.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.