Bug 1531117 - EC2 items with empty Name tag have no name/id displayed
Summary: EC2 items with empty Name tag have no name/id displayed
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: GA
: 5.10.0
Assignee: Alexander Zagaynov
QA Contact: Matouš Mojžíš
Whiteboard: ui:ec2
Depends On:
TreeView+ depends on / blocked
Reported: 2018-01-04 15:49 UTC by Matouš Mojžíš
Modified: 2019-08-22 00:55 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-02-07 23:00:53 UTC
Category: ---
Cloudforms Team: AWS
Target Upstream Version:

Attachments (Terms of Use)
vpc name not shown (84.00 KB, image/png)
2018-01-04 15:49 UTC, Matouš Mojžíš
no flags Details
volume name not displayed (80.72 KB, image/png)
2018-01-04 15:49 UTC, Matouš Mojžíš
no flags Details

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2019:0212 None None None 2019-02-07 23:00:59 UTC

Description Matouš Mojžíš 2018-01-04 15:49:13 UTC
Created attachment 1377002 [details]
vpc name not shown

Description of problem:

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

How reproducible:

Steps to Reproduce:
1. Add ec2 provider
2. Have item with tag: "Name": "" (empty field)

Actual results:
Items have no name/id displayed.

Expected results:
Items with empty names should act as items with no names = display their id instead.

Additional info:
Attached two screenshots. First shows vpc which has empty Name tag and second shows volume with empty Name tag.

Comment 2 Matouš Mojžíš 2018-01-04 15:49:41 UTC
Created attachment 1377003 [details]
volume name not displayed

Comment 3 Bronagh Sorota 2018-02-22 18:35:45 UTC
Hi Alex,
We fixed this bug for images already, see:

However, this bug applies to any inventory type. Instead of fixing it in the parse_* methods, see if you can fix in here:

Comment 4 Alexander Zagaynov 2018-09-12 14:55:33 UTC
PR: https://github.com/ManageIQ/manageiq-providers-amazon/pull/482

Comment 5 CFME Bot 2018-09-26 13:42:01 UTC
New commit detected on ManageIQ/manageiq-providers-amazon/hammer:

commit a5dd7c4a01e5f65f30ec478288b12a2eda8f2468
Author:     Ladislav Smola <lsmola@redhat.com>
AuthorDate: Tue Sep 25 14:45:17 2018 -0400
Commit:     Ladislav Smola <lsmola@redhat.com>
CommitDate: Tue Sep 25 14:45:17 2018 -0400

    Merge pull request #482 from AlexanderZagaynov/BZ-1531117_name_tag

    avoid blank names by using uids

    (cherry picked from commit 4197be8d1dee08a18c87483cf5ada03bebb6f5c1)


 app/models/manageiq/providers/amazon/cloud_manager/refresh_parser.rb | 4 +-
 app/models/manageiq/providers/amazon/inventory/collector/target_collection.rb | 5 +-
 app/models/manageiq/providers/amazon/inventory/parser.rb | 5 +-
 app/models/manageiq/providers/amazon/inventory/parser/cloud_manager.rb | 21 +-
 app/models/manageiq/providers/amazon/inventory/parser/network_manager.rb | 2 +-
 app/models/manageiq/providers/amazon/network_manager/refresh_parser.rb | 19 +-
 app/models/manageiq/providers/amazon/parser_helper_methods.rb | 5 +-
 app/models/manageiq/providers/amazon/refresh_helper_methods.rb | 5 +-
 spec/models/manageiq/providers/amazon/cloud_manager/refresh_parser_spec.rb | 22 +
 spec/models/manageiq/providers/amazon/network_manager/refresh_parser_spec.rb | 23 +
 spec/models/manageiq/providers/amazon/storage_manager/ebs/refresh_parser_spec.rb | 31 +
 11 files changed, 111 insertions(+), 31 deletions(-)

Comment 7 Matouš Mojžíš 2018-10-02 11:32:45 UTC
Verified in ID is displayed as name when there is empty tag Name.

Comment 8 errata-xmlrpc 2019-02-07 23:00:53 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.


Note You need to log in before you can comment on or make changes to this bug.