Bug 1785568

Summary: [Hammer] UserData false is not displayed in image list.
Product: Red Hat Satellite Reporter: Kavita <kgaikwad>
Component: HammerAssignee: Yifat Makias <ymakias>
Status: CLOSED ERRATA QA Contact: Jitendra Yejare <jyejare>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.7.0CC: apatel, kgaikwad, mshira, ofedoren, pcreech, rabajaj
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-hammer_cli-0.19.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-14 15:54:09 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kavita 2019-12-20 10:15:57 UTC
When an image is created with user data false, listing that image using the hammer image list doesnt show anything under USER DATA column.

How Reproducible:
-------------------
Always

Steps:
-------------------
1. Create an image in GCE CR with user data set to false.
2. List all the images in GCE CR.

# $ hammer compute-resource image list --compute-resource-id 1


Actual Behavior:
-------------------
The hammer image list shows blank for user-data image set to false.


---|---------------|------------------|---------------|---------------------|----------
ID | NAME          | OPERATING SYSTEM | USERNAME      | UUID                | USER DATA
---|---------------|------------------|---------------|---------------------|----------
2  | gce_gceclloud | rhelcustom 7.6   | jitendracloud | 1238493266994992134 | true     
1  | gceImage      | rhelcustom 7.6   | jitendra      | 4654324179607992309 |          
---|---------------|------------------|---------------|---------------------|----------

Expected Behavior:
--------------------
Hammer listing image should show false for an image where user-data is false.

Comment 4 Jitendra Yejare 2020-01-20 08:58:42 UTC
Verified !

@Satellite 6.7 snap 9


Steps :

# hammer compute-resource image list --compute-resource-id 1
---|---------------|------------------|-----------|---------------------|----------
ID | NAME          | OPERATING SYSTEM | USERNAME  | UUID                | USER DATA
---|---------------|------------------|-----------|---------------------|----------
1  | myimg         | RedHat 7.7       | jitu      | 7726764279310511390 | false    
6  | udata_gce_img | RedHat 7.7       | userdjitu | 1238493266994992134 | true     
---|---------------|------------------|-----------|---------------------|----------


Observation:

1.  False for non-user-data image is shown.

Comment 7 errata-xmlrpc 2020-04-14 15:54:09 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, 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/RHBA-2020:1455