undo removal of accessLogger and deal with some warnings#10567
undo removal of accessLogger and deal with some warnings#10567harikrishna-patnala merged 3 commits intoapache:4.20from
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.20 #10567 +/- ##
=========================================
Coverage 16.00% 16.01%
- Complexity 13104 13113 +9
=========================================
Files 5651 5651
Lines 495843 495853 +10
Branches 60045 60047 +2
=========================================
+ Hits 79363 79409 +46
+ Misses 407624 407581 -43
- Partials 8856 8863 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12788 |
|
@blueorangutan test |
|
@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
Thanks for reviewing @gpordeus! |
|
[SF] Trillian test result (tid-12728)
|
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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]: ✔️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 12831 |
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12850 |
|
@blueorangutan test |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian Build Failed (tid-12830) |
|
tested and does not work to satisfaction yet (empty |
cc @Pearl1594 @JoaoJandre maybe a fluke but no cigar so far |
|
@DaanHoogland, I compared with the log4j2 PR and found the logger in As for the (added the prints since opening the PR is a pain) prints from #7131 |
thanks for the heads-up @gpordeus , will re-add that as well. |
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12918 |
|
[SF] Trillian Build Failed (tid-12853) |
|
@blueorangutan package |
|
@rohityadavcloud a [SL] 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]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12968 |
|
@blueorangutan test |
|
@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-12896)
|
There was a problem hiding this comment.
tested and also code LGTM
[root@pr10567-t12975-kvm-ol8-mgmt1 management]# ls a*
access.log apilog.log
[root@pr10567-t12975-kvm-ol8-mgmt1 management]# tail -n 5 access.log
172.30.205.2 - - [14/Apr/2025:08:09:24 +0000] "GET /client/api/?command=listClusters&response=json&sessionkey=ONmBjAW4pzwCyVmLym1dWOIoD1Q HTTP/1.1" 200 339 "http://x.x.x.x:8080/client/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0" 60
172.30.205.2 - - [14/Apr/2025:08:09:25 +0000] "GET /client/api/?command=listStoragePools&response=json&sessionkey=ONmBjAW4pzwCyVmLym1dWOIoD1Q HTTP/1.1" 200 528 "http://x.x.x.x:8080/client/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0" 19
172.30.205.2 - - [14/Apr/2025:08:09:25 +0000] "GET /client/api/?listall=true&projectid=-1&command=listRouters&response=json&sessionkey=ONmBjAW4pzwCyVmLym1dWOIoD1Q HTTP/1.1" 200 26 "http://x.x.x.x:8080/client/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0" 15
172.30.205.2 - - [14/Apr/2025:08:09:25 +0000] "GET /client/api/?command=listSystemVms&response=json&sessionkey=ONmBjAW4pzwCyVmLym1dWOIoD1Q HTTP/1.1" 200 783 "http://x.x.x.x:8080/client/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0" 76
172.30.205.2 - - [14/Apr/2025:08:09:25 +0000] "GET /client/api/?listall=true&projectid=-1&details=min&page=1&pagesize=1&command=listVirtualMachines&response=json&sessionkey=ONmBjAW4pzwCyVmLym1dWOIoD1Q HTTP/1.1" 200 54 "http://x.x.x.x:8080/client/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:137.0) Gecko/20100101 Firefox/137.0" 17
[root@pr10567-t12975-kvm-ol8-mgmt1 management]# tail -n 5 apilog.log
2025-04-14 08:09:25,202 INFO [a.c.c.a.ApiServlet] (qtp1390913202-20:[ctx-a7447dba, ctx-f96449d7]) (logid:86631311) (userId=2 accountId=2 sessionId=node01l98g1lhhmtqb1qmj5j6e1nb7v2) 172.30.205.2 -- GET listall=true&projectid=-1&details=min&page=1&pagesize=1&command=listVirtualMachines&response=json&sessionkey=ONmBjAW4pzwCyVmLym1dWOIoD1Q 200 {"listvirtualmachinesresponse":{}}
2025-04-14 08:09:29,467 INFO [a.c.c.a.ApiServlet] (qtp1390913202-23:[ctx-0d563675, ctx-864386e3]) (logid:82b480d5) (userId=2 accountId=2 sessionId=node01l98g1lhhmtqb1qmj5j6e1nb7v2) 172.30.205.2 -- GET command=readyForShutdown&response=json&sessionkey=ONmBjAW4pzwCyVmLym1dWOIoD1Q 200 {"readyforshutdownresponse":{"readyforshutdown":{"readyforshutdown":true,"shutdowntriggered":false,"pendingjobscount":0}}}
* undo removval of accessLogger and deal with some warnings * Apply suggestions from code review * add accesslog to servlet


Description
This PR
Fixes: #10565
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
started an env and monitorred
/var/log/cloudstack/management/apilog.logHow did you try to break this feature and the system with this change?