Project

General

Profile

Actions

Bug #38190

closed

Remove version from environment wizard doesn't enforce content source LCE rules

Added by Jeremy Lenz about 2 months ago. Updated about 1 hour ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Lifecycle Environments
Target version:
Difficulty:
medium
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When you remove a CV version from a lifecycle environment via web UI, you may have one or more hosts using this CV version. For these affected hosts, the wizard lets you choose a new content view and lifecycle environment to assign. If the affected host's content source does not sync the lifecycle environment, the entire removal task fails with an error like

Validation failed: Host rhel9.fedora.example.com: Cannot add content view environment to content facet. The host's content source 'centos9-stream.fedora.example.com' does not sync lifecycle environment 'Library'.Validation failed: Host rhel9.fedora.example.com: Cannot add content view environment to content facet. The host's content source 'centos9-stream.fedora.example.com' does not sync lifecycle environment 'Library'.Validation failed: Host rhel9.fedora.example.com: Cannot add content view environment to content facet. The host's content source 'centos9-stream.fedora.example.com' does not sync lifecycle environment 'Library'.

In other places in the UI (e.g. the Change content view environments modal in host details) we do a pre-check and don't allow you to save your selection, if it would cause this error. Ideally we should also do this for the 'remove from environment' wizard.

Actions #1

Updated by Jeremy Lenz about 2 months ago

  • Description updated (diff)
Actions #2

Updated by Chris Roberts about 2 months ago

  • Target version changed from Katello 4.16.0 to Katello 4.17.0
  • Triaged changed from No to Yes
  • Red Hat JIRA set to SAT-30917
Actions #3

Updated by The Foreman Bot 3 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/11357 added
Actions #4

Updated by The Foreman Bot about 2 hours ago

  • Fixed in Releases Katello 4.17.0 added
Actions #5

Updated by Anonymous about 1 hour ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF