Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2218528 - LCE change through bulk actions fails with 'undefined method' error
Summary: LCE change through bulk actions fails with 'undefined method' error
Keywords:
Status: CLOSED DUPLICATE of bug 2215081
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.14.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.14.0
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-29 13:58 UTC by Vladimír Sedmík
Modified: 2023-07-11 12:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-11 12:00:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18754 0 None None None 2023-07-03 12:29:21 UTC

Description Vladimír Sedmík 2023-06-29 13:58:42 UTC
Description of problem:
During verification of BZ#1944710 I tried to change lifecycle environment of a host through bulk actions on the Content Hosts page. The first issue is that we are still able to assign a LCE not present on the content source (like external capsule), the second issue is that it fails with

 undefined method `content_view=' for #<Katello::Host::ContentFacet:0x00007f77416c1528>


Version-Release number of selected component (if applicable):
6.14.0 snap 4


How reproducible:
always


Steps to Reproduce:
1. Register a host through external capsule where only some LCEs are synced.
2. Go to Content Hosts -> select host -> Select Action -> Change Lifecycle Environment
3. In the "Content Host Bulk Content" modal select a LCE, CV, click Assign, confirm Yes


Actual results:
Fails with 'undefined method' error


Expected results:
1. no 'undefined methor' error
2. I shouldn't be able to pick LCE not present on the content source, or at least I should get meaningful error message

Comment 3 Jeremy Lenz 2023-06-29 20:29:14 UTC
The

undefined method `content_view=' for #<Katello::Host::ContentFacet:0x00007f77416c1528>

should be solved by https://bugzilla.redhat.com/show_bug.cgi?id=2215081.

However, we should still fix the UI issue in this BZ.

Comment 5 Jeremy Lenz 2023-07-10 13:42:17 UTC
Thinking some more about this, when selecting multiple hosts there's no sane way to scope the selections to only the content source(s) of the selected hosts. So I'm thinking for bulk actions we may just want to close this BZ (when https://bugzilla.redhat.com/show_bug.cgi?id=2218528#c3 is confirmed) and allow it to fall back to the API error.

Comment 7 Jeremy Lenz 2023-07-11 12:00:15 UTC
Confirmed that https://bugzilla.redhat.com/show_bug.cgi?id=2215081 solves the undefined method error. Closing per https://bugzilla.redhat.com/show_bug.cgi?id=2218528#c6

*** This bug has been marked as a duplicate of bug 2215081 ***


Note You need to log in before you can comment on or make changes to this bug.