mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
CLOUDSTACK-6751 - Disable stats logging for conntrackd upon systemvm creation
Submitted-by: Joris van Lieshout <jvanlieshout@schubergphilis.com>
This commit is contained in:
parent
d5754d9101
commit
2c810d73e2
@ -183,6 +183,13 @@ EOF
|
|||||||
locale-gen en_US.UTF-8
|
locale-gen en_US.UTF-8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This is actually a bug in the conntrackd package. The comment in the conf file says stats logging is off by default but the parameter is set to on.
|
||||||
|
# After a couple weeks logrotate will rotate the conntrackd-stats.log file ans start conntracking even if we don't want it to (on non-redundant routers for instance).
|
||||||
|
fix_conntrackd() {
|
||||||
|
sed -i '/Stats {/,/}/ s/LogFile on/LogFile off/' /etc/conntrackd/conntrackd.conf
|
||||||
|
rm -f /var/log/conntrackd-stats.log
|
||||||
|
}
|
||||||
|
|
||||||
fix_vhdutil() {
|
fix_vhdutil() {
|
||||||
wget --no-check-certificate http://download.cloud.com.s3.amazonaws.com/tools/vhd-util -O /bin/vhd-util
|
wget --no-check-certificate http://download.cloud.com.s3.amazonaws.com/tools/vhd-util -O /bin/vhd-util
|
||||||
chmod a+x /bin/vhd-util
|
chmod a+x /bin/vhd-util
|
||||||
@ -194,6 +201,7 @@ do_fixes() {
|
|||||||
fix_acpid
|
fix_acpid
|
||||||
fix_hostname
|
fix_hostname
|
||||||
fix_locale
|
fix_locale
|
||||||
|
fix_conntrackd
|
||||||
fix_vhdutil
|
fix_vhdutil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -173,6 +173,13 @@ EOF
|
|||||||
locale-gen en_US.UTF-8
|
locale-gen en_US.UTF-8
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This is actually a bug in the conntrackd package. The comment in the conf file says stats logging is off by default but the parameter is set to on.
|
||||||
|
# After a couple weeks logrotate will rotate the conntrackd-stats.log file ans start conntracking even if we don't want it to (on non-redundant routers for instance).
|
||||||
|
fix_conntrackd() {
|
||||||
|
sed -i '/Stats {/,/}/ s/LogFile on/LogFile off/' /etc/conntrackd/conntrackd.conf
|
||||||
|
rm -f /var/log/conntrackd-stats.log
|
||||||
|
}
|
||||||
|
|
||||||
fix_vhdutil() {
|
fix_vhdutil() {
|
||||||
wget --no-check-certificate http://download.cloud.com.s3.amazonaws.com/tools/vhd-util -O /bin/vhd-util
|
wget --no-check-certificate http://download.cloud.com.s3.amazonaws.com/tools/vhd-util -O /bin/vhd-util
|
||||||
chmod a+x /bin/vhd-util
|
chmod a+x /bin/vhd-util
|
||||||
@ -184,6 +191,7 @@ do_fixes() {
|
|||||||
fix_acpid
|
fix_acpid
|
||||||
fix_hostname
|
fix_hostname
|
||||||
fix_locale
|
fix_locale
|
||||||
|
fix_conntrackd
|
||||||
fix_vhdutil
|
fix_vhdutil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user