How to manually change the status of the node or the cluster in VMware Aria Operations
search cancel

How to manually change the status of the node or the cluster in VMware Aria Operations

book

Article ID: 313533

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

This article provides steps to safely bring a cluster online or offline in VMware Aria Operations.

Note: DO NOT ATTEMPT THIS KB IF CLUSTER IS UNSTABLE.
Cluster operations should be attempted only via UI (see Rebooting nodes in Aria Operations).
If cluster is unstable and further troubleshooting is required please review this

Environment

VMware Aria Operations 8.x

Resolution

Quick Links:

Bring a node online

To bring a node online, run this command as root from the node you want to bring online:
$VMWARE_PYTHON_BIN $VCOPS_BASE/../vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsConfigureRoles.py --action bringSliceOnline

 

Take a node offline

To bring the node offline, run this command as root from the node you want to take offline:
$VMWARE_PYTHON_BIN $VCOPS_BASE/../vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsConfigureRoles.py --action bringSliceOffline --offlineReason "Offline_Reason"
Note: Replace Offline_Reason with the reason for taking the cluster offline.
 
Example:
$VMWARE_PYTHON_BIN $VCOPS_BASE/../vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsConfigureRoles.py --action bringSliceOffline --offlineReason "Maintenance"

 

Bring the cluster online

To bring the cluster online, run this command as root from any node:
$VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsClusterManager.py init-cluster
 
If the above fails, run this command as root from any node:
curl -ik -u 'admin:PASSWORD' -X POST https://PRIMARY_NODE_IP/casa/sysadmin/cluster/online_state -d '{"online_state":"ONLINE", "online_state_reason":null}' -H "Accept: application/json" -H "Content-type: application/json"
Note: Replace PASSWORD with the admin user password and PRIMARY_NODE_IP with the IP of the Primary node.

 

Take the cluster offline

To take the cluster offline, run this command as root from any node:
$VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsClusterManager.py offline-cluster "Offline_Reason"

Note: Replace Offline_Reason with the reason for taking the cluster offline.

Example:
$VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/vcopsClusterManager.py offline-cluster "Maintenance"
 
If the above fails, run this command as root from any node:
curl -ik -u 'admin:PASSWORD' -X POST https://PRIMARY_NODE_IP/casa/sysadmin/cluster/online_state -d '{"online_state":"OFFLINE", "online_state_reason":"Offline"}' -H "Accept: application/json" -H "Content-type: application/json"

Note: Replace PASSWORD with the admin user password and PRIMARY_NODE_IP with the IP of the Primary node.