commit 7779c20198c4ee09ee2c31ba0f5752151331abaf
Author: Dan Smith <email address hidden>
Date: Mon Mar 29 08:07:41 2021 -0700
Ignore stale image property removal
Occasionally we fail to delete a property from an image and get a
StaleDataError from SQLAlchemy. It looks like maybe we are just racing
with another operation to delete a single property (i.e. a race
between image delete and the end of an import cleanup).
This ignores that "can't delete because it is already deleted" error
and logs to debug about the situation for later auditing and
confirmation.
Reviewed: https:/ /review. opendev. org/c/openstack /glance/ +/783668 /opendev. org/openstack/ glance/ commit/ 7779c20198c4ee0 9ee2c31ba0f5752 151331abaf
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 7779c20198c4ee0 9ee2c31ba0f5752 151331abaf
Author: Dan Smith <email address hidden>
Date: Mon Mar 29 08:07:41 2021 -0700
Ignore stale image property removal
Occasionally we fail to delete a property from an image and get a
StaleDataError from SQLAlchemy. It looks like maybe we are just racing
with another operation to delete a single property (i.e. a race
between image delete and the end of an import cleanup).
This ignores that "can't delete because it is already deleted" error
and logs to debug about the situation for later auditing and
confirmation.
Change-Id: Ida5bc659b7481f a0a7f3926a54520 628a7a4c406
Closes-Bug: #1895173