thoth-station / management-api

An API service used for administration of deployed Thoth
GNU General Public License v3.0
3 stars 11 forks source link

500 Error when checking for logs of pending solver #920

Closed mayaCostantini closed 1 year ago

mayaCostantini commented 1 year ago

Describe the bug

Environment: stage

Checking for logs of a pending solver job gives an InternalServerError:

{
  "details": {
    "datetime": "2022-09-13T12:41:39.258229",
    "type": "InternalServerError"
  },
  "error": "Internal server error occurred, please contact administrator with provided details."
}

When solver status is pending:

{
  "parameters": {
    "analysis_id": "solver-rhel-8-py38-220913123942-1a7a720b5e604db4"
  },
  "status": {
    "finished_at": null,
    "reason": null,
    "started_at": null,
    "state": "pending"
  }
}

To Reproduce

Go to the stage instance of Management API and try to solve a package, then check for solver logs when status is pending. Package used to observe this error was:

{
  "package_name": "fext",
  "version_specifier": "*"
}

from https://pypi.org/simple.

Expected behavior This should be handled as a 400 error.

mayaCostantini commented 1 year ago

/kind bug /priority critical-urgent

sesheta commented 1 year ago

@mayaCostantini: The label(s) sig/stack, sig/guidance cannot be applied, because the repository doesn't have them.

In response to [this](https://github.com/thoth-station/management-api/issues/920#issuecomment-1245401590): >/sig stack guidance Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
mayaCostantini commented 1 year ago

/sig stack-guidance

harshad16 commented 1 year ago

The exception doesnt seem to be handled properly. /triage accepted

harshad16 commented 1 year ago

The change is now live on cluster.

A request for a solver is in a pending state. Screenshot from 2022-10-13 16-00-27

Log request, correctly show 404 not found with details. Screenshot from 2022-10-13 16-03-14

closing the issue. Please re-open if faced with same issue.