Skip to content

Fix Org Settings + Org LDAP destroy issues#61

Merged
adambarreiro merged 4 commits intovmware:mainfrom
adambarreiro:fix-destroy-issues
Mar 18, 2025
Merged

Fix Org Settings + Org LDAP destroy issues#61
adambarreiro merged 4 commits intovmware:mainfrom
adambarreiro:fix-destroy-issues

Conversation

@adambarreiro
Copy link
Copy Markdown
Contributor

@adambarreiro adambarreiro commented Mar 18, 2025

When these operations are run concurrently (they only depend on org_id, so they always will), there's a high probability that the target Organization gets completely bricked (can't read, update, delete nor access TP).

The affected resources are:

  • vcfa_org_ldap
  • vcfa_org_settings

When creating/updating/deleting these at the same time, an error can occur and the target Organization gets bricked.

This PR adds a mutex to prevent this issue.

abarreiro added 2 commits March 18, 2025 12:46
Signed-off-by: abarreiro <abarreiro@vmware.com>
 into fix-destroy-issues

Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro self-assigned this Mar 18, 2025
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro marked this pull request as ready for review March 18, 2025 12:33
Signed-off-by: abarreiro <abarreiro@vmware.com>
@adambarreiro adambarreiro merged commit a280ddd into vmware:main Mar 18, 2025
2 checks passed
@adambarreiro adambarreiro deleted the fix-destroy-issues branch March 18, 2025 16:34
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.

4 participants