Add periodic task for magnum conductor

Registered by Eli Qiao

Add a periodic task framework to update state periodically as it changes in upstream systems. For example, we need to sync bay status with heat when retry timeouts are reached before stack create finishes. Another use case is if the conductor crashes during bay create/update, then the bay status will be incorrect. This task will correct it.

Blueprint information

Status:
Complete
Approver:
hongbin
Priority:
Medium
Drafter:
Eli Qiao
Direction:
Approved
Assignee:
Eli Qiao
Definition:
Approved
Series goal:
Accepted for liberty
Implementation:
Implemented
Milestone target:
milestone icon liberty-2
Started by
Adrian Otto
Completed by
Eli Qiao

Related branches

Sprints

Whiteboard

hongbin points out [1], magnum will use heat notifications to check the status when creating stack.
eliqiao thinks it is useful even we have heat notify magnum, notifications will be only triggered one time, so if magnum misses it. then the status will be get lost, so periodic task will be useful in this case.

[1] http://lists.openstack.org/pipermail/openstack-dev/2015-March/058898.html

Gerrit topic: https://review.openstack.org/#q,topic:bp/add-periodic-task,n,z

Addressed by: https://review.openstack.org/187090
    WIP: Add periodict task support for to rpc service

Addressed by: https://review.openstack.org/187114
    WIP: add periodic task to bay conductor

Gerrit topic: https://review.openstack.org/#q,topic:add_periodic1,n,z

Addressed by: https://review.openstack.org/193029
    Add get_admin_context to Magnum context

Addressed by: https://review.openstack.org/193030
    Support use admin creds in KeystoneClientV3

Addressed by: https://review.openstack.org/193031
    Allow admin context to query all bay

Addressed by: https://review.openstack.org/194514
    Add periodic task to sync bay status

Addressed by: https://review.openstack.org/194925
    Devstack: Add admin creds in magnum.conf

Addressed by: https://review.openstack.org/197865
    Swith auth_uri to use v2.0

Addressed by: https://review.openstack.org/197893
    Update heat policy.json

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.