Skip to content

Commit

Permalink
ap: Disable azure's security daemon
Browse files Browse the repository at this point in the history
This daemon run clamav which is resource aggressive.
No point to run Windows virus scanner on Ubuntu in Linux-only
environment.

Fixes: https://pagure.io/freeipa/issue/9207
Signed-off-by: Stanislav Levin <slev@altlinux.org>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
  • Loading branch information
stanislavlevin committed Aug 1, 2022
1 parent 94329c7 commit ea9462a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions ipatests/azure/templates/test-jobs.yml
Expand Up @@ -4,6 +4,11 @@ steps:
env | sort
displayName: Print Host Enviroment

- script: |
set -e
sudo apt list --installed
displayName: Show Host's installed packages

- script: |
set -e
sudo apt-get update
Expand All @@ -16,6 +21,21 @@ steps:
python3-docker
displayName: Install Host's tests requirements

- script: |
set -e
sudo systemctl
displayName: Show Host's systemd status

- script: |
set -e
# most of the time systemd killed hostnamed with SIGKILL on timeout
# kill without waiting for graceful termination
sudo systemctl kill -s SIGKILL azsecd ||:
sudo systemctl disable --now azsecmond ||:
sudo systemctl disable --now azsecd ||:
sudo systemctl disable --now clamav-freshclam ||:
displayName: Disable azsec services (clamav)

- script: |
set -e
printf "AppArmor status\n"
Expand Down Expand Up @@ -52,6 +72,16 @@ steps:

- template: setup-test-environment.yml

- script: |
set -eu
sudo top -b -o +%MEM n 1
displayName: Show Host's top

- script: |
set -eu
sudo ps -auxf
displayName: Show Host's processes

- template: run-test.yml

- script: |
Expand Down

0 comments on commit ea9462a

Please sign in to comment.