Bug #32100
closedUnable to set HostGroup content source to capsule that isn't synced
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1656127
Description of problem:
Error attempting to set the "Content Source" Capsule to a capsule that does not have the LifeCycle environment promoted to it.
"Failed to save: The selected content source and lifecycle environment do not match"
Version-Release number of selected component (if applicable):
Katello 3.7
How reproducible:
Steps to Reproduce:
1. Create a Lifecycle Environment that does not have Content Promoted to it.
2. Set a Host group to use that Lifecycle Enviornment
3. Select a Content Source capsule from the dropdown that does not have that Lifecycle environment content synced.
Actual results:
Error: "Unable to save: The selected content source and lifecycle environment do not match"
Expected results:
Ability to set the content source as the capsule.
Additional info:
This worked prior to Katello 3.7, and this new validation only appears to be for the hostgroup. An individual host can have the "Content Source" capsule set to a value that does not match the Lifecycle Environment, but a hostgroup cannot for some reason.