Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1218289 - UI raises 500 ISE on refreshing facts of a discovered host which is down/poweroff
UI raises 500 ISE on refreshing facts of a discovered host which is down/powe...
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Discovery Plugin (Show other bugs)
6.1.0
Unspecified Unspecified
unspecified Severity medium (vote)
: GA
: Unused
Assigned To: Lukas Zapletal
Sachin Ghai
http://projects.theforeman.org/issues...
: Triaged
Depends On:
Blocks: 1193977
  Show dependency treegraph
 
Reported: 2015-05-04 10:00 EDT by Sachin Ghai
Modified: 2017-04-03 21:40 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-27 05:15:21 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
on refreshing facts of unreachable host, raises 500 ISE (52.53 KB, image/png)
2015-05-04 10:00 EDT, Sachin Ghai
no flags Details
error notification available on webUI, (45.41 KB, image/png)
2016-04-04 04:17 EDT, Sachin Ghai
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 10391 None None None 2016-04-22 12:02 EDT
Red Hat Product Errata RHBA-2016:1501 normal SHIPPED_LIVE Red Hat Satellite 6.2 Capsule and Server 2016-07-27 08:28:58 EDT

  None (edit)
Description Sachin Ghai 2015-05-04 10:00:10 EDT
Created attachment 1021760 [details]
on refreshing facts of unreachable host, raises 500 ISE

Description of problem:
I was trying to refresh the facts of discovered host and UI raises following error. But later I realized the discovered host was already down.

--

Oops, we're sorry but something went wrong
 
Could not get facts from proxy https://dhcp201-172.englab.pnq.redhat.com:9090/discovery/192.168.100.15: 500 Internal Server Error
--


production.log:

2015-05-04 19:26:58 [I] Processing by DiscoveredHostsController#refresh_facts as HTML
2015-05-04 19:26:58 [I]   Parameters: {"id"=>"mac525400ccc513"}
2015-05-04 19:27:01 [W] Operation FAILED: Could not get facts from proxy https://dhcp201-172.englab.pnq.redhat.com:9090/discovery/192.168.100.15: 500 Internal Server Error
2015-05-04 19:27:01 [I]   Rendered common/500.html.erb within layouts/application (5.4ms)
2015-05-04 19:27:01 [I]   Rendered layouts/base.html.erb (1.5ms)
2015-05-04 19:27:01 [I] Completed 500 Internal Server Error in 3128ms (Views: 9.8ms | ActiveRecord: 6.8ms)

Version-Release number of selected component (if applicable):
sat6.1 GA snap2 (Satellite-6.1.0-RHEL-7-20150429.2)

How reproducible:
always

Steps to Reproduce:
1. discovered a host
2. power-it off
3. refresh-facts

Actual results:
500 ISE

Expected results:
UI should raise a decent error without :Oops and 500 ISE

Additional info:
Comment 2 Bryan Kearney 2015-05-06 08:59:33 EDT
Created redmine issue http://projects.theforeman.org/issues/10391 from this bug
Comment 3 Bryan Kearney 2016-02-29 12:10:23 EST
Moving to POST since upstream bug http://projects.theforeman.org/issues/10391 has been closed
-------------
Lukas Zapletal
Resolved in https://github.com/theforeman/foreman_discovery/pull/251
Comment 4 Sachin Ghai 2016-03-28 05:21:04 EDT
Verified with sat6.2 snap5.1

I can see proper error in production.log on refreshing the facts of discovered host which is not reachable:

[W] ERF50-7522 [Foreman::WrappedException]: Failed to refresh facts for mac5254006ef4b5 with error Could not get facts from proxy https://192.168.100.11:8443: No route to host - connect(2) for "192.168.100.11" port 8443 ([RuntimeError]: Could not get facts from proxy https://192.168.100.11:8443: No route to host - connect(...)


However, no error appears on webUI. I think similar error should appear on webUI too. thanks
Comment 5 Sachin Ghai 2016-04-04 04:16:02 EDT
Verified with sat6.2 beta snap6

I can see error notification on webUI, on refreshing the facts of un-reachable host. Moving this to verified. Please see the screenshot for verification.
Comment 6 Sachin Ghai 2016-04-04 04:17 EDT
Created attachment 1143251 [details]
error notification available on webUI,
Comment 8 errata-xmlrpc 2016-07-27 05:15:21 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501

Note You need to log in before you can comment on or make changes to this bug.