]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Support initialization state in Backup Manager
authorSzymon Wroblewski <szymon.wroblewski@intel.com>
Thu, 20 Aug 2015 12:13:31 +0000 (14:13 +0200)
committerSzymon Wroblewski <szymon.wroblewski@intel.com>
Wed, 21 Oct 2015 09:48:52 +0000 (11:48 +0200)
commit9889f96afdc81442fd4b1966777a8dcd143e243e
treeef4a825be25e1ffe8d4a665a37526853cc102a7f
parent47b93189f30c66925aa7b5acd1d6f6ec4212ea0a
Support initialization state in Backup Manager

This commit adds is_working method to Backup Manager class to
return initialization state of the underlying volume drivers and
indicate that service has some problems and isn't running correctly.
This is used to block refreshing Service heartbeats if Manager will
return False from is_working.

Related-Bug: 1446750
Change-Id: I3165d01f60bd80ead5163d8678886bd2828af3f9
cinder/backup/manager.py
cinder/tests/unit/test_backup.py