vinfra service compute node add

Add a node to the compute cluster:

usage: vinfra service compute node add [--compute] [--controller] [--force] <node>
--compute
Compute node role
--controller
Compute controller node role
--force
Skip checks for minimal hardware requirements
<node>
Node ID or hostname

Example:

# vinfra service compute node add 827a1f4e-56e5-404f-9113-88748c18f0c2 --compute
+---------+--------------------------------------+
| Field   | Value                                |
+---------+--------------------------------------+
| task_id | 4c58e63c-31b6-406a-8070-9197445ec794 |
+---------+--------------------------------------+

This command creates a task to add the node with the ID 827a1f4e-56e5-404f-9113-88748c18f0c2 to the compute cluster with the compute role.

Task outcome:

# vinfra task show 4c58e63c-31b6-406a-8070-9197445ec794
+---------+--------------------------------------------------------+
| Field   | Value                                                  |
+---------+--------------------------------------------------------+
| details |                                                        |
| name    | backend.presentation.compute.tasks.AddComputeNodesTask |
| result  |                                                        |
| state   | success                                                |
| task_id | 4c58e63c-31b6-406a-8070-9197445ec794                   |
+---------+--------------------------------------------------------+