session addNodeStatus

Troubleshooting a Failed Node Addition and Verifying Idle State

Scénario de test & Cas d'usage

Business Context

A junior CAS administrator attempts to add a new worker node, but it fails to appear in the active node list. They suspect a network misconfiguration (e.g., a firewall blocking a required port). They need to use `addNodeStatus` as a primary diagnostic tool to confirm if the node is 'stuck' in the joining process. They also need to verify what the action shows when no nodes are being added.
About the Set : session

Management of the CAS session state.

Discover all actions of session
Data Preparation

This action is for server monitoring. No data preparation is required. This scenario simulates two states: one where a node addition is failing, and one where no addition is in progress.

Copied!
1/* No
2data creation is necessary. This scenario tests the action's output in both failure and idle conditions. */

Étapes de réalisation

1
Simulate calling the action while a node is failing to connect. The action should be used to identify the stuck node.
Copied!
1/* This assumes an addNode operation was just attempted and is hanging */
2PROC CAS;
3 SESSION.addNodeStatus RESULT=failedNodeStatus;
4 PRINT failedNodeStatus;
5RUN;
2
Call the action at a later time, when no add-node operations are active, to confirm the expected output for an idle system.
Copied!
1/* This assumes all addNode operations have completed or been cancelled */
2PROC CAS;
3 SESSION.addNodeStatus RESULT=idleStatus;
4 PRINT idleStatus;
5RUN;

Expected Result


In step 1, the 'failedNodeStatus' result should contain a table with one row for the problematic node, showing a state such as 'pending' or 'timeout'. This confirms the node is stuck and helps the administrator pinpoint the issue. In step 2, the 'idleStatus' result is expected to be empty or contain a message indicating that 'no add-node operations are in progress', validating the action's behavior in a quiescent state.