Bug 1626219

Summary: nuage refresh fails - undefined method `[]' ... security_groups
Product: Red Hat CloudForms Management Engine Reporter: ncatling
Component: ProvidersAssignee: mplesko
Status: CLOSED ERRATA QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: high    
Version: 5.9.4CC: dmetzger, gblomqui, jfrey, jhardy, ncatling, obarenbo, simaishi, smallamp
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.5.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-05 13:59:24 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:

Comment 2 ncatling 2018-09-06 18:39:18 UTC
Fix is to modify this file:
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-nuage-677d2554c746/app/models/manageiq/providers/nuage/inventory/parser/network_manager.rb

Specifically security_groups function:

Change L32 from:
        :network_group => persister.network_groups.lazy_find(domain['parentID'])

To:
        :network_group => persister.network_groups.lazy_find(domain_id)

Comment 6 CFME Bot 2018-09-18 20:14:59 UTC
New commit detected on ManageIQ/manageiq-providers-nuage/gaprindashvili:

https://github.com/ManageIQ/manageiq-providers-nuage/commit/219cbcc9b464e0cb5c4ef4a60ec81248532bf466
commit 219cbcc9b464e0cb5c4ef4a60ec81248532bf466
Author:     Miha Pleško <miha.plesko>
AuthorDate: Thu Sep 13 07:43:30 2018 -0400
Commit:     Miha Pleško <miha.plesko>
CommitDate: Thu Sep 13 07:43:30 2018 -0400

    [GAPRINDASHVILI] Prevent crash upon inventoring SecurityGroups

    With this commit we fix bug that caused inventoring crash if Nuage server
    contains at least one SecurityGroup that is connected to L2 domain (as opposed
    to L3 domains, as implementation assumes).

    Problem was that parentID on security group can refer either to L2 domain or
    L3 domain, but we assumed L3 domain.

    Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1626219

    Signed-off-by: Miha Pleško <miha.plesko>

 app/models/manageiq/providers/nuage/inventory/parser/network_manager.rb | 16 +-
 1 file changed, 10 insertions(+), 6 deletions(-)

Comment 8 errata-xmlrpc 2018-11-05 13:59:24 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/RHSA-2018:3466

Comment 9 mplesko 2019-02-27 07:07:10 UTC
*** Bug 1531305 has been marked as a duplicate of this bug. ***

Comment 11 Red Hat Bugzilla 2023-09-15 01:27:40 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days