Bug 1776365

Summary: Security group/rule create/delete triggers targeted refresh but doesn't update in UI
Product: Red Hat CloudForms Management Engine Reporter: Rahul Chincholkar <rchincho>
Component: ProvidersAssignee: Marek Aufart <maufart>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.12CC: dmetzger, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.12.0Flags: dmetzger: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1794549 1794551 (view as bug list) Environment:
Last Closed: 2020-10-26 16:25:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1794549, 1794551    

Description Rahul Chincholkar 2019-11-25 14:30:46 UTC
Description of problem:
When a security group is created/edited/deleted in the OpenStack side, CloudForms detects the event
processes it but changes are not reflected in the CloudForms UI

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


How reproducible:
Always

Steps to Reproduce:
1. add openstack provider
2. create/delete a security group
3. add/remove rules in security group
3. Observe the network provider information in CloudForms UI till the next refresh

Actual results:
CFME UI does not show correct information for new security group and rules under security groups.

Expected results:
new security group and new rules should be visible in CloudForms UI
deleted security group and rules shouldn't be visible in the CloudForms UI

Additional info:

Comment 5 CFME Bot 2020-01-20 14:27:24 UTC
New commit detected on ManageIQ/manageiq-providers-openstack/master:

https://github.com/ManageIQ/manageiq-providers-openstack/commit/564486f60dd0e9f6ac93e3f6e7815fcfa7d21749
commit 564486f60dd0e9f6ac93e3f6e7815fcfa7d21749
Author:     Marek Aufart <maufart>
AuthorDate: Tue Dec  3 09:31:57 2019 -0500
Commit:     Marek Aufart <maufart>
CommitDate: Tue Dec  3 09:31:57 2019 -0500

    [WIP] Add SecurityGroupRules to Targeted refresh

    Adding Targeted refresh for OpenStack SecurityGroupRules objects modelled as FirewallRule.

    Neutron-originated Firewall rules are handled as a separate collection by refresh now and
    Targeted refresh can work with that.

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

 app/models/manageiq/providers/openstack/inventory/collector.rb | 1 +
 app/models/manageiq/providers/openstack/inventory/collector/network_manager.rb | 6 +
 app/models/manageiq/providers/openstack/inventory/collector/target_collection.rb | 8 +
 app/models/manageiq/providers/openstack/inventory/parser/network_manager.rb | 17 +-
 app/models/manageiq/providers/openstack/network_manager/event_target_parser.rb | 6 +-
 config/settings.yml | 5 +-
 6 files changed, 35 insertions(+), 8 deletions(-)

Comment 8 Satoe Imaishi 2020-03-05 15:23:58 UTC
Also requires: https://github.com/ManageIQ/manageiq-content/pull/612