mcy567 opened a new issue, #7596: URL: https://github.com/apache/apisix/issues/7596
### Current State The configurations like Plugins and Upstream bound to the Consumer are then executed. But I found that the upstream configured on the consumer did not take effect。 [root@cluster1-172-21-48-10 example]# curl http://172.21.48.10:9080/apisix/admin/consumers -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "username": "mcy", "plugins": { "key-auth": { "key": "auth123" }, "limit-count": { "count": 5, "time_window": 60, "rejected_code": 403, "key": "remote_addr" } }, "upstream": { "type": "roundrobin", "nodes": { "172.21.48.10:9082": 1, "172.21.48.10:9081": 1 } } }' {"action":"set","node":{"value":{"plugins":{"key-auth":{"key":"auth123"},"limit-count":{"time_window":60,"show_limit_quota_header":true,"key_type":"var","rejected_code":403,"policy":"local","allow_degradation":false,"count":5,"key":"remote_addr"}},"upstream":{"type":"roundrobin","nodes":{"172.21.48.10:9082":1,"172.21.48.10:9081":1}},"username":"mcy","create_time":1659435397,"update_time":1659437288},"key":"\/apisix\/consumers\/mcy"}} [root@cluster1-172-21-48-10 example]# curl http://172.21.48.10:9080/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "methods": ["GET"], "uri": "/index.html", "id": 1, "plugins": { "key-auth": {} } }' {"action":"set","node":{"value":{"id":"1","priority":0,"update_time":1659437301,"create_time":1659435484,"status":1,"plugins":{"key-auth":{"query":"apikey","hide_credentials":false,"header":"apikey"}},"uri":"\/index.html","methods":["GET"]},"key":"\/apisix\/routes\/1"}} [root@cluster1-172-21-48-10 example]# curl http://172.21.48.10:9080/index.html -i -H "apikey: auth123" HTTP/1.1 503 Service Temporarily Unavailable Date: Tue, 02 Aug 2022 10:48:36 GMT Content-Type: text/html; charset=utf-8 Content-Length: 194 Connection: keep-alive X-RateLimit-Limit: 5 X-RateLimit-Remaining: 4 Server: APISIX/2.15.0 <html> <head><title>503 Service Temporarily Unavailable</title></head> <body> <center><h1>503 Service Temporarily Unavailable</h1></center> <hr><center>openresty</center> </body> </html> ### Desired State return 200 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
