Bug 1271340 - engine can't log in to satellite
engine can't log in to satellite
Status: CLOSED CURRENTRELEASE
Product: ovirt-engine
Classification: oVirt
Component: BLL.Infra (Show other bugs)
3.6.0
Unspecified Unspecified
high Severity urgent (vote)
: ovirt-3.6.0-ga
: 3.6.0
Assigned To: Oved Ourfali
movciari
infra
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-13 13:05 EDT by movciari
Modified: 2016-02-10 14:14 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-27 02:57:30 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Infra
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
rule-engine: ovirt‑3.6.0+
rule-engine: blocker+
ylavi: planning_ack+
masayag: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 47319 master MERGED engine: Use UUID as content host id on Satellite Never
oVirt gerrit 47350 ovirt-engine-3.6 MERGED engine: Use UUID as content host id on Satellite Never
oVirt gerrit 47352 ovirt-engine-3.6.0 MERGED engine: Use UUID as content host id on Satellite Never

  None (edit)
Description movciari 2015-10-13 13:05:27 EDT
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 01:56:30 EDT
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 03:42:52 EDT
Michal, does the log says hint why it fails?
Comment 5 movciari 2015-10-14 03:58:10 EDT
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 06:49:02 EDT
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 02:57:30 EST
Since oVirt 3.6.0 has been released, moving from verified to closed current release.

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