Ask Your Question
0

ScaleIO volume won't attach to instances

asked 2018-07-20 23:14:23 -0600

chris.walker gravatar image

updated 2018-07-20 23:24:07 -0600

Hi,

I"m running Openstack Queens with ScaleIO 2.6. It's 4 nodes, 1xcontroller and 3xcompute.

I can manually create volumes in ScaleIO and attach them to the compute nodes. So I know the SDCs are configured and working.

I can also create volumes via Openstack. Openstack creates and displays the volume as available and the volume also appears in the ScaleIO Gui.

My problem is, when I try to attach a volume to an instance, it says "attaching" but then returns to "available". Interestingly though, ScaleIO then shows the volume as mapped to the relevant compute node.

The nova-compute.log on the compute has the following in it.

2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [req-d6a38c5c-921c-43ff-894c-1ffb80a14c5d 8aed461917604d95a5cd7e251660c420 8acb5b594deb4af0b6d54b6823bfe50c - default default] [instance: 9306343b-4743-4a6d-bf37-5de218914db0] Driver failed to attach volume a7c7adec-108e-4635-9555-506fde1f92e1 at /dev/vdb: BrickException: ScaleIO volume 56cd3f0600000000 not found.
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0] Traceback (most recent call last):
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/nova/virt/block_device.py", line 539, in _volume_attach
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     device_type=self['device_type'], encryption=encryption)
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1443, in attach_volume
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     encryption=encryption)
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 1241, in _connect_volume
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     vol_driver.connect_volume(connection_info, instance)
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/volume/scaleio.py", line 53, in connect_volume
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     device_info = self.connector.connect_volume(connection_info['data'])
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/os_brick/utils.py", line 137, in trace_logging_wrapper
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     return f(*args, **kwargs)
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py", line 274, in inner
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     return f(*args, **kwargs)
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/os_brick/initiator/connectors/scaleio.py", line 367, in connect_volume
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     self.volume_path = self._find_volume_path()
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]   File "/usr/lib/python2.7/site-packages/os_brick/initiator/connectors/scaleio.py", line 91, in _find_volume_path
2018-07-21 14:00:45.307 2625 ERROR nova.virt.block_device [instance: 9306343b-4743-4a6d-bf37-5de218914db0]     disk_filename = self._wait_for_volume_path(by_id_path ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-07-23 18:07:38 -0600

chris.walker gravatar image

This turned out to be a ScaleIO issue. The SDCs aren't compatible with the 3.10.0-862 kernel. Downgrading the kernel to 3.10.0-514 fixed it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-07-20 23:14:23 -0600

Seen: 126 times

Last updated: Jul 23 '18