magnum/magnum/tests
Eli Qiao fd57cb4372 Add periodic task to sync up bay status
This patch adds periodic task `sync_bay_status` which will be used for syncing
bay's status from heat stack, we will pull bays which status in
[bay_status.CREATE_IN_PROGRESS,
 bay_status.UPDATE_IN_PROGRESS,
 bay_status.DELETE_IN_PROGRESS]
which are all in a temporary status, and try to sync up the status with heat's
stack.

status changes will be like this:

bay_status              stack_status           sync up bay_status to
----------              ------------           ---------------------
CREATE_IN_PROGRESS      CREATE_COMPLETE        CREATE_COMPLETE
UPDATE_IN_PROGRESS      UPDATE_COMPLETE        UPDATE_COMPLETE
DELETE_IN_PROGRESS      DELETE_COMPLETE        DELETE_COMPLETE

CREATE_IN_PROGRESS      CREATE_FAILED          CREATE_FAILED
UPDATE_IN_PROGRESS      UPDATE_FAILED          UPDATE_FAILED
DELETE_IN_PROGRESS      DELETE_FAILED          DELETE_FAILED

CREATE_IN_PROGRESS      Not Found              CREATE_FAILED
UPDATE_IN_PROGRESS      Not Found              UPDATE_FAILED
DELETE_IN_PROGRESS      Not Found              destroy

Partial-Implements: blueprint add-periodic-task
Co-Authored-By: ShaoHe Feng <shaohe.feng@intel.com>
Change-Id: Ie9cc4d3f03c7938a8d988010604da79c9b8a22fd
2015-07-16 08:35:16 +08:00
..
contrib Temporary work around of functional test failure 2015-07-12 22:13:21 -04:00
functional Adding functional test cases for Kubernetes APIs 2015-06-29 13:24:34 +09:00
unit Add periodic task to sync up bay status 2015-07-16 08:35:16 +08:00
__init__.py Remove imports from oslo namespaces 2015-02-08 02:59:30 +00:00
base.py Replace dict.iteritems() with dict.items() 2015-06-25 16:19:38 +01:00
conf_fixture.py Use oslo.log instead of oslo.incubator log module 2015-05-29 18:28:23 +08:00
config.py Add hooks to obtain conductor api 2014-12-30 23:07:05 +09:00
fake_policy.py policy check for node 2015-06-30 16:36:03 +08:00
fakes.py Add support for API microversions 2015-06-08 11:14:36 +08:00
policy_fixture.py Add test case for bay policy check 2015-06-17 00:32:16 +08:00
utils.py Change ctxt to context to for consistency 2015-02-08 22:50:27 -05:00