Bug 2168254

Summary: Editing virt-who configuration fails with error undefined method `update_attributes' for #<ForemanVirtWhoConfigure::Config:0x00007fd5d25bfb58> Did you mean? update_attribute audited_attributes
Product: Red Hat Satellite Reporter: Jayant Bhatia <jbhatia>
Component: Virt-who Configure PluginAssignee: Lucy Fu <lufu>
Status: CLOSED ERRATA QA Contact: yanpliu <yanpliu>
Severity: high Docs Contact:
Priority: high    
Version: 6.13.0CC: ahumbe, chrobert, pcreech, sajha
Target Milestone: 6.13.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: https://projects.theforeman.org/issues/36048
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-03 13:24:54 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 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