Seen in a recent gate failure [1] where a request to delete a volume fails:
testtools.runtest.MultipleExceptions: (<class 'tempest.lib.exceptions.DeleteErrorException'>, Resource %(resource_id)s failed to delete and is in ERROR status
Details: Volume 241d7f3b-a717-43e4-a8d7-ca730cf714ba failed to delete and is in error_deleting status, <traceback object at 0x7fc55737a2c0>)
Here is the beginning of delete in c-vol and the trace:
Oct 27 22:05:04.658050 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: DEBUG cinder.coordination [None req-4ff1322e-a638-4372-a5f7-b0358e5cbc53 tempest-AttachVolumeShelveTestJSON-1486147230 None] Lock "/opt/stack/data/cinder/cinder-241d7f3b-a717-43e4-a8d7-ca730cf714ba-delete_volume" acquired by "delete_volume" :: waited 0.000s {{(pid=54880) _synchronized /opt/stack/cinder/cinder/coordination.py:146}}
Oct 27 22:05:04.698798 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: INFO cinder.volume.targets.iscsi [None req-4ff1322e-a638-4372-a5f7-b0358e5cbc53 tempest-AttachVolumeShelveTestJSON-1486147230 None] Skipping remove_export. No iscsi_target is presently exported for volume: 241d7f3b-a717-43e4-a8d7-ca730cf714ba
...
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server [None req-4ff1322e-a638-4372-a5f7-b0358e5cbc53 tempest-AttachVolumeShelveTestJSON-1486147230 None] Exception during message handling: oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C lvs --noheadings --unit=g -o vg_name,name,size --nosuffix stack-volumes-lvmdriver-1/volume-241d7f3b-a717-43e4-a8d7-ca730cf714ba
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: Exit code: 139
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: Stdout: ''
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: Stderr: ' WARNING: Failed to get udev device handler for device /dev/sdb1.\n /dev/sdb15: stat failed: No such file or directory\n Path /dev/sdb15 no longer valid for device(8,31)\n Path /dev/disk/by-partuuid/a2a6d359-10a3-458d-a110-cdc318fe4a21 no longer valid for device(8,31)\n Path /dev/disk/by-uuid/1C73-D179 no longer valid for device(8,31)\n /dev/disk/by-id/scsi-360000000000000000e00000000020001-part15: stat failed: No such file or directory\n Path /dev/disk/by-id/scsi-360000000000000000e00000000020001-part15 no longer valid for device(8,31)\n /dev/disk/by-id/wwn-0x60000000000000000e00000000020001-part15: stat failed: No such file or directory\n Path /dev/disk/by-id/wwn-0x60000000000000000e00000000020001-part15 no longer valid for device(8,31)\n /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15: stat failed: No such file or directory\n Path /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15 no longer valid for device(8,31)\n /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15: stat failed: No such file or directory\n Path /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15 no longer valid for device(8,31)\n Device open /dev/sdb 8:16 failed errno 2\n Device open /dev/sdb 8:16 failed errno 2\n Device open /dev/sdb1 8:17 failed errno 2\n Device open /dev/sdb1 8:17 failed errno 2\n WARNING: Scan ignoring device 8:16 with no paths.\n WARNING: Scan ignoring device 8:17 with no paths.\n'
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server Traceback (most recent call last):
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_messaging/rpc/server.py", line 165, in _process_incoming
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server res = self.dispatcher.dispatch(message)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_messaging/rpc/dispatcher.py", line 309, in dispatch
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server return self._do_dispatch(endpoint, method, ctxt, args)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_messaging/rpc/dispatcher.py", line 229, in _do_dispatch
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server result = func(ctxt, **new_args)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "<decorator-gen-754>", line 2, in delete_volume
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/coordination.py", line 151, in _synchronized
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server return f(*a, **k)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "<decorator-gen-753>", line 2, in delete_volume
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/objects/cleanable.py", line 212, in wrapper
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server result = f(*args, **kwargs)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 915, in delete_volume
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server self._clear_db(context, is_migrating_dest, volume,
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server self.force_reraise()
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/six.py", line 703, in reraise
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server raise value
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/manager.py", line 898, in delete_volume
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server self.driver.delete_volume(volume)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 460, in delete_volume
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server if self._volume_not_present(volume['name']):
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 139, in _volume_not_present
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server return self.vg.get_volume(volume_name) is None
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/brick/local_dev/lvm.py", line 335, in get_volume
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server ref_list = self.get_volumes(name)
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/brick/local_dev/lvm.py", line 325, in get_volumes
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server return self.get_lv_info(self._root_helper,
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/brick/local_dev/lvm.py", line 308, in get_lv_info
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server out = None
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server self.force_reraise()
Oct 27 22:05:05.251873 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server six.reraise(self.type_, self.value, self.tb)
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/six.py", line 703, in reraise
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server raise value
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/opt/stack/cinder/cinder/brick/local_dev/lvm.py", line 298, in get_lv_info
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server (out, _err) = putils.execute(*cmd,
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server File "/usr/local/lib/python3.8/dist-packages/oslo_concurrency/processutils.py", line 431, in execute
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server raise ProcessExecutionError(exit_code=_returncode,
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C lvs --noheadings --unit=g -o vg_name,name,size --nosuffix stack-volumes-lvmdriver-1/volume-241d7f3b-a717-43e4-a8d7-ca730cf714ba
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server Exit code: 139
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server Stdout: ''
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server Stderr: ' WARNING: Failed to get udev device handler for device /dev/sdb1.\n /dev/sdb15: stat failed: No such file or directory\n Path /dev/sdb15 no longer valid for device(8,31)\n Path /dev/disk/by-partuuid/a2a6d359-10a3-458d-a110-cdc318fe4a21 no longer valid for device(8,31)\n Path /dev/disk/by-uuid/1C73-D179 no longer valid for device(8,31)\n /dev/disk/by-id/scsi-360000000000000000e00000000020001-part15: stat failed: No such file or directory\n Path /dev/disk/by-id/scsi-360000000000000000e00000000020001-part15 no longer valid for device(8,31)\n /dev/disk/by-id/wwn-0x60000000000000000e00000000020001-part15: stat failed: No such file or directory\n Path /dev/disk/by-id/wwn-0x60000000000000000e00000000020001-part15 no longer valid for device(8,31)\n /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15: stat failed: No such file or directory\n Path /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15 no longer valid for device(8,31)\n /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15: stat failed: No such file or directory\n Path /dev/disk/by-path/ip-158.69.74.86:3260-iscsi-iqn.2010-10.org.openstack:volume-3a7b250e-a0d3-41f1-8769-8f88df83c6aa-lun-1-part15 no longer valid for device(8,31)\n Device open /dev/sdb 8:16 failed errno 2\n Device open /dev/sdb 8:16 failed errno 2\n Device open /dev/sdb1 8:17 failed errno 2\n Device open /dev/sdb1 8:17 failed errno 2\n WARNING: Scan ignoring device 8:16 with no paths.\n WARNING: Scan ignoring device 8:17 with no paths.\n'
Oct 27 22:05:05.253823 ubuntu-focal-ovh-bhs1-0021096768 cinder-volume[54880]: ERROR oslo_messaging.rpc.server
[1] https://zuul.opendev.org/t/openstack/build/84676423fdda4352a403f77817b2379a/log/compute1/logs/screen-c-vol.txt#5966
This seems to indicate that "lvs" (or cinder-rootwrap?) is segfaulting:
Oct 27 22:05:05.253823 ubuntu- focal-ovh- bhs1-0021096768 cinder- volume[ 54880]: ERROR oslo_messaging. rpc.server Command: sudo cinder-rootwrap /etc/cinder/ rootwrap. conf env LC_ALL=C lvs --noheadings --unit=g -o vg_name,name,size --nosuffix stack-volumes- lvmdriver- 1/volume- 241d7f3b- a717-43e4- a8d7-ca730cf714 ba focal-ovh- bhs1-0021096768 cinder- volume[ 54880]: ERROR oslo_messaging. rpc.server Exit code: 139
Oct 27 22:05:05.253823 ubuntu-
We should confirm in syslog and see if there's an Ubuntu issue to chase there.