Project

General

Profile

Actions

Bug #27002

closed

Nonexistent quota can be set

Added by Shira Maximov almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Compute resources - oVirt
Target version:
-
Difficulty:
Triaged:
No
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.

Actions #1

Updated by yifat makias over 4 years ago

  • Assignee set to yifat makias
Actions #2

Updated by The Foreman Bot over 4 years ago

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

Updated by The Foreman Bot over 4 years ago

  • Fixed in Releases 2.0.0 added
Actions #4

Updated by yifat makias over 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF