Bug #36840
closedRe-registering a host does not change content source
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.
Updated by Samir Jha about 1 year ago
- Target version set to Katello 4.11.0
- Triaged changed from No to Yes
Updated by Jeremy Lenz 12 months ago
Need to make sure that registration_manager.rb#remove_host_artifacts clears out the host's content source.
Updated by The Foreman Bot 12 months ago
- Status changed from New to Ready For Testing
- Assignee set to Jeremy Lenz
- Pull request https://github.com/Katello/katello/pull/10797 added
Updated by Jeremy Lenz 12 months ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|c045d9bc9f7c527bbc56da34c6a4af5c0a84c6b4.