Bug 1382770

Summary: Can't display available errata for host in webadmin
Product: [oVirt] ovirt-engine Reporter: Petr Kubica <pkubica>
Component: Frontend.WebAdminAssignee: Moti Asayag <masayag>
Status: CLOSED NOTABUG QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.5CC: bugs, oourfali, pkubica
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-25 10:24:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Petr Kubica 2016-10-07 16:24:54 UTC
Description of problem:
I have rhevm engine with satellite provider and I have problem with display available errata in webadmin:
Problem retrieving errata: The engine is not associated with a Foreman/Satellite provider. No errata for the engine are available.
(same error as without associated satellite)

but it worked from api:
https://[engine-fqdn]/ovirt-engine/api/hosts/[host-id]/katelloerrata 
it display a list of available errata 

In engine.log is only: 
ERROR [org.ovirt.engine.core.bll.host.provider.foreman.EngineForemanProviderFinder] (default task-47) [] Failed to find host on any provider by host name '[engine-fqdn]' 

Version-Release number of selected component (if applicable):
rhevm 4.0.5-0.1
Satellite 6.2.1

How reproducible:
always

Steps to Reproduce:
1. rhevm and satellite environment (added as external provider in rhevm, added as compute resource in satellite)
2. add already provisioned host to engine (host will be up)
3. errata page under External Providers tree

Actual results:
Error

Expected results:
Should display errata

Comment 1 Yaniv Kaul 2016-10-07 21:47:08 UTC
Dup of bug 1382833 ?

Comment 2 Oved Ourfali 2016-10-10 05:00:53 UTC
Please give Moti access to your environment to take a look.
The logic we do for engine errata is to look for this host in all configured providers.

Comment 3 Moti Asayag 2016-10-10 06:03:09 UTC
(In reply to Petr Kubica from comment #0)
> Description of problem:
> I have rhevm engine with satellite provider and I have problem with display
> available errata in webadmin:
> Problem retrieving errata: The engine is not associated with a
> Foreman/Satellite provider. No errata for the engine are available.
> (same error as without associated satellite)
> 
> but it worked from api:
> https://[engine-fqdn]/ovirt-engine/api/hosts/[host-id]/katelloerrata 
> it display a list of available errata 
> 
> In engine.log is only: 
> ERROR
> [org.ovirt.engine.core.bll.host.provider.foreman.
> EngineForemanProviderFinder] (default task-47) [] Failed to find host on any
> provider by host name '[engine-fqdn]' 
> 
> Version-Release number of selected component (if applicable):
> rhevm 4.0.5-0.1
> Satellite 6.2.1
> 
> How reproducible:
> always
> 
> Steps to Reproduce:
> 1. rhevm and satellite environment (added as external provider in rhevm,
> added as compute resource in satellite)
> 2. add already provisioned host to engine (host will be up)
> 3. errata page under External Providers tree

The Errata on the system tree presents the errata for the engine server.

In order to view the Errata of a specific host, you should add another step:
Click on 'Edit' host and select the specific Satellite external provider.
When you click on the specific Host, navigate to the 'General' sub-tab and click on the 'Errata' sub-sub tab.

> 
> Actual results:
> Error
> 
> Expected results:
> Should display errata

Comment 4 Petr Kubica 2016-10-25 10:24:24 UTC
Ahh I see, checked and it's working. Thanks.