You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/13 08:16:38 UTC

[GitHub] [apisix-dashboard] membphis opened a new issue #1041: failed to load the route in etcd

membphis opened a new issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041


   here are the routes in my `etcd`, I created them by a python script:
   
   ```python
   #!/usr/bin/env python
   # -*- coding: utf-8 -*-
   import grequests
   
   payloads = {}
   for id in range(100):
       payload = {
                   "uri": "/test_%s"%id,
                   "upstream": {
                       "type": "roundrobin",
                       "nodes": {
                           "127.0.0.1:7000": 1
                       }
                   }
       }
       payloads[id]=payload
   unsent_request = []
   header = {"X-API-KEY":"edd1c9f034335f136f87ad84b625c8f1"}
   for id in payloads:
       print(id)
       unsent_request.append(grequests.post("http://127.0.0.1:9080/apisix/admin/routes/" ,json=payloads[id], headers = header))
       responses = grequests.map(unsent_request)
   for response in responses:
       print(response.content)
       response.close()
   ```
   
   the Manager API can not load them, here are the routes in etcd:
   
   [routes.log](https://github.com/apache/apisix-dashboard/files/5684342/mm.log)
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] membphis edited a comment on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
membphis edited a comment on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-744006131


   I think that is a bug of Manager API. In the etcd, it is about 100 route, but only returned one route.
   
   ```
   http://ubuntu:9000/apisix/admin/routes?page=1&page_size=20
   
   {
   	"code": 0,
   	"message": "",
   	"data": {
   		"rows": [{
   			"id": null,
   			"create_time": 1607505576,
   			"update_time": 1607505576,
   			"uri": "/test_95",
   			"upstream": {
   				"nodes": [{
   					"host": "127.0.0.1",
   					"port": 7000,
   					"weight": 1
   				}],
   				"type": "roundrobin",
   				"hash_on": "vars",
   				"pass_host": "pass"
   			}
   		}],
   		"total_size": 1
   	},
   	"request_id": "b082cb4a-e8f2-4c41-b2aa-fc3e28a62a72"
   }


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] membphis commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-744012169


   > fix in M2.3?
   
   this is ok


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-744006690


   fix in M2.3?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] nic-chen commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-744002374


   > > @membphis
   > > the Manager API has loaded them, but the ID is null for each routes.
   > > I guess you can't see them on the FE UI?
   > 
   > Just for sure, does API return those records?
   
   No, It depends. My guess is wrong.
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan closed issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
juzhiyuan closed issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] juzhiyuan commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-743990651


   > @membphis 
   > 
   > the Manager API has loaded them, but the ID is null for each routes.
   > 
   > 
   > I guess you can't see them on the FE UI?
   > 
   > 
   
   Just for sure, does API return those records?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] membphis commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-743972259


   @nic-chen do you have time to look at this issue?


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] membphis commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-744006131


   I think that is a bug of Manager API.
   
   ```
   http://ubuntu:9000/apisix/admin/routes?page=1&page_size=20
   
   {
   	"code": 0,
   	"message": "",
   	"data": {
   		"rows": [{
   			"id": null,
   			"create_time": 1607505576,
   			"update_time": 1607505576,
   			"uri": "/test_95",
   			"upstream": {
   				"nodes": [{
   					"host": "127.0.0.1",
   					"port": 7000,
   					"weight": 1
   				}],
   				"type": "roundrobin",
   				"hash_on": "vars",
   				"pass_host": "pass"
   			}
   		}],
   		"total_size": 1
   	},
   	"request_id": "b082cb4a-e8f2-4c41-b2aa-fc3e28a62a72"
   }


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] membphis commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-743972314


   cc @idbeta 


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-dashboard] nic-chen commented on issue #1041: failed to load the route in etcd

Posted by GitBox <gi...@apache.org>.
nic-chen commented on issue #1041:
URL: https://github.com/apache/apisix-dashboard/issues/1041#issuecomment-743987303


   @membphis 
   
   the Manager API has loaded them, but the ID is null for each routes.
   
   
   I guess you can't see them on the FE UI?
   
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org