Provide unique names on taskflow operations

The vscsi taskflow operations should be given unique names.  If not, the
duplicate names can occur when there are multiple Virtual I/O Servers.

Change-Id: Ib095fec0d7a083d929e810112a08b4aa79ba7228
Closes-Bug: 1486045
This commit is contained in:
Drew Thorstensen 2015-08-18 10:20:02 -04:00
parent 108b836155
commit be81ba4984
1 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,8 @@ class VscsiVolumeAdapter(v_driver.FibreChannelVolumeAdapter):
"%(disk)s from the Virtual I/O Server."),
{'disk': device_name})
LOG.warn(e)
self.tx_mgr.add_post_execute(task.FunctorTask(rm_hdisk))
name = 'rm_hdisk_%s_%s' % (vio_wrap.name, device_name)
self.tx_mgr.add_post_execute(task.FunctorTask(rm_hdisk, name=name))
def wwpns(self):
"""Builds the WWPNs of the adapters that will connect the ports.