Check node resource before creating cluster

Registered by Ken Chen

Currently we do not do any resource check before creating cluster, and it might cause issues. For example, the roles on a node may need 8GB memory/20GB disk, while we only have 4GB memory, or 10GB disk size on this node or volume. This may cause the cluster creation fail but users do not know why if they do not check the plugin-specific debug info. This is quite unreasonable. We can add a resource-checking phase before cluster infrastructuring phase, to minimize the possibilities of this case. To achieve this, we need to register the OS sytem and roles' resource requirements, and check whether the flavor and volumes allocated can meet them. If no, invloved exceptions can be thrown and users can know the reason, or cluster creating can go on. At the first step, we can just set it as a gating check, that means we do not promise all clusters passing this phase will never have resource issues in the future. Instead, it just help users to avoid the likely problems in most cases.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Ken Chen
Direction:
Needs approval
Assignee:
Ken Chen
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/resource-check-before-cluster-creation,n,z

Addressed by: https://review.openstack.org/235110
    Resource Check before Cluster Creation

Addressed by: https://review.openstack.org/235745
    Add Resource Check step and the involved base methods

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.