Bug #27002
closedNonexistent quota can be set
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1716423
Description of problem:
In Hammer, I can specify anything in --ovirt-quota, even if quota with that ID doesn't actually exist.
When viewing the CR in WebUI, the first quota in the list of existing quotas is shown. However, when trying to create a host on that CR, you get the following error in WebUI and a quite useless traceback: "Failed to create a compute testrhevH1 (RHV) instance glen-krick.example.com: HTTP response code is 404. The response body is empty. "
How reproducible:
Deterministic
Steps to Reproduce:
1. # hammer compute-resource update --name <current_CR_name> --ovirt-quota <nonexistent_quota_id>
2. In WebUI, try to create a host on the CR
Actual results:
404
In the database, there are entries with the nonexistent quota.
Expected results:
The hammer command should have failed in the first place.
Additional info:
This is only well debuggable using RHEV's log files.