openstack(train) Nova does not support Cinder API version 2

zhang yan mryan.zhang at gmail.com
Tue Feb 28 08:26:56 UTC 2023


hi
      i setup a study environment refer to the Minimal deployment for Train(
https://docs.openstack.org/install-guide/openstack-services.html) . when i
finish the Block Storage service install, and create a volume successfully.
then i attach the volume to a compute instance, but the nova-compute log
hint:
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
[req-24fde26d-3665-492c-8ce6-067bd793b864 bf6dc19622da48e59a272fc3daa292e5
b99ceef1d97c4aac89d15c732a5e1b0a - default default] Exception during
message handling: UnsupportedCinderAPIVersion: Nova does not support Cinder
API version 2
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server Traceback
(most recent call last):
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 165,
in _process_incoming
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     res =
self.dispatcher.dispatch(message)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line
274, in dispatch
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
self._do_dispatch(endpoint, method, ctxt, args)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line
194, in _do_dispatch
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     result =
func(ctxt, **new_args)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/exception_wrapper.py", line 79, in
wrapped
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
function_name, call_dict, binary, tb)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
__exit__
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
self.force_reraise()
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
force_reraise
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
six.reraise(self.type_, self.value, self.tb)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/exception_wrapper.py", line 69, in
wrapped
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
f(self, context, *args, **kw)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/compute/utils.py", line 1372, in
decorated_function
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
function(self, context, *args, **kwargs)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 219, in
decorated_function
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
kwargs['instance'], e, sys.exc_info())
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
__exit__
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
self.force_reraise()
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
force_reraise
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
six.reraise(self.type_, self.value, self.tb)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 207, in
decorated_function
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
function(self, context, *args, **kwargs)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6126, in
attach_volume
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
do_attach_volume(context, instance, driver_bdm)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 328,
in inner
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
f(*args, **kwargs)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6124, in
do_attach_volume
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
bdm.destroy()
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in
__exit__
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
self.force_reraise()
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in
force_reraise
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
six.reraise(self.type_, self.value, self.tb)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6121, in
do_attach_volume
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
self._attach_volume(context, instance, driver_bdm)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6156, in
_attach_volume
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     context,
bdm['attachment_id'])
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 399, in
wrapper
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     res =
method(self, ctx, *args, **kwargs)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 450, in
wrapper
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     res =
method(self, ctx, attachment_id, *args, **kwargs)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/retrying.py", line 68, in wrapped_f
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
Retrying(*dargs, **dkw).call(f, *args, **kw)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/retrying.py", line 223, in call
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     return
attempt.get(self._wrap_exception)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/retrying.py", line 261, in get
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
six.reraise(self.value[0], self.value[1], self.value[2])
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/retrying.py", line 217, in call
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     attempt =
Attempt(fn(*args, **kwargs), attempt_number, False)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 892, in
attachment_delete
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     context,
'3.44', skip_version_check=True).attachments.delete(
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server   File
"/usr/lib/python2.7/site-packages/nova/volume/cinder.py", line 260, in
cinderclient
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server     raise
exception.UnsupportedCinderAPIVersion(version=version)
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
UnsupportedCinderAPIVersion: Nova does not support Cinder API version 2
2023-02-28 14:34:13.322 6913 ERROR oslo_messaging.rpc.server
how can i fix this problem,please help。
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20230228/3206bcd9/attachment-0001.htm>


More information about the openstack-discuss mailing list