You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open up Atlas UI, notice private endpoint gets created, and deleted soon after, repeating
Debug-level logs also show Number of Private Endpoints to delete: 1 and Removed Private Endpoint Service from Atlas as it's not specified in current AtlasProject
What did you expect?
Private endpoint should be kept running and not deleted.
What happened instead?
Private endpoint gets deleted and recreated, repeating.
Operator Information
Operator Version: v1.7.2
This is an old version, but looking at the latest code, there doesn't seem to be any difference that would resolve/impact this bug.
Kubernetes Cluster Information
Distribution: GKE
Version: 1.30.5
Additional context
Looking at code, the problem seems to originate in the TransformRegionToID() function, and the fact that the region in Atlas contains the word pacific, while the GCP region does not. Comparison of function inputs/outputs:
While with a region like us-central1, there's no difference, since there's no extra word in the Atlas region (CENTRAL_US). Output for both cases then is acelnrstu.
Based on this finding, I imagine the same problem would occur with EASTERN_ASIA_PACIFIC and SOUTHEASTERN_ASIA_PACIFIC regions (ref).
There does appear work to be done on a separate controller/CRD for Private Endpoints (PR), which would be welcome, but in the meantime, this bug exists and has existed since this old version v1.7.2 at least.
The text was updated successfully, but these errors were encountered:
After careful consideration we have decided not to fix this bug. This problem disappears completely on a new version we are releasing soon.
The reason this will no longer be a problem going forward in the new version is that the Private Endpoints are now defined in their own separated CRD and they always use the region id naming from Atlas. There is no need for complex and brittle comparisons any more.
We understand you reported this on a very old version of the Operator, 1.7.2. We don’t back-port fixes to past versions of the operator, so we recommend migrating to new version of the Operator coming soon, and move private endpoint definitions to their own CRDs.
What did you do to encounter the bug?
Steps to reproduce the behavior:
AtlasProject
object in Tokyo GCP regionNumber of Private Endpoints to delete: 1
andRemoved Private Endpoint Service from Atlas as it's not specified in current AtlasProject
What did you expect?
Private endpoint should be kept running and not deleted.
What happened instead?
Private endpoint gets deleted and recreated, repeating.
Operator Information
This is an old version, but looking at the latest code, there doesn't seem to be any difference that would resolve/impact this bug.
Kubernetes Cluster Information
Additional context
Looking at code, the problem seems to originate in the
TransformRegionToID()
function, and the fact that the region in Atlas contains the wordpacific
, while the GCP region does not. Comparison of function inputs/outputs:GCP region:
asia-northeast1
->aaaehinorsstt
Atlas region:
NORTHEASTERN_ASIA_PACIFIC
->aaaaccefhiiinoprsstt
While with a region like
us-central1
, there's no difference, since there's no extra word in the Atlas region (CENTRAL_US
). Output for both cases then isacelnrstu
.Based on this finding, I imagine the same problem would occur with
EASTERN_ASIA_PACIFIC
andSOUTHEASTERN_ASIA_PACIFIC
regions (ref).There does appear work to be done on a separate controller/CRD for Private Endpoints (PR), which would be welcome, but in the meantime, this bug exists and has existed since this old version
v1.7.2
at least.The text was updated successfully, but these errors were encountered: