| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov ReportAttention: Patch coverage is 29.68750% with 45 lines in your changes missing coverage. Please review.
@@ 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.
|
Sorry, something went wrong.
There was a problem hiding this comment.
CLGTM
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12788 |
Sorry, something went wrong.
|
@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
There was a problem hiding this comment.
I'd probably call the logger ACCESS_LOGGER (or API_LOGGER) since it's a constant, but it's not really an issue. LGTM
Edit: Actually, nevermind since it's a reference.
Sorry, something went wrong.
|
Thanks for reviewing @gpordeus! |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-12728)
|
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 12831 |
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12850 |
Sorry, something went wrong.
|
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian Build Failed (tid-12830) |
Sorry, something went wrong.
|
tested and does not work to satisfaction yet (empty /var/log/cloudstack/management/apilog.log) |
Sorry, something went wrong.
cc @Pearl1594 @JoaoJandre maybe a fluke but no cigar so far |
Sorry, something went wrong.
|
@DaanHoogland, I compared with the log4j2 PR and found the logger in ApiServlet is also missing. As for the handle() method in ApiServer, its comment says it is used in requests from the integration port, but I haven't tested it. (added the prints since opening the PR is a pain) prints from #7131 |
Sorry, something went wrong.
thanks for the heads-up @gpordeus , will re-add that as well. |
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12918 |
Sorry, something went wrong.
|
[SF] Trillian Build Failed (tid-12853) |
Sorry, something went wrong.
There was a problem hiding this comment.
Needs QA, otherwise LGTM
Sorry, something went wrong.
|
@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. |
Sorry, something went wrong.
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 12968 |
Sorry, something went wrong.
|
@Pearl1594 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
Sorry, something went wrong.
|
[SF] Trillian test result (tid-12896)
|
Sorry, something went wrong.
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}}}
Sorry, something went wrong.
* undo removval of accessLogger and deal with some warnings * Apply suggestions from code review * add accesslog to servlet
| Back | FazBrowse Home | New Git URL |
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.log
How did you try to break this feature and the system with this change?