Revision history [back]

click to hide/show revision 1
initial version

Erro creating snapshot - "Could not determine a suitable URL for the plugin"

Hi guys, I have simple OpenStack installation with a controller node and a compute node. Everything work well so far (Create network/flavor/volume, launch/connect a instance, and etc.

But When I tried to create an snapshot ($ nova image-create --poll myinstance myinstance-snapshoot) the "/var/log/cinder/volume.log" in the compute node throw an exception: 2017-10-30 17:39:30.011 26264 WARNING keystoneauth.identity.generic.base [req-13a32286-3102-4eff-bdc2-078869e963d8 3a4fdb0546f04a8ba231caf7b561efc3 d7e325d01c0c4c56beda0cb818b49176 - default default] Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL. 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs [req-13a32286-3102-4eff-bdc2-078869e963d8 3a4fdb0546f04a8ba231caf7b561efc3 d7e325d01c0c4c56beda0cb818b49176 - default default] Call to Nova to create snapshot failed 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs Traceback (most recent call last): 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 1375, in _create_snapshot_online 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs connection_info) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 258, in create_volume_snapshot 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs create_info=create_info) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/novaclient/v2/assisted_volume_snapshots.py", line 43, in create 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs return self._create('/os-assisted-volume-snapshots', body, 'snapshot') 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 361, in _create 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs resp, body = self.api.client.post(url, body=body) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs return self.request(url, 'POST', *kwargs) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 74, in request 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs *kwargs) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 374, in request 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs resp = super(LegacyJsonAdapter, self).request(args, *kwargs) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 142, in request 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs return self.session.request(url, method, *kwargs) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs return wrapped(args, *kwargs) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 491, in request 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs auth_headers = self.get_auth_headers(auth) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 818, in get_auth_headers 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs return auth.get_headers(self, *kwargs) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs token = self.get_token(session) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 90, in get_token 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs return self.get_access(session).auth_token 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs self.auth_ref = self.get_auth_ref(session) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 196, in get_auth_ref 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs self._plugin = self._do_create_plugin(session) 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 191, in _do_create_plugin 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs raise exceptions.DiscoveryFailure('Could not determine a suitable URL ' 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs DiscoveryFailure: Could not determine a suitable URL for the plugin 2017-10-30 17:39:30.012 26264 ERROR cinder.volume.drivers.remotefs 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server [req-13a32286-3102-4eff-bdc2-078869e963d8 3a4fdb0546f04a8ba231caf7b561efc3 d7e325d01c0c4c56beda0cb818b49176 - default default] Exception during message handling 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server Traceback (most recent call last): 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155, in _process_incoming 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 222, in dispatch 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 192, in _do_dispatch 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server result = func(ctxt, *new_args) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "<string>", line 2, in create_snapshot 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/objects/cleanable.py", line 207, in wrapper 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server result = f(args, *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 888, in create_snapshot 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server snapshot.save() 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server self.force_reraise() 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/manager.py", line 880, in create_snapshot 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server model_update = self.driver.create_snapshot(snapshot) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 132, in lvo_inner1 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return lvo_inner2() 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 271, in inner 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return f(args, *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 131, in lvo_inner2 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return f(inst, *args, *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/nfs.py", line 558, in create_snapshot 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return self._create_snapshot(snapshot) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 1346, in _create_snapshot 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server new_snap_path) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/volume/drivers/remotefs.py", line 1375, in _create_snapshot_online 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server connection_info) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 258, in create_volume_snapshot 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server create_info=create_info) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/novaclient/v2/assisted_volume_snapshots.py", line 43, in create 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return self._create('/os-assisted-volume-snapshots', body, 'snapshot') 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 361, in _create 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server resp, body = self.api.client.post(url, body=body) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 223, in post 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return self.request(url, 'POST', *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 74, in request 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 374, in request 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server resp = super(LegacyJsonAdapter, self).request(args, *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 142, in request 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return self.session.request(url, method, *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/positional/__init__.py", line 101, in inner 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return wrapped(args, *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 491, in request 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server auth_headers = self.get_auth_headers(auth) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 818, in get_auth_headers 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return auth.get_headers(self, *kwargs) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/plugin.py", line 90, in get_headers 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server token = self.get_token(session) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 90, in get_token 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server return self.get_access(session).auth_token 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/base.py", line 136, in get_access 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server self.auth_ref = self.get_auth_ref(session) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 196, in get_auth_ref 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server self._plugin = self._do_create_plugin(session) 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server File "/usr/lib/python2.7/site-packages/keystoneauth1/identity/generic/base.py", line 191, in _do_create_plugin 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server raise exceptions.DiscoveryFailure('Could not determine a suitable URL ' 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server DiscoveryFailure: Could not determine a suitable URL for the plugin 2017-10-30 17:39:30.175 26264 ERROR oslo_messaging.rpc.server

Follow my cinder.conf configuration: [DEFAULT] nova_endpoint_admin_template = http://controller-ocata:8774/v2.1 . . . [nfs] volume_driver = cinder.volume.drivers.nfs.NfsDriver volume_backend_name = nfs-hdd-type nfs_shares_config = /etc/cinder/nfsshares

nfs_snapshot_support = True nas_secure_file_operations = False nas_secure_file_permissions = False

Anyone can help me with this?