Repository navigation
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
Codecov Report
@@ Coverage Diff @@
## 4.18 #6738 +/- ##
=========================================
Coverage 13.02% 13.02%
- Complexity 9029 9030 +1
=========================================
Files 2720 2720
Lines 256998 257001 +3
Branches 40081 40083 +2
=========================================
+ Hits 33462 33463 +1
- Misses 219335 219337 +2
Partials 4201 4201
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4190 |
|
@blueorangutan test |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
yadvr
left a comment
There was a problem hiding this comment.
In theory LGTM, we need to check if the log file is used at all by CloudStack
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 4378 |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4397 |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 4403 |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✖️ el8 ✔️ debian ✔️ suse15. SL-JID 4404 |
|
@blueorangutan test |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-5093)
|
| # ESTABLISHED CLOSED TIME_WAIT CLOSE_WAIT for TCP | ||
| # } | ||
| } | ||
| Stats { |
There was a problem hiding this comment.
@shawniverson
should this be a separated section or under the "General" section ?
There was a problem hiding this comment.
@shawniverson I want to merge this but can you explain the consequences of question first, please?
There was a problem hiding this comment.
Let me double check this for everybody and ensure it is at the right level.
There was a problem hiding this comment.
This PR cannot proceed. I did not place this block at the right level and when placed at the right level I am getting an error
conntrackd[6835]: [Thu Oct 13 12:46:05 2022] (pid=6835) [ERROR] cannot use both `Stats' and `Sync' clauses in conntrackd.conf
Apologies for the trouble. I will go back to the drawing board on this. Still a problem.
There was a problem hiding this comment.
It looks like there are no options in Sync to just disable logging there. I was trying to avoid turning off logging in the General block. It seems to be the only option.
There was a problem hiding this comment.
I will need some advice from CloudStack developers on this. I can revise this PR or submit a new PR with logging off in in the General block instead, but I need feedback on whether any of the conntrackd logging is even being used before proceeding.
There was a problem hiding this comment.
from the man page for the General section:
[LogFile <on|off|filename>]
Enable [conntrackd(8)] to log to a file.
Example: LogFile on
Default is off. The default logfile is /var/log/conntrackd.log.
[Syslog <on|off|facility>]
Enable connection logging via Syslog. If you set the facility, use the same as in the Stats section, otherwise you'll get a warning message.
Example: Syslog local0
Default is off.
There was a problem hiding this comment.
@shawniverson there was talk of creating a central logging facility once. For that the syslog facility would be nice.
If you turn off logging I would say it should be done with a global setting. I am not sure if the logging of conntrackd is used functionally but I imagine that it is useful for people running redundant routers.
There was a problem hiding this comment.
@DaanHoogland A global setting makes sense. I'll study this and see what I can do.
|
@shawniverson I'm marking this PR as draft for now |
|
@shawniverson can you resolve the conflicts here, please? |
|
@DaanHoogland I need guidance on the source code. I need to add a global setting for this to toggle the logging in conntrackd, but I am struggling to find where in the source this change would be made. Sorry, but I'm not terribly familiar with the source and it is quite vast. |
|
@blueorangutan package |
|
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6313 |
|
@blueorangutan test |
|
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-6825)
|
|
@shawniverson are you still interested in making this configurable? |
|
ping @shawniverson |
|
@blueorangutan package |
|
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6571 |
|
@blueorangutan package |
|
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6596 |
|
@blueorangutan test |
|
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-7198) |
|
@shawniverson are we expecting any further changes, asking as PR is in draft |
|
@rohityadavcloud a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6849 |
|
Are you still looking at this @shawniverson ? |
|
@shawniverson I am closing this, please reopen if you feel this still has potential. |
Description
Fixes: #6718
Changes the default behavior of conntrackd to stop logging verbose conntrack-ed traffic to /var/log/daemon.log. This is expensive in terms of performance and also costly in terms of the limited disk capacity in a VR. In cases of large quantities of traffic, /var fills up and causes the VR to either stop passing traffic or perform necessary tasks in the VPC.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Change applied to opt/cloud/templates/conntrackd.conf.templ in systemvm.iso inside of cloud-scripts.tgz. systemvm.iso distributed to all Cloudstack KVM hosts and placed at /usr/share/cloudstack-common/vms/systemvm.iso. Redundant VPC restarted with cleanup. Confirmed change present and monitored /var/log/daemon.log for traffic entries while generating traffic via a private gateway using iperf.