Skip to content

Commit

Permalink
WIP: Remove the engine on the dwh machine
Browse files Browse the repository at this point in the history
Change-Id: Idbd6a9e31d724b6d03d693fe985d6405a775b9d1
Signed-off-by: Yedidyah Bar David <[email protected]>
  • Loading branch information
didib authored and sandrobonazzola committed Jul 12, 2023
1 parent 37d2fc5 commit 525d295
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions common/deploy-scripts/setup_dwh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash -xe

systemctl enable firewalld
systemctl start firewalld

systemctl enable crond
systemctl start crond

rm -rf /dev/shm/yum /dev/shm/*.rpm
fstrim -va

firewall-cmd --permanent --zone=public --add-interface=eth0
firewall-cmd --reload

# rotate logs quicker, because of the debug logs they tend to flood the root partition if they run > 15 minutes
cat > /etc/cron.d/ovirt-engine << EOF
* * * * * root logrotate /etc/logrotate.d/ovirt-engine
* * * * * root logrotate /etc/logrotate.d/ovirt-engine-dwh
EOF

# We are using an OST image that includes the engine. We do not setup
# the engine, but install engine-setup code - thus might run it, with
# unintended side effects. Let's remove it.
# Current context: https://bugzilla.redhat.com/2126778
dnf remove -y --noautoremove ovirt-engine
2 changes: 1 addition & 1 deletion common/init-configs/1_engine_1_dwh_2_hosts.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"template": "common/libvirt-templates/vm_template",
"memory": "3584",
"deploy-scripts": [
"common/deploy-scripts/setup_engine.sh"
"common/deploy-scripts/setup_dwh.sh"
],
"nics": {
"dwh": { "template": "common/libvirt-templates/nic_template" },
Expand Down

0 comments on commit 525d295

Please sign in to comment.