can not attach cinder volume at running instance

asked 2018-05-03 13:21:19 -0500

sauloaugustosilva gravatar image

hi ,

I have a OpenSUSE install of openstack that is going with error during the attach of volume in a running instance . I can attach volume if instance state is shutdown . After attached I can start the instance and use the volume . I have another openstack installation that does not as this kind of problem .

Follow the error on nova-api.conf file :

2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [req-454b4f22-69ac-40cc-977a-7b344d0cd057 9cf3c075666d4dba86a922d581b73a08 d5d778441e724c7cb065bbaf01befe5b - 8433db4810f947168950770f8c93a4f2 8433db4810f947168950770f8c93a4f2] [instance: f44b3266-f261-47a2-82cc-7843809904e9] Failed to attach volume at mountpoint: /dev/vdb: libvirtError: internal error: child reported: Unable to set ACLs on /dev/sdc: Invalid argument
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9] Traceback (most recent call last):
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1294, in attach_volume
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]     guest.attach_device(conf, persistent=True, live=live)
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 308, in attach_device
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]     self._domain.attachDeviceFlags(device_xml, flags=flags)
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]     rv = execute(f, *args, **kwargs)
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]     six.reraise(c, e, tb)
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]   File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]     rv = meth(*args, **kwargs)
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 587, in attachDeviceFlags
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9]     if ret == -1: raise libvirtError ('virDomainAttachDeviceFlags() failed', dom=self)
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9] libvirtError: internal error: child reported: Unable to set ACLs on /dev/sdc: Invalid argument
2018-05-03 13:51:57.962 3122 ERROR nova.virt.libvirt.driver [instance: f44b3266-f261-47a2-82cc-7843809904e9] 
2018-05-03 13:51:58.352 3122 ERROR nova.virt.block_device [req-454b4f22-69ac-40cc-977a-7b344d0cd057 9cf3c075666d4dba86a922d581b73a08 d5d778441e724c7cb065bbaf01befe5b - 8433db4810f947168950770f8c93a4f2 8433db4810f947168950770f8c93a4f2] [instance: f44b3266-f261-47a2-82cc-7843809904e9] Driver failed to attach ...
(more)
edit retag flag offensive close merge delete

Comments

Can you please share cinder logs as well,Which driver is used

Deepa gravatar imageDeepa ( 2018-05-04 00:29:59 -0500 )edit

I am using LVM driver with iscsi tgt target . At cinder log there arenĀ“t any ERROR or WARNING . What do you want that I share ?

sauloaugustosilva gravatar imagesauloaugustosilva ( 2018-05-04 11:25:20 -0500 )edit

Can u set Log level in cinder.conf to DEBUG and paste cinder-api logs?

AB239 gravatar imageAB239 ( 2018-05-07 02:32:11 -0500 )edit