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

500 Error for hosts API endpoint causes satellite source scan to fail #792

Closed
mdvickst opened this issue Feb 21, 2018 · 0 comments
Closed
Assignees
Milestone

Comments

@mdvickst
Copy link

Opening a new issue


Specify type:

  • Bug

Bug severity (if applicable):

  • Medium

Description:

If Satellite throws 500 error for an individual host api it causes entire scan to fail.

e.g. "status_message": "Satellite error encountered: Invalid response code 500 for url: https://sat6.rhsat.rdu.salab.redhat.com:443/api/v2/hosts/42\nInspect scan failed for {id:14, scan_type:inspect, status:running, source:{ id:3, name:sat6_rdu_lab2, type:satellite}, sequence_number:3, systems_count: 178, systems_scanned: 151, systems_failed: None, start_time: 2018-02-08 05:23:27.311702 end_time: None, connection_result: None, inspection_result: { id:7, source:api.SystemInspectionResult.None, }}.",

https://sat6.rhsat.rdu.salab.redhat.com:443/api/v2/hosts/42. "message": "undefined method `version' for nil:NilClass"

Bug Report

Expected behavior:

error can be logged and we capture it as a failed system in the inspection results.

Actual behavior:

entire scan failes

Steps to reproduce:

Environment information:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants