2.4. server — Autotest Server Status

The server module expose methods that allow one to check the server current status. Note that the status information returned go beyond the status of the RPC server itself, since you would already be communicating with the RPC server to use this functionality.

Module with interface for interacting with server status

arc.server.get_profiles(connection)
Parameters:connection (class:arc.connection.Connection) – an active connection to the Autotest server
Return type:dict
arc.server.get_status(connection)

Returns the general status of the Autotest server

The returned information includes the status of essential services, such as the Autotest scheduller processes, the disk usage on the log filesystem (the one that is more likely to grow and cause issues). If an external install server is configured, it’s also checked.

Finally, one piece of information summarizes all the previously described information and determines wheter there’s something to be concerned about the current status of the Autotest server.

Parameters:connection (class:arc.connection.Connection) – an active connection to the Autotest server
Returns:a dictionary containing the following keys: concerns, scheduler_running, scheduler_watcher_running, install_server_running, used_space_logs
Return type:dict