Refactor the datastore manager classes

There is a large amount of boiler-plate code in each datastore manager.
As more managers are added, the time involved in maintaining all this
code wil continue to grow. To alleviate this, a base manager class
has been added where all common code can reside.

The initial refactoring just moved some of the obvious code (such as
rpc_ping and update_status) into the base class, along with defining
properties that can be used to further abstract functionality
going forward.

The issue of having instances move in-and-out of ACTIVE state has
also been fixed by adding a flag file that is written by the base
class once prepare has finished successfully.

Closes-Bug: #1482795
Closes-Bug: #1487233
Partially Implements: blueprint datastore-manager-refactor
Change-Id: I603cf2ddebab1d7a5c874cd66431f803aaee2d42
This commit is contained in:
Peter Stachowski
2015-09-18 18:15:01 -04:00
parent 1cb7dc7792
commit 1faa4d427d
46 changed files with 773 additions and 882 deletions

File diff suppressed because it is too large Load Diff