commit 1581f6695f00c6b4fb694b6e946a4ed204c1680f
Author: Sean Mooney <email address hidden>
Date: Wed May 22 18:59:02 2024 +0100
retry write_sys call on device busy
This change adds a retry_if_busy decorator
to the read_sys and write_sys functions in the filesystem
module that will retry reads and writes up to 5 times with
an linear backoff.
This allows nova to tolerate short periods of time where
sysfs retruns device busy. If the reties are exausted
and offlineing a core fails a warning is log and the failure is
ignored. onling a core is always treated as a hard error if
retries are exausted.
Closes-Bug: #2065927
Change-Id: I2a6a9f243cb403167620405e167a8dd2bbf3fa79
(cherry picked from commit 44c1b48b3121682cf959c90b3adaf2a3f92e318c)
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /922984 /opendev. org/openstack/ nova/commit/ 1581f6695f00c6b 4fb694b6e946a4e d204c1680f
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2024.1
commit 1581f6695f00c6b 4fb694b6e946a4e d204c1680f
Author: Sean Mooney <email address hidden>
Date: Wed May 22 18:59:02 2024 +0100
retry write_sys call on device busy
This change adds a retry_if_busy decorator
to the read_sys and write_sys functions in the filesystem
module that will retry reads and writes up to 5 times with
an linear backoff.
This allows nova to tolerate short periods of time where
sysfs retruns device busy. If the reties are exausted
and offlineing a core fails a warning is log and the failure is
ignored. onling a core is always treated as a hard error if
retries are exausted.
Closes-Bug: #2065927 167620405e167a8 dd2bbf3fa79 cf959c90b3adaf2 a3f92e318c)
Change-Id: I2a6a9f243cb403
(cherry picked from commit 44c1b48b3121682