How to Change the Debug Level for PF9-consul Logs?

Problem

Change the log levels for the PF9-consul logs.

Default Logs level configured for _"/var/log/pf9/pf9-consul.log"_ can be verified in the _"pf9-ha.conf"_ and _"server.json"_ on the hosts.

pf9-consul.log
Copy

Environment

  • Platform9 Managed OpenStack - v5.4.0 and Higher

Procedure

We need to update in the Resmgr DB for Roles and Hosts table.

  1. Roles table need to be updated so that the same configurations should get reflected to the new hosts.
Roles table in Resmgr DB
Copy

2. Hosts table need to be updated - It should start reflecting the config to the already on-boarded hosts.

Bash
Copy
  1. Verify the "____**consul__log___level"**_ configurations using below commands or _"/var/log/pf9/pf9-consul.log"_ the on the node:
Bash
Copy

Or

We use curl API request to update the role settings for a host:

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard