Under certain conditions detaching a multipath device may result on failure when flushing one of the individual paths, but the disconnect should have succeeded, because there were other paths available to flush all the data.
Here's an example of a failure during a live migration, but the same error can happen on a normal multipathed volume detach.
2018-07-06 12:57:29,570.570 32255 DEBUG oslo_messaging._drivers.amqpdriver [req-896a0a06-2810-42d3-a0c1-dff100fd6762 1eaf607c59da4f3c93930252dd1d4fe6 6da93dd1cfc8407f9f8f6693dbb0c606 - - -] CAST unique_id: 6d93265823de41af99b2f83f4d27c9b0 NOTIFY exchange 'nova' topic 'ver
sioned_notifications.error' _send /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/amqpdriver.py:479
2018-07-06 12:57:29,572.572 32255 WARNING nova.virt.libvirt.driver [req-896a0a06-2810-42d3-a0c1-dff100fd6762 1eaf607c59da4f3c93930252dd1d4fe6 6da93dd1cfc8407f9f8f6693dbb0c606 - - -] [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Error monitoring migration: Unexpected er
ror while running command.
Command: blockdev --flushbufs /dev/sdan
Exit code: 1
Stdout: u''
Stderr: u'blockdev: cannot open /dev/sdan: No such device or address\n'
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Traceback (most recent call last):
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6406, in _live_migration
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] finish_event, disk_paths)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6316, in _live_migration_monitor
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] migrate_data)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/exception_wrapper.py", line 75, in wrapped
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] function_name, call_dict, binary)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] self.force_reraise()
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] six.reraise(self.type_, self.value, self.tb)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/exception_wrapper.py", line 66, in wrapped
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] return f(self, context, *args, **kw)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 216, in decorated_function
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] kwargs['instance'], e, sys.exc_info())
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] self.force_reraise()
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] six.reraise(self.type_, self.value, self.tb)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 204, in decorated_function
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] return function(self, context, *args, **kwargs)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 5437, in _post_live_migration
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] migrate_data)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 6774, in post_live_migration
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] self._disconnect_volume(connection_info, disk_dev)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1104, in _disconnect_volume
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] vol_driver.disconnect_volume(connection_info, disk_dev)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume/iscsi.py", line 74, in disconnect_volume
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] self.connector.disconnect_volume(connection_info['data'], None)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/utils.py", line 145, in trace_logging_wrapper
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] result = f(*args, **kwargs)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] return f(*args, **kwargs)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connectors/iscsi.py", line 830, in disconnect_volume
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] ignore_errors=ignore_errors)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/initiator/connectors/iscsi.py", line 867, in _cleanup_connection
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] force, exc)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/initiator/linuxscsi.py", line 226, in remove_connection
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] self.remove_scsi_device('/dev/' + device_name, force, exc)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/initiator/linuxscsi.py", line 73, in remove_scsi_device
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] self.flush_device_io(device)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/initiator/linuxscsi.py", line 256, in flush_device_io
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] interval=10, root_helper=self._root_helper)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/executor.py", line 52, in _execute
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] result = self.__execute(*args, **kwargs)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/os_brick/privileged/rootwrap.py", line 169, in execute
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] return execute_root(*cmd, **kwargs)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/oslo_privsep/priv_context.py", line 204, in _wrap
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] return self.channel.remote_call(name, args, kwargs)
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] File "/usr/lib/python2.7/site-packages/oslo_privsep/daemon.py", line 187, in remote_call
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] raise exc_type(*result[2])
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] ProcessExecutionError: Unexpected error while running command.
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Command: blockdev --flushbufs /dev/sdan
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Exit code: 1
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Stdout: u''
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Stderr: u'blockdev: cannot open /dev/sdan: No such device or address\n'
2018-07-06 12:57:29,572.572 32255 ERROR nova.virt.libvirt.driver [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff]
2018-07-06 12:57:29,573.573 32255 DEBUG nova.virt.libvirt.driver [req-896a0a06-2810-42d3-a0c1-dff100fd6762 1eaf607c59da4f3c93930252dd1d4fe6 6da93dd1cfc8407f9f8f6693dbb0c606 - - -] [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Live migration monitoring is all done _live_migration /usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py:6413
2018-07-06 12:57:29,573.573 32255 ERROR nova.compute.manager [req-896a0a06-2810-42d3-a0c1-dff100fd6762 1eaf607c59da4f3c93930252dd1d4fe6 6da93dd1cfc8407f9f8f6693dbb0c606 - - -] [instance: fe9aedfe-eee5-4ebc-926b-05a49dc950ff] Live migration failed.
Fix proposed to branch: master /review. openstack. org/589235
Review: https:/