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

asked 2017-10-30 14:51:43 -0500

Rafael Campos gravatar image

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 ... (more)

edit retag flag offensive close merge delete

Comments

Can you create a volume based on an image? Sounds like glance and cinder can't communicate. Is your instance volume based? If not, can you attach a volume to your instance?

eblock gravatar imageeblock ( 2017-11-02 06:18:43 -0500 )edit

@eblock, Yes I can create a Volume from a Image and also attach a new volume to a running instance. My workaround on horizon: - Compute > Instance > Shutoff; - Admin > Volumes > Update Volume Status = Available; - Compute > Volumes > Edit Volume = Upload Image

This work for me!

Rafael Campos gravatar imageRafael Campos ( 2017-11-07 13:27:56 -0500 )edit

I reread your post, you wrote "the "/var/log/cinder/volume.log" in the compute node throw an exception...". cinder is not supposed to run on a compute node, it has to be a control node. Is it just a mistake writing the post or did you actually try to configure cinder volume on a compute node?

eblock gravatar imageeblock ( 2017-11-08 02:11:37 -0500 )edit

Cinder is running in the controller node, but I'm using the compute node as a storage node. Controller: cinder-api and cinder-scheduler Compute: cinder-volume

Rafael Campos gravatar imageRafael Campos ( 2017-11-09 06:51:12 -0500 )edit

Unfortunately, I can't reproduce this, snapshotting a volume based image works fine for me. It could be the different backend, we use Ceph for glance, nova and cinder. So this only occurs if you try to snapshot a volume based instance? Is there something on NFS side? A lock or something?

eblock gravatar imageeblock ( 2017-11-20 08:35:00 -0500 )edit