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.
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/7144 added
Updated by yifat makias about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 5fb662f4d3f7618e872ee024c410a66c6a1099a2.