vinfra cluster ha update
Update the HA configuration:
usage: vinfra cluster ha update [--virtual-ip <network:ip>] [--nodes <nodes>] [--force]
--virtual-ip <network:ip>
-
HA configuration mapping in the format:
network
: network to include in the HA configuration (must include at least one of these traffic types: Internal management, Admin panel, Self-service panel, or Compute API).ip
: virtual IP address that will be used in the HA configuration.
Specify this option multiple times to create a HA configuration for multiple networks.
--nodes <nodes>
- A comma-separated list of node IDs or hostnames
--force
- Skip checks for minimal hardware requirements
Example:
# vinfra cluster ha update --nodes 94d58604-6f30-4339-8578-adb7903b7277,\ f59dabdb-bd1c-4944-8af2-26b8fe9ff8d4,4b83a87d-9adf-472c-91f0-782c47b2d5f1 +---------+--------------------------------------+ | Field | Value | +---------+--------------------------------------+ | task_id | 565e9146-254b-4f7a-a2ff-b7119c95baa9 | +---------+--------------------------------------+
This command creates a task to update the management node HA configuration, that is, include the nodes with the IDs 94d58604-6f30-4339-8578-adb7903b7277
, f59dabdb-bd1c-4944-8af2-26b8fe9ff8d4
, and 4b83a87d-9adf-472c-91f0-782c47b2d5f1
.
Task outcome:
# vinfra task show 565e9146-254b-4f7a-a2ff-b7119c95baa9 +---------+-------------------------------------------------------+ | Field | Value | +---------+-------------------------------------------------------+ | details | | | name | backend.presentation.ha.tasks.UpdateHaConfigTask | | result | compute_task_id: 84994caf-3a02-43ea-b904-48632f0379c7 | | | ha_cluster_location: | | | - https://10.94.129.79:8888 | | | nodes: | | | - id: f59dabdb-bd1c-4944-8af2-26b8fe9ff8d4 | | | ipaddr: 10.37.130.134 | | | is_primary: true | | | - id: 4b83a87d-9adf-472c-91f0-782c47b2d5f1 | | | ipaddr: 10.37.130.127 | | | is_primary: false | | | - id: 94d58604-6f30-4339-8578-adb7903b7277 | | | ipaddr: 10.37.130.118 | | | is_primary: false | | | primary_node_location: https://10.94.62.243:8888 | | | virtual_ips: | | | - ip: 10.94.129.79 | | | roles_set: 5f0adc1d-c10f-46c1-b7b8-dd1aacab613b | | | - ip: 10.37.130.200 | | | roles_set: 5a0401b5-9b42-4d8b-8372-71c747230033 | | state | success | | task_id | 565e9146-254b-4f7a-a2ff-b7119c95baa9 | +---------+-------------------------------------------------------+