Aaron199 opened a new issue, #9026:
URL: https://github.com/apache/apisix/issues/9026

   ### Current Behavior
   
   etcd configs
   ```yaml
   etcd:
     host:                          # it's possible to define multiple etcd 
hosts addresses of the same etcd cluster
       - "http://apisix-etcd:2379";
     prefix: "/apisix"    # apisix configurations prefix
     timeout: 30    # 30 seconds
   ```
   when i  call admin api, it show me this
   ```bash
   curl http://127.0.0.1:9180/apisix/admin/routes -H 
'X-API-KEY:d8xxxxxxxxxxxxxxxxx'
   {"error_msg":"has no healthy etcd endpoint available"}
   ```
   i checked etcd,i didn't find any error
   ```bash
   [root@apisix-f46b6f84d-ssbwt apisix]# curl http://apisix-etcd:2379/version
   {"etcdserver":"3.5.4","etcdcluster":"3.5.0"}
   ```
   ```bash
   etcdctl -w table member list
   
+------------------+---------+---------------+---------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+------------+
   |        ID        | STATUS  |     NAME      |                               
    PEER ADDRS                                    |                             
                                  CLIENT ADDRS                                  
                             | IS LEARNER |
   
+------------------+---------+---------------+---------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+------------+
   | 39e3f227d2d33a6d | started | apisix-etcd-2 | 
http://apisix-etcd-2.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2380 
| 
http://apisix-etcd-2.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2379,http://apisix-etcd.ingress-apisix.svc.cluster.local:2379
 |      false |
   | 47324e080c98137d | started | apisix-etcd-1 | 
http://apisix-etcd-1.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2380 
| 
http://apisix-etcd-1.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2379,http://apisix-etcd.ingress-apisix.svc.cluster.local:2379
 |      false |
   | e2571e968b89c849 | started | apisix-etcd-0 | 
http://apisix-etcd-0.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2380 
| 
http://apisix-etcd-0.apisix-etcd-headless.ingress-apisix.svc.cluster.local:2379,http://apisix-etcd.ingress-apisix.svc.cluster.local:2379
 |      false |
   
+------------------+---------+---------------+---------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+------------+
   ```
   ```bash
   :/opt/bitnami/etcd$ etcdctl -w table endpoint health
   +----------------+--------+------------+-------+
   |    ENDPOINT    | HEALTH |    TOOK    | ERROR |
   +----------------+--------+------------+-------+
   | 127.0.0.1:2379 |   true | 2.631563ms |       |
   +----------------+--------+------------+-------+
   ```
   ```bash
   etcdctl get --prefix /apisix/ | head
   /apisix/consumers/
   init_dir
   /apisix/consumers/hmac_auth_appid_123456
   
{"username":"hmac_auth_appid_123456","plugins":{"hmac-auth":{"access_key":"xxxxx","clock_skew":300,"disable":false,"secret_key":"xxxxxx","signed_headers":["appid","token"],"validate_request_body":true}},"create_time":1642588052,"update_time":1647503172}
   /apisix/consumers/hmac_auth_appid_992099001
   
{"username":"hmac_auth_appid_992099001","plugins":{"hmac-auth":{"access_key":"xxxx","clock_skew":300,"disable":false,"secret_key":"xxxxxx","signed_headers":["appid","token"],"validate_request_body":true}},"create_time":1647502495,"update_time":1647502495}
   /apisix/consumers/key_auth_appid_123456
   
{"username":"key_auth_appid_123456","plugins":{"key-auth":{"disable":false,"key":"xxxx"},"limit-req":{"burst":0,"disable":false,"key":"http_x_forwarded_for","rate":1,"rejected_code":503}},"create_time":1648545605,"update_time":1648545984}
   /apisix/consumers/key_auth_appid_67890
   
{"username":"key_auth_appid_67890","plugins":{"key-auth":{"disable":false,"key":"xxxx"}},"create_time":1655461361,"update_time":1655461361}
   ```
   
   please give me help!
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   ```txt
   594248 [lua] utils.lua:54: inject_conf_with_prev_conf(): failed to get 
upstream[/upstreams/c9e16880] from etcd: has no healthy etcd endpoint 
available, client: 10.17.5.99, server: , request: "PUT 
/apisix/admin/upstreams/c9e16880 HTTP/1.1", host: 
"apisix-admin.ingress-apisix.svc.cluster.local:9180"
   ```
   
   ### Steps to Reproduce
   
    i upgraded from version 2.10 to 2.15.2 using Helm
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.15.2
   - Operating system (run `uname -a`): docker 18.09.9
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):nginx 
version: openresty/1.21.4.1
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`): 
{"etcdserver":"3.5.4","etcdcluster":"3.5.0"}
   - APISIX Dashboard version, if relevant: 
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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]

Reply via email to