Project

General

Profile

Actions

Bug #36840

closed

Re-registering a host does not change content source

Added by Ian Ballou about 1 year ago. Updated about 1 year ago.

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

Description

If you create a host that uses an external smart proxy as a content source, for example, and then register the host again using no content source (aka pulp primary), the content source won't actually be changed. This can cause errors during registration, like:

Validation failed: Host centos9-stream.example.com: Cannot add content view environment to content facet. The host's content source 'centos8-proxy-devel.example.com' does not sync lifecycle environment 'Library'. (HTTP error code 422: Unprocessable Entity)

My smart proxy didn't sync library, but the new activation key I was using was set to use library. This should work, so we need to make sure the content source is changed during re-registration.

Actions #1

Updated by Samir Jha about 1 year ago

  • Target version set to Katello 4.11.0
  • Triaged changed from No to Yes
Actions #2

Updated by Jeremy Lenz about 1 year ago

Need to make sure that registration_manager.rb#remove_host_artifacts clears out the host's content source.

Actions #3

Updated by Jeremy Lenz about 1 year ago

  • Bugzilla link set to 2249540
Actions #4

Updated by The Foreman Bot about 1 year ago

  • Status changed from New to Ready For Testing
  • Assignee set to Jeremy Lenz
  • Pull request https://github.com/Katello/katello/pull/10797 added
Actions #5

Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases Katello 4.11.0 added
Actions #6

Updated by Jeremy Lenz about 1 year ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF