Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Excessive logging from NMS #472

Closed
markbeierl opened this issue Apr 4, 2024 · 1 comment
Closed

Excessive logging from NMS #472

markbeierl opened this issue Apr 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@markbeierl
Copy link
Contributor

Describe the bug

I have an NMS that has been running for a couple weeks now:

control-plane    nms-0                                    2/2     Running   170 (3h22m ago)   16

Today I noticed in the Loki logs an excessive amount of what appear to be startup messages coming from the NMS. Note multiple events within milliseconds of each other.

image

To Reproduce

Deploy sdcore control plane and integrate it with COS. Go to Grafana explore and filter on charm = sdcore-nms-k8s. Watch for duplicate entries showing.

Expected behavior

Logging should be kept to a minimum. From what I can see in running pebble logs for the NMS, the event is only happening once, but is being logged multiple times in Loki.

Screenshots

Logs

Except from pebble log around the same time:

2024-04-04T19:28:21.516Z [pebble] GET /v1/notices?timeout=30s 30.004930785s 200
2024-04-04T19:28:40.560Z [pebble] GET /v1/files?action=list&path=%2Fnms%2Fconfig%2Fupf_config.json&itself=true 297.008µs 200
2024-04-04T19:28:40.561Z [pebble] GET /v1/files?action=read&path=%2Fnms%2Fconfig%2Fupf_config.json 199.037µs 200
2024-04-04T19:28:40.599Z [pebble] GET /v1/files?action=list&path=%2Fnms%2Fconfig%2Fgnb_config.json&itself=true 487.151µs 200
2024-04-04T19:28:40.602Z [pebble] GET /v1/files?action=read&path=%2Fnms%2Fconfig%2Fgnb_config.json 157.835µs 200
2024-04-04T19:28:40.606Z [pebble] GET /v1/plan?format=yaml 407.371µs 200
2024-04-04T19:28:40.647Z [pebble] POST /v1/layers 665.796µs 200
2024-04-04T19:28:40.694Z [pebble] POST /v1/services 46.396841ms 202
2024-04-04T19:28:40.746Z [pebble] Service "sdcore-nms" stopped
2024-04-04T19:28:40.804Z [pebble] Service "sdcore-nms" starting: /bin/bash -c 'cd /app && npm run start'
2024-04-04T19:28:41.369Z [sdcore-nms] 
2024-04-04T19:28:41.370Z [sdcore-nms] > [email protected] start
2024-04-04T19:28:41.370Z [sdcore-nms] > next start
2024-04-04T19:28:41.370Z [sdcore-nms] 
2024-04-04T19:28:41.841Z [pebble] GET /v1/changes/23086/wait?timeout=4.000s 1.143919655s 200
2024-04-04T19:28:41.905Z [sdcore-nms]    ▲ Next.js 14.1.2
2024-04-04T19:28:41.906Z [sdcore-nms]    - Local:        http://localhost:3000
2024-04-04T19:28:41.907Z [sdcore-nms] 
2024-04-04T19:28:42.237Z [sdcore-nms]  ✓ Ready in 741ms
2024-04-04T19:28:51.517Z [pebble] GET /v1/notices?timeout=30s 30.000686052s 200

As there is only one event, it looks like something in the logging configuration is additive.

@markbeierl markbeierl added the bug Something isn't working label Apr 4, 2024
@patriciareinoso
Copy link
Contributor

Duplicated: canonical/sdcore-nms-k8s-operator#90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants