Collector Node consoleuser account unable to log out of the CLI due to name ‘pid’ is not defined error
search cancel

Collector Node consoleuser account unable to log out of the CLI due to name ‘pid’ is not defined error

book

Article ID: 422393

calendar_today

Updated On:

Products

VCF Operations for Networks

Issue/Introduction

The Command Line Interface (CLI) session for the consoleuser on a specific collector node is experiencing a failure upon attempting to log out. The session appears to connect successfully, but any attempt to exit the CLI session results in a Python exception.

Symptom: When the consoleuser executes the logout command from the collector node's CLI, the session terminates with the following Python error message:

name ‘pid’ is not defined

This issue is specific to the consoleuser account on the affected collector node.

Environment

VCF Operations for Networks

Cause

The root cause is an internal software exception that occurs during the CLI logout process for the consoleuser. The system fails because it attempts to reference the pid (process ID) variable, which has not been defined or properly initialized within the execution context of the logout sequence.

Resolution

The definitive solution is to replace the failing collector node with a new, functional instance to quickly resolve the underlying environmental instability.

  1. Deploy an additional collector node into the environment.

  2. Validate the functionality of the new collector by performing a test login and logout:

    • SSH into the new collector as consoleuser.

    • Execute a test command (e.g., show-version).

    • Run the logout command to confirm a successful, error-free exit from the session.

  3. Once the new collector is validated, decommission and remove the unworking collector node from the environment.