apache / apisix-dashboard

Dashboard for Apache APISIX
https://apisix.apache.org/
Apache License 2.0
1.01k stars 530 forks source link

bug: APISIX route does not reload the new route config #2954

Open QuanTran91 opened 5 months ago

QuanTran91 commented 5 months ago

Current Behavior

APSIX does not update the new route config in K8s

Expected Behavior

APSIX should update the new route config in K8s

Error Logs

No error log

Steps to Reproduce

  1. Add new route with double splash and then apply the manifest

    /api/channel/v1//channel-config-templates
  2. Remove the double spash and the apply the manifest

    
    /api/channel/v1/channel-config-templates


3. Observe the route on APISX dashboard that the route is not updated

<img width="1337" alt="Screenshot 2024-07-03 at 10 29 15" src="https://github.com/apache/apisix/assets/10222639/0a9278b4-bd0e-46f5-9132-fcbb18fb852b">

### Environment

- APISIX version (run `apisix version`): 3.9.1
- Operating system (run `uname -a`): Ubuntu 20.04
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): 3.5.7
- APISIX Dashboard version, if relevant: 3.0.0
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
QuanTran91 commented 5 months ago

I did find the root cause, turnout there is another route element that points to unavailable k8s service making entire routes not synchronized.

However, I think that it would be better if APISX show the error but still proceed the next route element instead of stopping the synchronization.

shreemaan-abhishek commented 4 months ago

it could be that the information is updated in etcd but not displayed on dashboard. Does this issue exist on apisix too?

QuanTran91 commented 4 months ago

I did check, the etcd is not updated (that why the route is not working).