Add support to replace cluster node with another node

Registered by RUIJIE YUAN on 2016-09-06

Add a new cluster action which is CLUSTER_REP_NODES.
-- This action will replace the nodes of the cluster with the nodes do not belong to any clusters and have the same type of PROFILE

-- The sample request params like this:
      {
          "rep_nodes": {
          "node1": "rep_node1",
          "node2": "rep_node2"
          }
      }

-- API will check and validate the request parameters, After that, request will be sent to ENGINE

-- ENGINE will load all these nodes and then check:
    1. Nodes exit or not
    2. Nodes' status check
    3. Profile type match or not
    4. candidate nodes belong to a cluster or not

-- Create a CLUSTER_REP_NODES action to process the request, and a number of NODES_REP actions will be created to process each node

Some more ideas:
1. support deletion-policy or not

Blueprint information

Status:
Complete
Approver:
Qiming Teng
Priority:
Medium
Drafter:
RUIJIE YUAN
Direction:
Approved
Assignee:
RUIJIE YUAN
Definition:
Approved
Series goal:
Accepted for ocata
Implementation:
Implemented
Milestone target:
milestone icon ocata-1
Started by
RUIJIE YUAN on 2016-09-07
Completed by
RUIJIE YUAN on 2016-10-19

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/support-cluster-replace-action,n,z

Addressed by: https://review.openstack.org/368534
    Support cluster replace action

Addressed by: https://review.openstack.org/369259
    Service support node replace

Addressed by: https://review.openstack.org/369291
    API support node replace

Addressed by: https://review.openstack.org/372035
    Functional test support node replace

Addressed by: https://review.openstack.org/374038
    Api Ref of cluster replace nodes

Addressed by: https://review.openstack.org/409676
    Doc update for node replace

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.