Bug 1685949

Summary: [RFE] Support passing of attribute name instead of Id's in RHV workflow
Product: Red Hat Satellite Reporter: Sanket Jagtap <sjagtap>
Component: Compute Resources - RHEVAssignee: Yifat Makias <ymakias>
Status: CLOSED ERRATA QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.5.0CC: bkearney, egolov, inecas, mshira, orabin, pcreech
Target Milestone: 6.8.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-2.1.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 12:58:15 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:
Bug Depends On: 1716423    
Bug Blocks:    

Description Sanket Jagtap 2019-03-06 11:34:11 UTC
Description of problem:
Build: Satellite 6.5 snap18

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
Can we have the support for Name for attributes for RHV.

As, of now we have 4 Parameters that needs to be passed as ID to create a Host on RHV 

ovirt-quota, cluster, network , storage-domain

Current RHV workflow

hammer -v -u admin -p changeme --output=csv compute-resource create --name="z12z2" --provider="Ovirt" --user="admin@internal" --password="" --datacenter="5aaaaa41-035d-0157-0166-00000000030b" --url="https://rhevm1.sa:443/ovirt-engine/api" --ovirt-quota="5aaaaa67-02a9-026e-0185-00000000025f" --locations="Default Location" --organizations="Default Organization"
Message,Id,Name
Compute resource created.,5,z12z2


[root@qe-sat6-feature-rhel7 ~]# hammer -v -u admin -p changeme --output=csv host create --compute-attributes="cluster=5aaaaa41-02db-027c-0190-0000000001c8,cores=1,memory=1073741824,start=1" --compute-resource-id="5" --hostgroup="RHEL 7 Server 64-bit HG" --interface="compute_name=nic1, compute_network=2d7dc335-a881-44ce-aa17-46ebdd4dcb58" --location="Default Location" --name="new-host" --organization="Default Organization" --provision-method="build" --root-password="dog8code" --volume="size_gb=10,storage_domain=c4fc24ba-651a-4db6-a137-c5ad8a4a921f,bootable=True"
Message,Id,Name
Host created.,9,new-host.s




Actual results:
Some parameters needs to be passed as ID's

Expected results:
All parameters should support passing of name 

Additional info:

Comment 2 Bryan Kearney 2019-11-05 20:44:05 UTC
Upstream bug assigned to ymakias

Comment 3 Bryan Kearney 2019-11-05 20:44:07 UTC
Upstream bug assigned to ymakias

Comment 4 Bryan Kearney 2019-12-11 11:03:42 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/25281 has been resolved.

Comment 5 Lukáš Hellebrandt 2020-06-24 10:08:55 UTC
Failing based on new bug 1848902 and failure to verify bug 1716423, this BZ is their superset.

Comment 7 Lukáš Hellebrandt 2020-10-05 15:20:49 UTC
Verified with Sat 6.8 snap 18. Using reproducer from OP, I was able to do the whole workflow without using any UUID.

Comment 10 errata-xmlrpc 2020-10-27 12:58:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.8 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4366