pioneer-hash commented on issue #403:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/403#issuecomment-826273553


   > > > No, it's not related with the order to create these to objects.
   > > 
   > > 
   > > > 
   > > 
   > > 
   > > > The error log prompts that there is an `ApisixUpstream` object in the 
`default` namespace which named as `web2`. You should check it.
   > > 
   > > 
   > > I'm sure not. The puzzle is that a reference to ApisixRoute will succeed 
in ApisixUpstream
   > 
   > So here we have two problems. Let's solve them one by one.
   > 
   > The first problem the apisix upstream is ineffective is because the 
corresponding service doesn't exist, this is a conclusion from your error log. 
I'm not sure whether this apisixupstream object was deleted so you said you are 
sure it doesn't exist.
   
   I recreated ApisixUpstream ,This is my configuration . Creating upstream 
that is not introduced by route will still report an error. As long as I 
reference to ApisixRoute about new serviename , I can synchronize successfully
   ```
   apiVersion: apisix.apache.org/v1
   kind: ApisixUpstream
   metadata:
     name: web3
     namespace: gray-ns
   spec:
     loadbalancer:
       type: chash
       hashOn: header
       key: "user-agent"
   ```
   This is error.log
   ```
   [root@host-172-21-9-35 ~]# kubectl logs  
sitech-gray-ingress-controller-7779b6bd88-chpnm -n gray-publish | grep web3
   2021-04-24T12:17:38+08:00       warn    controller/endpoint.go:169      sync 
endpoints failed, will retry       {"object": 
{"Type":2,"Object":{"metadata":{"name":"web3","namespace":"gray-ns","selfLink":"/api/v1/namespaces/gray-ns/endpoints/web3","uid":"fb474eea-e6da-485e-a1da-327017d9a92d","resourceVersion":"38550935","creationTimestamp":"2021-04-23T01:43:26Z","labels":{"app":"web3"},"annotations":{"endpoints.kubernetes.io/last-change-trigger-time":"2021-04-24T12:17:33+08:00"}},"subsets":[{"notReadyAddresses":[{"ip":"100.86.116.139","nodeName":"host-172-21-9-40","targetRef":{"kind":"Pod","namespace":"gray-ns","name":"web3-98c44d479-7ndh5","uid":"aa221851-49ce-49a4-9a0e-5cd335eb94bb","resourceVersion":"38550933"}}],"ports":[{"port":80,"protocol":"TCP"}]}]},"Tombstone":null}}
   2021-04-24T12:17:56+08:00       warn    controller/endpoint.go:169      sync 
endpoints failed, will retry       {"object": 
{"Type":2,"Object":{"metadata":{"name":"web3","namespace":"gray-ns","selfLink":"/api/v1/namespaces/gray-ns/endpoints/web3","uid":"fb474eea-e6da-485e-a1da-327017d9a92d","resourceVersion":"38550935","creationTimestamp":"2021-04-23T01:43:26Z","labels":{"app":"web3"},"annotations":{"endpoints.kubernetes.io/last-change-trigger-time":"2021-04-24T12:17:33+08:00"}},"subsets":[{"notReadyAddresses":[{"ip":"100.86.116.139","nodeName":"host-172-21-9-40","targetRef":{"kind":"Pod","namespace":"gray-ns","name":"web3-98c44d479-7ndh5","uid":"aa221851-49ce-49a4-9a0e-5cd335eb94bb","resourceVersion":"38550933"}}],"ports":[{"port":80,"protocol":"TCP"}]}]},"Tombstone":null}}
   2021-04-25T12:17:12+08:00       warn    controller/endpoint.go:169      sync 
endpoints failed, will retry       {"object": 
{"Type":2,"Object":{"metadata":{"name":"web3","namespace":"gray-ns","selfLink":"/api/v1/namespaces/gray-ns/endpoints/web3","uid":"fb474eea-e6da-485e-a1da-327017d9a92d","resourceVersion":"39043427","creationTimestamp":"2021-04-23T01:43:26Z","labels":{"app":"web3"},"annotations":{"endpoints.kubernetes.io/last-change-trigger-time":"2021-04-25T12:17:09+08:00"}},"subsets":[{"notReadyAddresses":[{"ip":"100.86.116.139","nodeName":"host-172-21-9-40","targetRef":{"kind":"Pod","namespace":"gray-ns","name":"web3-98c44d479-7ndh5","uid":"aa221851-49ce-49a4-9a0e-5cd335eb94bb","resourceVersion":"39043425"}}],"ports":[{"port":80,"protocol":"TCP"}]}]},"Tombstone":null}}
   2021-04-25T12:17:30+08:00       warn    controller/endpoint.go:169      sync 
endpoints failed, will retry       {"object": 
{"Type":2,"Object":{"metadata":{"name":"web3","namespace":"gray-ns","selfLink":"/api/v1/namespaces/gray-ns/endpoints/web3","uid":"fb474eea-e6da-485e-a1da-327017d9a92d","resourceVersion":"39043427","creationTimestamp":"2021-04-23T01:43:26Z","labels":{"app":"web3"},"annotations":{"endpoints.kubernetes.io/last-change-trigger-time":"2021-04-25T12:17:09+08:00"}},"subsets":[{"notReadyAddresses":[{"ip":"100.86.116.139","nodeName":"host-172-21-9-40","targetRef":{"kind":"Pod","namespace":"gray-ns","name":"web3-98c44d479-7ndh5","uid":"aa221851-49ce-49a4-9a0e-5cd335eb94bb","resourceVersion":"39043425"}}],"ports":[{"port":80,"protocol":"TCP"}]}]},"Tombstone":null}}
   2021-04-25T15:17:17+08:00       warn    apisix/upstream.go:114  upstream not 
found      {"fullname": "gray-ns_web3_81", "url": 
"http://sitech-gray-admin:9180/apisix/admin/upstreams/f95eb843";, "cluster": ""}
   
   ```


-- 
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:
[email protected]


Reply via email to