The update_migrated_volume() function on volume/manager.py calls the update_migrated_volume() from the driver. If the driver does not implement the function, the manager falls back (by catching the NotImplementedError exception ) and implements a default behavior, not renaming the volume.
If the driver does not have the function implemented, the migration will fail as in this case, an AttributeError exception will be raised.
-------------------------------------
ERROR oslo_messaging.rpc.dispatcher [req-9c63bb4d-0ac2-46c4-9ed1-38628ea32ac1 407e8cfe21514420be000cd21de3e27f f09e3a587762408e94db26143ff68486] Exception during messag
e handling: 'HDSNFSDriver' object has no attribute 'update_migrated_volume'
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 105, in wrapper
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher return f(*args, **kwargs)
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/cinder/cinder/volume/manager.py", line 2583, in update_migrated_volume
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher model_update = self.driver.update_migrated_volume(ctxt,
2015-06-22 12:25:01.954 TRACE oslo_messaging.rpc.dispatcher AttributeError: 'HDSNFSDriver' object has no attribute 'update_migrated_volume'
This is broken for the NFS driver as well.
2015-07-27 15:20:46.695 TRACE oslo_messaging. rpc.dispatcher Traceback (most recent call last): rpc.dispatcher rpc.dispatcher File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 142, in _dispatch_and_reply rpc.dispatcher executor_callback)) rpc.dispatcher rpc.dispatcher File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 186, in _dispatch rpc.dispatcher executor_callback) rpc.dispatcher rpc.dispatcher File "/usr/lib/ python2. 7/site- packages/ oslo_messaging/ rpc/dispatcher. py", line 129, in _do_dispatch rpc.dispatcher result = func(ctxt, **new_args) rpc.dispatcher rpc.dispatcher File "/usr/lib/ python2. 7/site- packages/ osprofiler/ profiler. py", line 105, in wrapper rpc.dispatcher return f(*args, **kwargs) rpc.dispatcher rpc.dispatcher File "/usr/lib/ python2. 7/site- packages/ osprofiler/ profiler. py", line 105, in wrapper rpc.dispatcher return f(*args, **kwargs) rpc.dispatcher rpc.dispatcher File "/opt/stack/ cinder/ cinder/ volume/ manager. py", line 2597, in update_ migrated_ volume rpc.dispatcher model_update = self.driver. update_ migrated_ volume( ctxt, rpc.dispatcher rpc.dispatcher AttributeError: 'NfsDriver' object has no attribute 'update_ migrated_ volume' rpc.dispatcher rpc.dispatcher
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.
2015-07-27 15:20:46.695 TRACE oslo_messaging.