Project

General

Profile

Actions

Bug #22409

closed

No validation for uuid in hammer compute-resource image creation

Added by Ondřej Pražák about 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Fixed in Releases:
Found in Releases:
In Kanboard:

Description

Description of problem: While creating compute-resource image from CLI, there is no validation for option --uuid and passing any data in uuid, created image.

How reproducible: always

Steps to Reproduce:
1. hammer> compute-resource image create --compute-resource rhev_compute --name 'latest' --username 'root' --password 'dog8code' --architecture 'x86_64' --operatingsystem 'RedHat 7.3' --uuid '<any data>'
Image created

Actual results:

Image is created.

Expected results: Image should not create and raised error for passing valid uuid for images.

Additional info:


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #25081: No validation for image path in compute-resource image creationRejectedAkshay MendheActions
Actions #1

Updated by Akshay Mendhe over 5 years ago

  • Subject changed from No validation for uuid in hammer compute-resource image creation to No validation for uuid in hammer compute-resource image creation
  • Assignee set to Akshay Mendhe
Actions #2

Updated by Akshay Mendhe over 5 years ago

  • Related to Bug #25081: No validation for image path in compute-resource image creation added
Actions #3

Updated by Lukas Zapletal over 5 years ago

  • Triaged changed from No to Yes

Hello and thanks for the report. Most (if not all) compute resources use UUIDs, image path is only used for libvirt provider and this provider's API does not allow us to verify such a thing. So it cannot be done easily for libvirt, other providers should be able to verify UUID existance tho.

Actions #4

Updated by Akshay Mendhe over 5 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF