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

The node field is lost after the apisix-dashboard submission #2661

Closed
Bigwen-1 opened this issue Nov 11, 2022 · 2 comments · Fixed by #2773
Closed

The node field is lost after the apisix-dashboard submission #2661

Bigwen-1 opened this issue Nov 11, 2022 · 2 comments · Fixed by #2773
Labels
backend bug Something isn't working P1

Comments

@Bigwen-1
Copy link

Issue description

I added a service or upstream through the admin api and assigned node's metadata, but the metadata information was lost after I modified it through apisix-dashboard

Original etcd information:
/apisix/services/00000000000000046995
{"enable_websocket":true,"create_time":1668145810,"name":"push-user service2","id":"00000000000000046995","update_time":1668145810,"upstream":{"hash_on":"vars","scheme":"http","type":"roundrobin","nodes":[{"port":8080,"weight":100,"metadata":{"xq_lane":"sep_lane"},"host":"127.0.0.1","priority":0},{"port":8080,"weight":100,"metadata":{"xq_lane":"sep_push"},"host":"192.168.12.8","priority":0}],"pass_host":"pass"}}

Etcd information after changing the service name:
/apisix/services/00000000000000046995
{"id":"00000000000000046995","create_time":1668145810,"update_time":1668145968,"name":"push-user service2","upstream":{"nodes":{"127.0.0.1:8080":100,"192.168.12.8:8080":100},"timeout":{"connect":6,"send":6,"read":6},"type":"roundrobin","scheme":"http","pass_host":"pass","keepalive_pool":{"idle_timeout":60,"requests":1000,"size":320}}}

Expected behavior

Retain node metadata information

How to Reproduce

...

Screenshots

No response

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run etcd --version):
  • apisix-dashboard version, if have:
  • Browser version, if have:

Additional context

No response

@Bigwen-1 Bigwen-1 added the bug Something isn't working label Nov 11, 2022
@Baoyuantop
Copy link
Contributor

Hi @Bigwen-1, please provide information about the version you are using.

@Baoyuantop
Copy link
Contributor

The dashboard does not recognize the metadata field in nodes.

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

Successfully merging a pull request may close this issue.

2 participants