Skip to content

[OpenStack] Fix: Retry admin privilege GRANT on RDBMS creation to avoid Error 1044 - #1873

Open
powerkimhub wants to merge 1 commit into
cloud-barista:masterfrom
powerkimhub:fix/openstack-rdbms-grant-admin-privileges-retry
Open

powerkimhub wants to merge 1 commit into
cloud-barista:masterfrom
powerkimhub:fix/openstack-rdbms-grant-admin-privileges-retry

Conversation

@powerkimhub

Copy link
Copy Markdown
Member
  • Replace the single 15s-timeout attempt in grantAdminPrivileges with up to 5 retries using exponential backoff (5s/10s/20s/40s, 2min overall deadline)
  • Only retry on transient network errors (net.Error Timeout()/Temporary()); non-network failures (e.g. bad credentials) still fail fast with no added delay
  • Fixes ERROR 1044 (42000): Access denied for user 'admin'@'%' caused by the DB instance's port not yet being reachable right after Trove reports ACTIVE, which previously made the one-shot GRANT silently fail (logged as a warning only) while CreateRDBMS still returned success
  • Follows the same retry pattern already used for IBM/Tencent transient network errors ([Docs] Fix: Regenerate stale Swagger docs for NodeGroup APIs #1871/f45231e7)

@powerkimhub
powerkimhub requested a review from cb-spider October 8, 2026 13:16
@powerkimhub powerkimhub added the enhancement New feature or request label Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant