Bug 1944710
Summary: | Should not be able to assign LE on the client profile which is not synced on the capsule server | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | rakesh kumar <rakumar> | |
Component: | Hosts - Content | Assignee: | Jeremy Lenz <jlenz> | |
Status: | CLOSED ERRATA | QA Contact: | Vladimír Sedmík <vsedmik> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 6.8.0 | CC: | ahumbe, dsinglet, iballou, jlenz, ktordeur, mkalyat, myarboro, osousa, pcreech, rlavi, spusater, vsedmik | |
Target Milestone: | 6.14.0 | Keywords: | PrioBumpGSS, Triaged | |
Target Release: | Unused | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2218657 (view as bug list) | Environment: | ||
Last Closed: | 2023-11-08 14:17:34 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: |
Description
rakesh kumar
2021-03-30 14:18:54 UTC
We should update the host content view selector to require selection in order: 1. Content source (capsule) 2. LCE 3. Content view In 6.13 the 'Change Content Source' page already does this. This would just be a matter of updating the 'Edit content view assignment' modal on the content view overview card. In addition, the LCE and Content view selection should be limited based on what environment is assigned to the selected content source. *** Bug 2134087 has been marked as a duplicate of this bug. *** Created redmine issue https://projects.theforeman.org/issues/36316 from this bug Upstream bug assigned to jlenz Upstream bug assigned to jlenz Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36316 has been resolved. This is a defect and not an RFE, so I'm removing the RFE bits. Verified in 6.14.0 snap 4 Setup as per comment 0: 1) SAT with multiple organizations and LCEs and CVs in each organization 2) CAPS with only a subset of LCEs and a host registered through it Results: 1) On Host details page -> Change content source page (through top right kebab), as well as on 2) On Host details page -> Overview tab -> Content view details card -> Edit content view assignment modal: - Message that some LCEs were disabled because they are not associated with the host's content source is displayed - Only the LCEs associated with the content source can be selected - Only CVs inside the selected LCE can be selected 3) On the 'Create Host' page - The 'Lifecycle Environment' dropdown is scoped to the selected organization (contains only the organization's LCEs). 4) Attempts to assign LCE not synced on the content source through CLI/API returns appropriate error: [ERROR 2023-06-29T14:14:20 API] 500 Internal Server Error [DEBUG 2023-06-29T14:14:20 API] { "error" => { "message" => "Validation failed: Host rhel8host.redhat.com: Cannot add content view environment to content facet. The host's content source 'capsule.redhat.com' does not sync lifecycle environment 'OWCA-2'." } } 5) Content host page -> bulk action still allows to assign any LCE to the selected host. However, the assignment fails with error and the issue will be tracked by BZ#2218528 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.14 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:6818 |