-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
Issue description
apisix 1.4 can not patch upstream nodes configure
Environment
[root@ceph68 ~]# curl -i http://127.0.0.1:9080/apisix/admin/routes/1
HTTP/1.1 200 OK
Date: Fri, 10 Jul 2020 02:31:30 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 3600
Server: APISIX web server
{"node":{"value":{"priority":0,"methods":["PUT","GET","POST","DELETE","PATCH","HEAD","OPTIONS","CONNECT","TRACE"],"uri":"\/*","plugins":{"prometheus":{}},"upstream":{"nodes":{"192.168.3.39:8080":10,"192.168.3.39:8081":10,"192.168.3.39:8082":10,"192.168.3.39:8083":10,"192.168.3.39:8084":10},"hash_on":"vars","type":"roundrobin"}},"createdIndex":40,"key":"\/apisix\/routes\/1","modifiedIndex":40},"action":"get"}
[root@ceph68 ~]# curl -i -X PATCH http://127.0.0.1:9080/apisix/admin/routes/1/upstream/nodes -d '{ "192.168.3.40:8080": 10,"192.168.3.40:8081": 10,"192.168.3.40:8082": 10,"192.168.3.40:8083": 10,"192.168.3.40:8084": 10 }'
HTTP/1.1 400 Bad Request
Date: Fri, 10 Jul 2020 02:31:33 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 3600
Server: APISIX web server
{"error_msg":"invalid configuration: additional properties forbidden, found 192.168.3.40:8082"}
- apisix version (cmd:
apisix version
): 1.4 - OS: centos 7.6
Metadata
Metadata
Assignees
Labels
No labels