Adding /etc/supervisord.conf to sosreports (#12104)

This commit is contained in:
John Westcott IV 2022-04-27 10:34:45 -04:00 committed by GitHub
parent 68221cdcbe
commit 4277b73438
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,18 @@
Create a RHEL box and then do the following.
```bash
sudo mkdir -p /usr/share/sosreport/sos/plugins
sudo yum install sos
cp controller.py /usr/share/sosreport/sos/plugins
sudo chmod 644 /usr/share/sosreport/sos/plugins/controller.py
ln -s /usr/share/sosreport/sos/plugins/controller.py `find `find /usr/lib -name sos` -name plugins`
sosreport -l | grep controller
```
The results should be:
```bash
# sosreport -l | grep controller
controller Ansible Automation Platform controller information
```
To run only the controller plugin run: `sosreport --only-plugins controller`

View File

@ -22,15 +22,16 @@ SOSREPORT_CONTROLLER_COMMANDS = [
"ls -ll /var/lib/awx", # check permissions
"ls -ll /var/lib/awx/venv", # list all venvs
"ls -ll /etc/tower",
"ls -ll /var/run/awx-receptor", # list contents of dirctory where receptor socket should be
"ls -ll /var/run/awx-receptor", # list contents of dirctory where receptor socket should be
"ls -ll /etc/receptor",
"receptorctl --socket /var/run/awx-receptor/receptor.sock status", # Get information about the status of the mesh
"receptorctl --socket /var/run/awx-receptor/receptor.sock status", # Get information about the status of the mesh
"umask -p", # check current umask
]
SOSREPORT_CONTROLLER_DIRS = [
"/etc/tower/",
"/etc/receptor/",
"/etc/supervisord.conf",
"/etc/supervisord.d/",
"/etc/nginx/",
"/var/log/tower",
@ -54,7 +55,7 @@ SOSREPORT_FORBIDDEN_PATHS = [
"/etc/tower/awx.cert",
"/var/log/tower/profile",
"/etc/receptor/tls/ca/*.key",
"/etc/receptor/tls/*.key"
"/etc/receptor/tls/*.key",
]