Similar to bug 1901783, the "lvextend" call needs to be wrapped to retry on code 139.
Failure seen on https://review.opendev.org/c/openstack/cinder/+/788365/10 in the tempest-integrated-storage job.
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager Traceback (most recent call last):
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/volume/manager.py", line 2910, in extend_volume
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager self.driver.extend_volume(volume, new_size)
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 586, in extend_volume
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager self.vg.extend_volume(volume['name'],
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/brick/local_dev/lvm.py", line 835, in extend_volume
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager self._execute(*cmd, root_helper=self._root_helper,
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager File "/usr/local/lib/python3.8/dist-packages/os_brick/executor.py", line 53, in _execute
Aug 17 22:55:25.335886 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager result = self.__execute(*args, **kwargs)
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager File "/opt/stack/cinder/cinder/utils.py", line 172, in execute
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager return processutils.execute(*cmd, **kwargs)
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager File "/usr/local/lib/python3.8/dist-packages/oslo_concurrency/processutils.py", line 438, in execute
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager raise ProcessExecutionError(exit_code=_returncode,
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager oslo_concurrency.processutils.ProcessExecutionError: Unexpected error while running command.
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf env LC_ALL=C lvextend -L 2g stack-volumes-lvmdriver-1/volume-dbedb507-ddc4-4c6d-a597-66f4e0a8dab0
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager Exit code: 139
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager Stdout: ''
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager Stderr: ' WARNING: Failed to get udev device handler for device /dev/sdd1.\n /dev/sdd15: stat failed: No such file or directory\n Path /dev/sdd15 no longer valid for device(8,63)\n /dev/sdd15: stat failed: No such file or directory\n Path /dev/sdd15 no longer valid for device(8,63)\n Device open /dev/sdd 8:48 failed errno 2\n Device open /dev/sdd 8:48 failed errno 2\n Device open /dev/sdd1 8:49 failed errno 2\n Device open /dev/sdd1 8:49 failed errno 2\n WARNING: Scan ignoring device 8:48 with no paths.\n WARNING: Scan ignoring device 8:49 with no paths.\n'
Aug 17 22:55:25.337008 ubuntu-focal-ovh-gra1-0025956218 cinder-volume[114418]: ERROR cinder.volume.manager
Fix proposed to branch: master /review. opendev. org/c/openstack /cinder/ +/805026
Review: https:/