Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove old_name from kwargs when using IET helper.
The IET driver passes the input kwargs from export
directly to the IET driver, but one of the keys here
is specifically for migration and a bug associated with
going from nova-vol to cinder-uuid's.

This patch just checks in the IET code if we have the key set
and if so pops it out before passing through to iet.

Fixes bug: 1175207

Change-Id: I965bdfbe078d61b906aebc48961c1806a9fb0c59
  • Loading branch information
j-griffith committed May 2, 2013
1 parent 11a949c commit db991e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cinder/volume/iscsi.py
Expand Up @@ -236,6 +236,10 @@ def _iotype(self, path):

def create_iscsi_target(self, name, tid, lun, path,
chap_auth=None, **kwargs):

# NOTE (jdg): Address bug: 1175207
kwargs.pop('old_name', None)

self._new_target(name, tid, **kwargs)
self._new_logicalunit(tid, lun, path, **kwargs)
if chap_auth is not None:
Expand Down

0 comments on commit db991e6

Please sign in to comment.