node_add
This job adds a new node to the database.
Mandatory parameters
| Parameter name | Data type | Description |
|---|---|---|
| priv_net | string | IP address of the private network |
Optional parameters
| Parameter name | Data type | Description |
|---|---|---|
| nid | integer | Node ID of the desired node |
| name | string | Name of the desired node |
| pub_net | string | IP address of the public network |
| offline | boolean | Flag to add the node as offline instead of suspended |
| no_partition_extend | boolean | Flag to block the extension of auto-add partitions from including this node |
| space_warn_threshold | integer | Threshold value in percent (0, 100) for a low storage space warning |
| bg_rec_limit | integer | Background recovery throughput limit in MiB/s |
Substitute parameters
There are no substitute parameters.
Allowed users
There are no defined allowed users.
Allowed groups
The following groups are allowed to run this job:
- root
- exaadm
Examples
The following examples show how to run this job in a Python program using XML-RPC or on the command line using confd_client.
conn.job_exec('node_add', {'params': {'priv_net': '10.10.10.1/24'}})
confd_client node_add priv_net: 10.10.10.1/24