Project

General

Profile

Actions

Bug #35381

closed

consumer uuid differing between candlepin and katello

Added by Markus Bucher over 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Subscriptions
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Problem:
  1. host in foreman/katello existed with subscription_facet.uuid = X
  2. host had been registered in the past, so there was a candlepin consumer with uuid XXX
  3. host tried to re-register but got the following message from subscription-manager:
    subscription-manager register --org="MyOrg" --activationkey="akey-centos7" 
    HTTP error (404 - Not Found): Consumer with id e6ec3369-9568-4851-888c-75d08edf1624 could not be found.
    
Cause:
  1. katello subscription_facet had consumer-uuid e6ec3369-9568-4851-888c-75d08edf1624 and also sent that one to candlepin in the POST-request to /candlepin/environments/<env-id>/consumers/?activation_keys=<akey-uuid>
  2. candlepin returned a consumer with the already existing uuid XXX
  3. katello did not update the consumer-uuid of the host's subscription-facet to XXX

Solution:
Katello should update subscription_facet with the consumer's uuid from candlepin-API

Actions

Also available in: Atom PDF