Skip to content

nsxserviceaccount: backoff NSX calls after CCP connection capacity error 610139#1420

Open
liu4480 wants to merge 1 commit into
vmware-tanzu:mainfrom
liu4480:topic/bl018815/nsxserviceaccount-ratelimit
Open

nsxserviceaccount: backoff NSX calls after CCP connection capacity error 610139#1420
liu4480 wants to merge 1 commit into
vmware-tanzu:mainfrom
liu4480:topic/bl018815/nsxserviceaccount-ratelimit

Conversation

@liu4480
Copy link
Copy Markdown
Contributor

@liu4480 liu4480 commented Apr 28, 2026

When ClusterControlPlanesClient.Update returns NSX error 610139 (connection
capacity full), record a global timestamp. While a 5-minute window from that
timestamp is still in effect, NSXServiceAccount reconcile requeues without
calling NSX. After the window expires, reconcile proceeds normally; a
successful CCP update clears the timestamp, and another 610139 refreshes it.
Add IsCCPConnectionCapacityFullError in pkg/nsx/util. Fix controller tests that
assumed deletion state on objects returned from the fake client.

@liu4480 liu4480 self-assigned this Apr 28, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 28, 2026

Codecov Report

❌ Patch coverage is 95.55556% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.05%. Comparing base (beab241) to head (a871b2b).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
pkg/nsx/services/nsxserviceaccount/cluster.go 66.66% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1420      +/-   ##
==========================================
+ Coverage   75.51%   77.05%   +1.53%     
==========================================
  Files         154      155       +1     
  Lines       26420    22034    -4386     
==========================================
- Hits        19951    16978    -2973     
+ Misses       5265     3855    -1410     
+ Partials     1204     1201       -3     
Flag Coverage Δ
unit-tests 77.05% <95.55%> (+1.53%) ⬆️
Files with missing lines Coverage Δ
.../nsxserviceaccount/nsxserviceaccount_controller.go 67.10% <100.00%> (+1.54%) ⬆️
...services/nsxserviceaccount/ccp_capacity_backoff.go 100.00% <100.00%> (ø)
pkg/nsx/util/errors.go 98.34% <ø> (-0.06%) ⬇️
pkg/nsx/util/utils.go 88.29% <100.00%> (+1.70%) ⬆️
pkg/nsx/services/nsxserviceaccount/cluster.go 81.52% <66.66%> (+3.30%) ⬆️

... and 144 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@liu4480 liu4480 force-pushed the topic/bl018815/nsxserviceaccount-ratelimit branch from e91af3f to 586cedb Compare April 28, 2026 09:00
…ror 610139

When ClusterControlPlanesClient.Update returns NSX error 610139 (connection
capacity full), record a global timestamp. While a 5-minute window from that
timestamp is still in effect, NSXServiceAccount reconcile requeues without
calling NSX. After the window expires, reconcile proceeds normally; a
successful CCP update clears the timestamp, and another 610139 refreshes it.
Add IsCCPConnectionCapacityFullError in pkg/nsx/util. Fix controller tests that
assumed deletion state on objects returned from the fake client.
@liu4480 liu4480 force-pushed the topic/bl018815/nsxserviceaccount-ratelimit branch from 586cedb to a871b2b Compare April 28, 2026 09:28
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.

2 participants