Bug 1517222

Summary: No validation for uuid in hammer compute-resource image creation
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: Compute ResourcesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: lzap, mhulan, nkathole, oprazak, sjagtap
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-01 07:28:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nikhil Kathole 2017-11-24 10:52:40 UTC
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. 

Version-Release number of selected component (if applicable): satellite 6.3 snap 25


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:

Comment 4 Ondřej Pražák 2018-01-24 13:41:52 UTC
Created redmine issue http://projects.theforeman.org/issues/22409 from this bug

Comment 5 Satellite Program 2018-10-15 14:09:35 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/22409 has been resolved.

Comment 7 Lukas Zapletal 2018-11-01 07:28:52 UTC
This request is a too complex change in core as every CR uses a different key (UUID, image path etc).