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

   ### Current Behavior
   
   **upstream config:**
   ```
   {
       "checks": {
           "active": {
               "type": "http",
               "timeout": 1,
               "port": 7400,
               "unhealthy": {
                   "http_failures": 1,
                   "tcp_failures": 2,
                   "timeouts": 3,
                   "http_statuses": [
                       500,
                       404
                   ],
                   "interval": 5
               },
               "http_path": "/index.html",
               "concurrency": 10,
               "healthy": {
                   "successes": 3,
                   "http_statuses": [
                       200
                   ],
                   "interval": 5
               },
               "https_verify_certificate": true
           }
       },
       "pass_host": "pass",
       "nodes": [
           {
               "weight": 100,
               "host": "2409::a052:bee2:f640:489d",
               "priority": 0,
               "port": 7400
           },
           {
               "weight": 100,
               "host": "2409::7fa6:ac4f:5076:8e7a",
               "priority": 0,
               "port": 7400
           }
       ],
       "create_time": 1670205156,
       "name": "front_7400",
       "scheme": "http",
       "type": "roundrobin"
   }
   ```
   then
   ```
   curl  {{control-api-url}}/v1/healthcheck
   ```
   **response:**
   ```
   [
       {
           "nodes": [
               {
                   "port": 7400,
                   "weight": 100,
                   "host": "[2409::a052:bee2:f640:489d]",
                   "priority": 0
               },
               {
                   "port": 7400,
                   "weight": 100,
                   "host": "[2409::7fa6:ac4f:5076:8e7a]",
                   "priority": 0
               }
           ],
           "name": "upstream#\/apisix-2az-new\/upstreams\/1d7c88d3",
           "src_type": "upstreams",
           "healthy_nodes": {}, 
           "src_id": "1d7c88d3"
       }
   ]
   ```
   
   **healthy_nodes** is null, and health check didnt work.
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   1. set upstream.nodes.host to ipv6 address
   2. health check didnt work , **/v1/healthcheck** healthy_nodes is null
   3. set upstream.nodes.host to ipv4 address
   4. health check  is working normally
   
   ### Environment
   
   - APISIX version :2.15.1
   - Operating system :CentOS7  3.10.0-957HG.el7.x86_64
   - OpenResty / Nginx version  :openresty/1.21.4.1
   - etcd version, if relevant :3.4.0
   


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