Project

General

Profile

Actions

Bug #30889

closed

API errors since upgrade to 2.1.2

Added by Christian Meißner about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Compute resources - VMware
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Since we upgrade we get some strange errors. There is no correlation in time or method we call. We get for example `internal server error` when requesting a `compute_profile`:

2020-09-21T11:39:49 [I|app|4202d8c4] Started GET "/api/compute_profiles/23" for 44.128.0.8 at 2020-09-21 11:39:49 +0000
2020-09-21T11:39:49 [I|app|4202d8c4] Processing by Api::V2::ComputeProfilesController#show as JSON
2020-09-21T11:39:49 [I|app|4202d8c4]   Parameters: {"apiv"=>"v2", "id"=>"23"}
2020-09-21T11:39:49 [I|app|4202d8c4]   Rendering api/v2/compute_profiles/show.json.rabl
2020-09-21T11:39:49 [I|app|4202d8c4]   Rendered api/v2/compute_profiles/show.json.rabl (Duration: 19.4ms | Allocations: 4244)
2020-09-21T11:39:49 [W|app|4202d8c4] Action failed
2020-09-21T11:39:49 [I|app|4202d8c4]   Rendering api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout
2020-09-21T11:39:49 [I|app|4202d8c4]   Rendered api/v2/errors/standard_error.json.rabl within api/v2/layouts/error_layout (Duration: 0.7ms | Allocations: 276)
2020-09-21T11:39:49 [I|app|4202d8c4] Completed 500 Internal Server Error in 37ms (Views: 5.0ms | ActiveRecord: 12.8ms | Allocations: 13285)

With the corresponding ansible error:

fatal: [localhost]: FAILED! => {"changed": false, "error": {"message": "undefined method `detect' for #<String:0x00007f5476c41bd0>"}, "msg": "Failed to show resource: 500 Server Error: Internal Server Error for url: https://foreman.example.net/api/compute_profiles/23"}

No idea was went wrong. First of all I think we need some help in debugging this issue to give more input.

Actions

Also available in: Atom PDF