Skip to content

5 Kubernetes fetch errors in server_http.go logged at slog.Warn while returning HTTP 500 to callers #7802

@aashu2006

Description

@aashu2006

User Request

Type: bug
Target: Console Application
Submitted by: @aashu2006
Console Request ID: c874479a-e1a4-423d-835e-f1903be63cd3

Description

What happened:
In pkg/agent/server_http.go:87, 97, 163, 172, and 250, errors that immediately return {"error": "internal server error"} to the caller are logged with slog.Warn. These are genuine failures not advisory notices — slog.Warn will be filtered out in error-severity log aggregators, hiding real cluster connectivity failures.

What I expected:
All five should use slog.Error since they result in HTTP 500 error responses to callers.

Steps to reproduce:

  1. Make Kubernetes nodes or events API unavailable
  2. Observe 500 responses but errors only appear at Warn level in logs

This issue was automatically created from the KubeStellar Console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-fix-requestedai-processingAI is currently processing this issuekind/bugCategorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions