Project

General

Profile

Bug #29702

Creating invalid image within compute resource is possible

Added by yifat makias 7 months ago. Updated 3 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=1829239

Description of problem:

Hammer CLI allows to create invalid (nonexistent) image within compute resource

Version-Release number of selected component (if applicable): hammer (0.19.2.1), Red Hat Satellite (build: 6.7.0)

How reproducible:
always

Steps to Reproduce:
1. Create RHEV (Ovirt) compute resource or use existing
2. Attempt to add non-existing (invalid) image using hammer CLI
i.e.:
hammer compute-resource image create --compute-resource '<valid cr name>' --name '<valid name>' --username 'valid username' --uuid '<INVALID UUID>' --operatingsystem '<valid os>' --architecture '<valid arch>'

Actual results:
"Image created."

Expected results:
Any reasonable error message is displayed and image not created.

Additional info:
In Sattelite WebUI, there's no UUID selection. But there's a combobox, which offers only available image templates.

Associated revisions

Revision c3560417 (diff)
Added by yifat makias 6 months ago

Fixes #29702 - added image validation check to ovirt

History

#1 Updated by yifat makias 7 months ago

  • Assignee set to yifat makias
  • Status changed from New to Assigned

#2 Updated by The Foreman Bot 6 months ago

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

#3 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 2.2.0 added

#4 Updated by yifat makias 6 months ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot 3 months ago

  • Pull request https://github.com/theforeman/foreman/pull/7975 added

Also available in: Atom PDF