Project

General

Profile

Bug #27002

Nonexistent quota can be set

Added by Shira Maximov over 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - oVirt
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

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.

Associated revisions

Revision 5fb662f4 (diff)
Added by yifat makias 11 months ago

Fixes #25281,#27002 - support passing names in ovirt

History

#1 Updated by yifat makias about 1 year ago

  • Assignee set to yifat makias

#2 Updated by The Foreman Bot 12 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/7144 added

#3 Updated by The Foreman Bot 11 months ago

  • Fixed in Releases 2.0.0 added

#4 Updated by yifat makias 11 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF