Bug 2165848
| Summary: | virt-who-config update failed for "Could not create the Virt Who configuration" | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | yanpliu <yanpliu> |
| Component: | Virt-who Configure Plugin | Assignee: | Lucy Fu <lufu> |
| Status: | CLOSED ERRATA | QA Contact: | yanpliu <yanpliu> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.13.0 | CC: | lufu, pcreech, smallamp |
| Target Milestone: | 6.13.0 | Keywords: | Regression, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| 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:53 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: | |||
Is this a regression from 6.12? Thanks! Created redmine issue https://projects.theforeman.org/issues/36048 from this bug Upstream bug assigned to lufu Upstream bug assigned to lufu Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36048 has been resolved. Verification on Satellite6.13 snapshot 16.0 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 |
Description of problem: virt-who-config update failed for "Could not create the Virt Who configuration" Version-Release number of selected component (if applicable): Satellite6.13.0 snapshot8.0 katello-4.7.0-1.el8sat.noarch rubygem-foreman_virt_who_configure-0.5.11-1.el8sat.noarch rubygem-hammer_cli_foreman_virt_who_configure-0.0.9-2.el8sat.noarch How reproducible: 100% Steps to Reproduce: 1. Create a virt-who config [root@dell-per740-68-vm-07 ~]# hammer virt-who-config list | grep ahv 14 | ui_ahv_central | every 2 hours | No Report Yet | [root@dell-per740-68-vm-07 ~]# hammer virt-who-config info --id 14 General information: Id: 14 Name: ui_ahv_central Hypervisor type: ahv Hypervisor server: 10.73.3.134 Hypervisor username: admin AHV Prism flavor: central Enable AHV debug: yes Status: No Report Yet Schedule: Interval: every 2 hours Last Report At: Connection: Satellite server: dell-per740-68-vm-07.lab.eng.pek2.redhat.com Hypervisor ID: hostname Filtering: Unlimited Filter host parents: Exclude host parents: Debug mode: yes Ignore proxy: HTTP Proxy: 2. Update the virt-who config option by cli [root@dell-per740-68-vm-07 ~]# hammer virt-who-config update --interval 240 --id 14 Could not create the Virt Who configuration: Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs. 3. Check Edit virt-who config by web UI change the name for virt-who config and submit. Error display: "Oops, we're sorry but something went wrong undefined method `update_attributes' for #<ForemanVirtWhoConfigure::Config:0x000055a2fded58c8> Did you mean? update_attribute audited_attributes If you feel this is an error with Satellite itself, please open a new issue with Satellite ticketing system, Please include in your report the full error log that can be acquired by running: foreman-rake errors:fetch_log request_id=bfb65a4c and it is highly recommended to also attach the sosreport output." Please reference the pic Edit_virtwhoconfig.jpg 4. check modify virt-who config by api [root@dell-per740-68-vm-07 ~]# curl --insecure -H "accept:application/json,version=2" -H "content-type:application/json" -X PUT -d '{"foreman_virt_who_configure_config": {"name": "ui_ahv_central", "hypervisor_server": "10.73.3.134", "satellite_url": "dell-per740-68-vm-07.lab.eng.pek2.redhat.com", "hypervisor_type": "ahv", "hypervisor_username": "admin", "hypervisor_id": "hostname", "hypervisor_password": "XXXX", "debug":"true", "filtering_mode": 0, "interval": 120, "organization_id": 1}}' -k -u admin:admin https://dell-per740-68-vm-07.lab.eng.pek2.redhat.com/foreman_virt_who_configure/api/v2/configs/14 { "error": {"message":"Internal Server Error: the server was unable to finish the request. This may be caused by unavailability of some required service, incorrect API call or a server-side bug. There may be more information in the server's logs."} } [root@dell-per740-68-vm-07 ~]# Actual results: virt-who config update option should work well for ui/api/cli Expected results: virt-who config update option failed Additional info: