If an error occurs during lease create and an aggregate isn't created,
an exception will be raised in cleanup_resources when trying to delete
the missing aggregate. Handle this gracefully and continue.
Closes-Bug: #1938241
Change-Id: I866bc7c369fb390f8c9204e36c06fadea17f6dd5
(cherry picked from commit 339e91342d67d17b84b600d107a7f996564df3c6)
Reviewed: https:/ /review. opendev. org/c/openstack /blazar/ +/835055 /opendev. org/openstack/ blazar/ commit/ 6549ab0f9e6997f e28b51c6dffd03f 171fda6647
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 6549ab0f9e6997f e28b51c6dffd03f 171fda6647
Author: Sam Morrison <email address hidden>
Date: Wed Jul 28 13:35:47 2021 +1000
Handle AggregateNotFound when deleting aggregate
If an error occurs during lease create and an aggregate isn't created,
an exception will be raised in cleanup_resources when trying to delete
the missing aggregate. Handle this gracefully and continue.
Closes-Bug: #1938241
Change-Id: I866bc7c369fb39 0f8c9204e36c06f adea17f6dd5 b84b600d107a7f9 96564df3c6)
(cherry picked from commit 339e91342d67d17