Bug 1271340

Summary: engine can't log in to satellite
Product: [oVirt] ovirt-engine Reporter: movciari
Component: BLL.InfraAssignee: Oved Ourfali <oourfali>
Status: CLOSED CURRENTRELEASE QA Contact: movciari
Severity: urgent Docs Contact:
Priority: high    
Version: 3.6.0CC: bugs, gklein, masayag, movciari, oourfali, pstehlik
Target Milestone: ovirt-3.6.0-gaFlags: rule-engine: ovirt-3.6.0+
rule-engine: blocker+
ylavi: planning_ack+
masayag: devel_ack+
pstehlik: testing_ack+
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-27 07:57:30 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:
Embargoed:

Description movciari 2015-10-13 17:05:27 UTC
Description of problem:
I added Satellite 6 as an external provider, checked that credentials are valid, hitting test button in new/edit external provider says it succeeded, and my engine host is added as content host in Satellite.
When I click Errata link in webadmin's tree view, I get an error "Problem retrieving errata: PROVIDER_FAILURE"

Version-Release number of selected component (if applicable):
rhevm-3.6.0-0.18.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. Add Satellite as an external provider, use http protocol and authentication, test it to be sure
2. Add engine host as content host in this Satellite instance
3. Hit "Errata" link in webadmin's tree view

Actual results:
returns an error

Expected results:
should show available errata

Additional info:

Comment 3 Oved Ourfali 2015-10-14 05:56:30 UTC
It seems like the satellite user doesn't have any default organization defined.
Moti - please help Michal set it up.

Comment 4 Pavel Stehlik 2015-10-14 07:42:52 UTC
Michal, does the log says hint why it fails?

Comment 5 movciari 2015-10-14 07:58:10 UTC
I assigned that user a default organization and location, I'm posting new log.
The new log says error 400

Comment 8 Moti Asayag 2015-10-14 10:49:02 UTC
The root cause of the bug is a difference in the semantic of the ID field under the /katello/api/v2/systems/:id resource between Katello to Satellite.

The :id field in Katello represents the UUID of the content host, however under satellite it is a sequence number.

Only with the value of the UUID the content host can be identified in candlepin.

The solution will be to use the UUID field of the system resource instead of the ID.

Comment 9 Sandro Bonazzola 2015-11-27 07:57:30 UTC
Since oVirt 3.6.0 has been released, moving from verified to closed current release.