Skip to content

Always update Remote SG Member Container#150

Draft
sven-rosenzweig wants to merge 1 commit intostable/yoga-m3from
fix_sync_membership
Draft

Always update Remote SG Member Container#150
sven-rosenzweig wants to merge 1 commit intostable/yoga-m3from
fix_sync_membership

Conversation

@sven-rosenzweig
Copy link
Contributor

With this simple change, we always update the remote SG if we update a OpenStack security group and do not rely whether the group is already present in the in the Metadata.

In the past, we observed NSX-T SG member container out of sync (missing port IP addresses) as the security_group_member_update was not successfully at first place.

Simply enforcing the remote group sync results in more group update calls towards NSX-T API. Updating the security group or port on OpenStack side, results in a RPC call for security_groups_member_updated and security_groups_rule_updated. Additionally, a port update calls port_update, itself calling putting calls for sg_memgers_updated and sg_rules_updated onto the job queue.
All updating for security group rules enforces updating of remote security groups membership container now.

@sven-rosenzweig sven-rosenzweig requested a review from mutax April 8, 2025 09:59
With this simple change, we always update the remote SG member container if
either the users updates a OpenStack security group or the sync loop picks up the SG.
With this commit, we do not depend the update process on the presence of the remote
int the NSX-T agent metadata.

In the past, we observed NSX-T SG member container out of sync (missing
port IP addresses) as the security_group_member_update was not
successfully at first place.

Simply enforcing the remote group sync results in more group update calls towards NSX-T API.
Updating the security group or port on OpenStack side, results in a RPC call
for security_groups_member_updated and security_groups_rule_updated.
Additionally, a port update calls port_update, itself calling putting calls for sg_memgers_updated
and sg_rules_updated onto the job queue.
All updating for security group rules enforces updating of remote
security groups membership container now.
@github-actions
Copy link

github-actions bot commented Apr 8, 2025

Name                                                                      Stmts   Miss  Cover
---------------------------------------------------------------------------------------------
networking_nsxv3/api/rpc.py                                                 233    110    53%
networking_nsxv3/common/config.py                                            16      0   100%
networking_nsxv3/common/constants.py                                         23      0   100%
networking_nsxv3/common/locking.py                                           35     11    69%
networking_nsxv3/common/synchronization.py                                  376     70    81%
networking_nsxv3/db/db.py                                                    94     19    80%
networking_nsxv3/extensions/nsxtoperations.py                               104     40    62%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/agent.py                   162     51    69%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/cli.py                     299    195    35%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/client_nsx.py              186     50    73%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/constants_nsx.py             6      0   100%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/extensions/firewall.py      27      0   100%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/provider.py                169     10    94%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/provider_nsx_policy.py     765    115    85%
networking_nsxv3/plugins/ml2/drivers/nsxv3/agent/realization.py             203     33    84%
networking_nsxv3/plugins/ml2/drivers/nsxv3/driver.py                        129     74    43%
networking_nsxv3/prometheus/exporter.py                                      19      5    74%
networking_nsxv3/services/logapi/drivers/nsxv3/driver.py                     41      1    98%
networking_nsxv3/services/qos/drivers/nsxv3/qos.py                           34      4    88%
networking_nsxv3/services/trunk/drivers/nsxv3/trunk.py                       71      3    96%
---------------------------------------------------------------------------------------------
TOTAL                                                                      2992    791    74%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant