Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cant use dns name in the cluster node register. #2533

Open
1 task done
zx900930 opened this issue Feb 26, 2025 · 1 comment
Open
1 task done

[Bug]: Cant use dns name in the cluster node register. #2533

zx900930 opened this issue Feb 26, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@zx900930
Copy link

zx900930 commented Feb 26, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Version or Commit ID

v0.6.0-dev3

Other environment information

Actual behavior and How to reproduce it

I have a leader node inside k8s:
infinity-cluster-0.infinity-cluster-service.deepseek.svc.cluster.local:23851

when I excute this command to register 2nd node as a follower node:

curl --request POST \
    --url http://localhost:23821/admin/node/current \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data ' {
        "role" : "follower",
        "name" : "Hermione",
        "address" : "infinity-cluster-0.infinity-cluster-service.deepseek.svc.cluster.local:23851"
    } '

it shows
{"error_code":7016,"error_message":"Invalid server address: infinity-cluster-0.infinity-cluster-service.deepseek.svc.cluster.local:23851"}

when I use ip address:

curl --request POST \
    --url http://localhost:23821/admin/node/current \
    --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data ' {
        "role" : "follower",
        "name" : "Hermione",
        "address" : "10.233.101.109:23851"
    } '

it shows:
{"error_code":7016,"error_message":"From leader: Invalid server address: Follower or learner peer server address 0.0.0.0: 23851 are same as leader"}

The 3 nodes share the same infinity_conf.toml and the pear_ip = 0.0.0.0.

if this address and pear_ip dont support dnsname, then we need to create 3 different svc for this cluster.

Expected behavior

No response

Additional information

No response

@zx900930 zx900930 added the bug Something isn't working label Feb 26, 2025
@NirnayK
Copy link

NirnayK commented Mar 12, 2025

I am also facing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants