Enabling Community trace in Kubernetes
About this task
The Sametime Community pod supports a variety of debug parameters as documented in Common debug parameters for Sametime Community Server. In Sametime 12, the Community debug that was formerly in the sametime.ini file is handled by a ConfigMap in Kubernetes. The debug parameters from previous releases must be modified if they are configured into the ConfigMap.
Part 1: Enable Sametime to read the debug ConfigMap
- Modify the values.yaml file.
- Change directories to where helm is located.
- Open values.yaml for editing.
- Add a new line in the global
section:
enableCommunityDebug: true/
Note: Confirm the indentation matches the other settings (two spaces). - Save and close the values.yaml.
- Upgrade the deployment by following the instructions in Applying configuration changes in Docker.
Part 2: Modify the ConfigMap for Community debug
- Modify the ConfigMap.
- Run the command to open the
ConfigMap.
kubectl edit cm sametime-community-logging
- Press i to switch to edit mode.
- Configure any custom debug parameters. If you know the parameter, it
should be configured with the following format.
- The first characters are STI__DEBUG. Note: Enter two underscores to separate.
- If your debug parameters belong in the [Debug] section of
the sametime.ini originally, add two
underscores and then your parameter, followed by a colon and
its value in quotes. For example, if setting
VP_LDAP_TRACE=1
at the [Debug] section of the sametime.ini file, then the configuration setting would be:STI__DEBUG__VP_LDAP_TRACE: “1”
Note: In the example, there are two underscores between STI and DEBUG and then two more underscores before the parameter.If your debug setting is a component level debug such as [Debug-StUsers], then the parameter must have the same beginning STI__DEBUG, followed by a single underscore and the component name, and then two underscores and the parameter. For example, if you are setting component level debug forVP_TRACE_ALL=1
for the component [Debug-StUsers], then the configuration setting would be like this:STI__Debug_StUsers__VP_TRACE_ALL: "1"
- The first characters are STI__DEBUG.
- Save and close the ConfigMap.
- Run the command to open the
ConfigMap.
- Scale the Community pod to apply the changes.