Skip to content

Commit

Permalink
Fix systemd error for mongo on docker
Browse files Browse the repository at this point in the history
This fixes an issue when starting mongo on docker. See https://access.redhat.com/solutions/4420581
  • Loading branch information
quartje committed May 9, 2022
1 parent 384ed9b commit 299629d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/githubactions-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ sed -i 's/%target_host%/ansible-test-ga ansible_connection=docker/g' environment

# Remove ipv6 listening address in Haproxy
sed -i '/haproxy_sni_ip\.ipv6/d' roles/haproxy/templates/haproxy_frontend.cfg.j2

# The latest systemd update breaks mongo on docker (systemd[1]: New main PID 951 does not belong to service, and PID file is not owned by root. Refusing)
# dowgrading it fixes the issue
docker exec ansible-test-ga yum -y downgrade http://vault.centos.org/7.6.1810/updates/x86_64/Packages/systemd-219-62.el7_6.9.x86_64.rpm http://vault.centos.org/7.6.1810/updates/x86_64/Packages/systemd-libs-219-62.el7_6.9.x86_64.rpm http://vault.centos.org/7.6.1810/updates/x86_64/Packages/systemd-sysv-219-62.el7_6.9.x86_64.rpm
echo
echo "================================================================="
echo "================================================================="
Expand Down

0 comments on commit 299629d

Please sign in to comment.