Skip to content

Conversation

tshiyuoo
Copy link

…rification and a retry loop.

Description

  1. Enhance: Improve initial password script robustness and reliability to ensure successful setup.
  2. Fix: Prevent the password initialization job from completing prematurely when the StarRocks FE is not fully started, by implementing a blocking wait mechanism.
  3. Refactor: Change FE connection strategy to use the standard Service address instead of the Headless Service.

Related Issue(s)

#702

Checklist

For operator, please complete the following checklist:

  • run make generate to generate the code.
  • run golangci-lint run to check the code style.
  • run make test to run UT.
  • run make manifests to update the yaml files of CRD.

For helm chart, please complete the following checklist:

  • make sure you have updated the values.yaml
    file of starrocks chart.
  • In scripts directory, run bash create-parent-chart-values.sh to update the values.yaml file of the parent
    chart( kube-starrocks chart).

@tshiyuoo
Copy link
Author

The results are shown below. (Will wait for FE Star)

--- StarRocks Password Setup Script Start ---
--- 1. Checking StarRocks service connection status ---
❌ StarRocks service not ready, waiting 5 seconds... (Elapsed 0/3600 seconds)
nc: getaddrinfo for host "starrocks-fe-service.olap" port 9030: Name or service not known
❌ StarRocks service not ready, waiting 5 seconds... (Elapsed 5/3600 seconds)
nc: getaddrinfo for host "starrocks-fe-service.olap" port 9030: Name or service not known
❌ StarRocks service not ready, waiting 5 seconds... (Elapsed 10/3600 seconds)
nc: getaddrinfo for host "starrocks-fe-service.olap" port 9030: Name or service not known
❌ StarRocks service not ready, waiting 5 seconds... (Elapsed 15/3600 seconds)
nc: getaddrinfo for host "starrocks-fe-service.olap" port 9030: Name or service not known
❌ StarRocks service not ready, waiting 5 seconds... (Elapsed 20/3600 seconds)
nc: getaddrinfo for host "starrocks-fe-service.olap" port 9030: Name or service not known
❌ StarRocks service not ready, waiting 5 seconds... (Elapsed 25/3600 seconds)
nc: getaddrinfo for host "starrocks-fe-service.olap" port 9030: Name or service not known
❌ StarRocks service not ready, waiting 5 seconds... (Elapsed 30/3600 seconds)
Connection to starrocks-fe-service.olap (10.192.192.64) 9030 port [tcp/*] succeeded!
✅ StarRocks service (starrocks-fe-service.olap:9030) is up and connectable.
--- 2. Checking if password is already set (Idempotency) ---
  -> Attempting connection with NO password...
1
1
⚠️ WARNING: Connection successful with empty password. Password has NOT been set yet.
--- 3. Setting password for user root ---
✅ Password setting SQL executed successfully.
--- 4. Final verification after password setting ---
--- 2. Checking if password is already set (Idempotency) ---
  -> Attempting connection with NO password...
  -> Attempting connection with NEW password...
1
1
✅ New password check passed: User root can successfully connect.
🎉 Password set and verified successfully!

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