-
Bug
-
Resolution: Done-Errata
-
Major
-
6.13.0
-
False
-
-
False
-
CLOSED
-
1,600
-
True
-
Phoenix
-
-
-
Sprint 112, Sprint 113
-
Important
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":
}
[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: