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 2168254 - Editing virt-who configuration fails with error undefined method `update_attributes' for #<ForemanVirtWhoConfigure::Config:0x00007fd5d25bfb58> Did you mean? update_attribute audited_attributes
Summary: Editing virt-who configuration fails with error undefined method `update_attr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Virt-who Configure Plugin
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.13.0
Assignee: Lucy Fu
QA Contact: yanpliu
URL: https://projects.theforeman.org/issue...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-08 15:18 UTC by Jayant Bhatia
Modified: 2023-08-03 17:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:24:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36048 0 Normal Closed virt-who-config update failed for "Could not create the Virt Who configuration" 2023-02-09 20:41:45 UTC
Github theforeman foreman_virt_who_configure pull 156 0 None Merged Fixes #36048 - update_attributes no longer works in Rails 6.1 2023-02-09 20:41:45 UTC
Red Hat Issue Tracker SAT-15777 0 None None None 2023-02-09 15:20:32 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:25:13 UTC

Description Jayant Bhatia 2023-02-08 15:18:55 UTC
Description of problem:

Existing virt-who configuration cannot be edited and while trying to save it after making changes fail with following error.

        Oops, we're sorry but something went wrong undefined method `update_attributes' for #<ForemanVirtWhoConfigure::Config:0x00007fd5d0c37d98> Did you mean? update_attribute audited_attributes


Version-Release number of selected component (if applicable): satellite-cli-6.13.0-4.el8sat.noarch


How reproducible: Always


Steps to Reproduce:

1. Navigate to Satellite WebUI -> Infrastructure -> Virt-who configurations -> Create config.

2. Select 'Hypervisor Type' as 'VMware vSphere / vCenter (esx). Fill all the other basic details and save it.

3. Navigate to Satellite WebUI -> Infrastructure -> Virt-who configurations -> Click on existing configuration name -> Edit.

4. Make any changes, for example: select 'Whitelist' in 'Filtering', and add following text in 'Filter hosts' field: *.example.com. Click on 'Submit'.

Actual results:

The changes cannot be submitted and below error is displayed on screen.

        Oops, we're sorry but something went wrong undefined method `update_attributes' for #<ForemanVirtWhoConfigure::Config:0x000055bcb06cf0a8> Did you mean? update_attribute audited_attributes


Expected results:

The changes should get submitted successfully

Comment 2 Brad Buckingham 2023-02-09 15:18:04 UTC
Is this a regression from Satellite 6.12?  Thanks!

Comment 3 Jayant Bhatia 2023-02-09 15:32:54 UTC
I do not see this issue in Satellite 6.12. Making changes in virt-who configuration gets submitted successfully in Satellite 6.12.

Comment 8 errata-xmlrpc 2023-05-03 13:24:54 UTC
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.13 Release), 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:2097


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