Merge "Race in Cinder backup manager"

This commit is contained in:
Zuul 2020-11-29 16:50:16 +00:00 committed by Gerrit Code Review
commit 97697132d8
2 changed files with 6 additions and 2 deletions

View File

@ -1085,8 +1085,6 @@ class BackupManager(manager.SchedulerDependentManager):
self._publish_service_capabilities(context)
def _report_driver_status(self, context):
if not self.is_working():
self.setup_backup_backend(context)
backup_stats = {
'backend_state': self.is_working(),
'driver_name': self.driver_name,

View File

@ -0,0 +1,6 @@
---
fixes:
- |
`Bug #1887859 <https://bugs.launchpad.net/cinder/+bug/1887859>`_:
Fix for a race in Cinder Backup Manager with double initialization
of backup driver.