tao12345666333 opened a new issue #869:
URL: https://github.com/apache/apisix-ingress-controller/issues/869


   This problem has been encountered in many PRs recently
   
   ```
   2022-02-16T01:06:17+08:00    error   ingress/status.go:222   failed to 
record status change for IngressV1    {"error": "Operation cannot be fulfilled 
on ingresses.networking.k8s.io \"ingress-v1-lb\": the object has been modified; 
please apply your changes to the latest version and try again", "name": 
"ingress-v1-lb", "namespace": "ingress-apisix-e2e-tests-default-289010551"}
   2022-02-16T01:06:17+08:00    debug   ingress/ingress.go:138  translated 
ingress resource to a couple of routes, upstreams and pluginConfigs  
{"ingress": {}, "routes": 
[{"id":"46b67ef7","name":"ingress_httpbin.org_/ip","desc":"Created by 
apisix-ingress-controller, DO NOT modify it 
manually","labels":{"managed-by":"apisix-ingress-controller"},"host":"httpbin.org","uris":["/ip"],"upstream_id":"a6104779"}],
 "upstreams": 
[{"id":"a6104779","name":"ingress-apisix-e2e-tests-default-289010551_httpbin-service-e2e-test_80","desc":"Created
 by apisix-ingress-controller, DO NOT modify it 
manually","labels":{"managed-by":"apisix-ingress-controller"},"type":"roundrobin","nodes":[{"host":"10.244.1.130","port":80,"weight":100}],"scheme":"http"}],
 "ssl": null, "pluginConfigs": null}
   2022-02-16T01:06:18+08:00    debug   ingress/ingress.go:302  ingress update 
event arrived    {"new object": "&Ingress{ObjectMeta:{ingress-v1-lb  
ingress-apisix-e2e-tests-default-289010551  
033bf132-54bb-401e-9d8a-04810bf3d620 26518 1 2022-02-16 01:06:08 +0800 HKT 
<nil> <nil> map[] 
map[kubectl.kubernetes.io/last-applied-configuration:{\"apiVersion\":\"networking.k8s.io/v1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{\"kubernetes.io/ingress.class\":\"apisix\"},\"name\":\"ingress-v1-lb\",\"namespace\":\"ingress-apisix-e2e-tests-default-289010551\"},\"spec\":{\"rules\":[{\"host\":\"httpbin.org\",\"http\":{\"paths\":[{\"backend\":{\"service\":{\"name\":\"httpbin-service-e2e-test\",\"port\":{\"number\":80}}},\"path\":\"/ip\",\"pathType\":\"Exact\"}]}}]}}\n
 kubernetes.io/ingress.class:apisix] [] []  [{kubectl-client-side-apply Update 
networking.k8s.io/v1 2022-02-16 01:06:08 +0800 HKT FieldsV1 
{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:kubectl.kubernetes.io/last-applied-configuratio
 n\":{},\"f:kubernetes.io/ingress.class\":{}}},\"f:spec\":{\"f:rules\":{}}} } 
{apisix-ingress-controller Update networking.k8s.io/v1 2022-02-16 01:06:18 
+0800 HKT FieldsV1 {\"f:status\":{\"f:loadBalancer\":{\"f:ingress\":{}}}} 
}]},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:httpbin.org,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/ip,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:httpbin-service-e2e-test,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Exact,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[{10.6.6.6
  []}]},},}", "old object": "&Ingress{ObjectMeta:{ingress-v1-lb  
ingress-apisix-e2e-tests-default-289010551  
033bf132-54bb-401e-9d8a-04810bf3d620 26515 1 2022-02-16 01:06:08 +0800 HKT 
<nil> <nil> map[] 
map[kubectl.kubernetes.io/last-applied-configuration:{\"apiVersion\":\"networking.k8s.io/v1\",\"kind\":\"Ingress
 
\",\"metadata\":{\"annotations\":{\"kubernetes.io/ingress.class\":\"apisix\"},\"name\":\"ingress-v1-lb\",\"namespace\":\"ingress-apisix-e2e-tests-default-289010551\"},\"spec\":{\"rules\":[{\"host\":\"httpbin.org\",\"http\":{\"paths\":[{\"backend\":{\"service\":{\"name\":\"httpbin-service-e2e-test\",\"port\":{\"number\":80}}},\"path\":\"/ip\",\"pathType\":\"Exact\"}]}}]}}\n
 kubernetes.io/ingress.class:apisix] [] []  [{kubectl-client-side-apply Update 
networking.k8s.io/v1 2022-02-16 01:06:08 +0800 HKT FieldsV1 
{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:kubectl.kubernetes.io/last-applied-configuration\":{},\"f:kubernetes.io/ingress.class\":{}}},\"f:spec\":{\"f:rules\":{}}}
 
}]},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:httpbin.org,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/ip,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:httpbin-service-e2e-te
 
st,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Exact,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[{10.6.6.6
  []}]},},}"}
   2022-02-16T01:06:18+08:00    debug   ingress/ingress.go:138  translated 
ingress resource to a couple of routes, upstreams and pluginConfigs  
{"ingress": {}, "routes": 
[{"id":"46b67ef7","name":"ingress_httpbin.org_/ip","desc":"Created by 
apisix-ingress-controller, DO NOT modify it 
manually","labels":{"managed-by":"apisix-ingress-controller"},"host":"httpbin.org","uris":["/ip"],"upstream_id":"a6104779"}],
 "upstreams": 
[{"id":"a6104779","name":"ingress-apisix-e2e-tests-default-289010551_httpbin-service-e2e-test_80","desc":"Created
 by apisix-ingress-controller, DO NOT modify it 
manually","labels":{"managed-by":"apisix-ingress-controller"},"type":"roundrobin","nodes":[{"host":"10.244.1.130","port":80,"weight":100}],"scheme":"http"}],
 "ssl": null, "pluginConfigs": null}
   2022-02-16T01:06:18+08:00    debug   ingress/ingress.go:302  ingress update 
event arrived    {"new object": "&Ingress{ObjectMeta:{ingress-v1-lb  
ingress-apisix-e2e-tests-default-289010551  
033bf132-54bb-401e-9d8a-04810bf3d620 26519 1 2022-02-16 01:06:08 +0800 HKT 
<nil> <nil> map[] 
map[kubectl.kubernetes.io/last-applied-configuration:{\"apiVersion\":\"networking.k8s.io/v1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{\"kubernetes.io/ingress.class\":\"apisix\"},\"name\":\"ingress-v1-lb\",\"namespace\":\"ingress-apisix-e2e-tests-default-289010551\"},\"spec\":{\"rules\":[{\"host\":\"httpbin.org\",\"http\":{\"paths\":[{\"backend\":{\"service\":{\"name\":\"httpbin-service-e2e-test\",\"port\":{\"number\":80}}},\"path\":\"/ip\",\"pathType\":\"Exact\"}]}}]}}\n
 kubernetes.io/ingress.class:apisix] [] []  [{kubectl-client-side-apply Update 
networking.k8s.io/v1 2022-02-16 01:06:08 +0800 HKT FieldsV1 
{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:kubectl.kubernetes.io/last-applied-configuratio
 n\":{},\"f:kubernetes.io/ingress.class\":{}}},\"f:spec\":{\"f:rules\":{}}} 
}]},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:httpbin.org,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/ip,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:httpbin-service-e2e-test,Port:ServiceBackendPort{Name:,Number:80,},},},PathType:*Exact,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[]},},}",
 "old object": "&Ingress{ObjectMeta:{ingress-v1-lb  
ingress-apisix-e2e-tests-default-289010551  
033bf132-54bb-401e-9d8a-04810bf3d620 26518 1 2022-02-16 01:06:08 +0800 HKT 
<nil> <nil> map[] 
map[kubectl.kubernetes.io/last-applied-configuration:{\"apiVersion\":\"networking.k8s.io/v1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{\"kubernetes.io/ingress.class\":\"apisix\"},\"name\":\"ingress-v1-lb\",\"namespace\":\"ingress-apisix-e2e-tests-default-289010551\"
 
},\"spec\":{\"rules\":[{\"host\":\"httpbin.org\",\"http\":{\"paths\":[{\"backend\":{\"service\":{\"name\":\"httpbin-service-e2e-test\",\"port\":{\"number\":80}}},\"path\":\"/ip\",\"pathType\":\"Exact\"}]}}]}}\n
 kubernetes.io/ingress.class:apisix] [] []  [{kubectl-client-side-apply Update 
networking.k8s.io/v1 2022-02-16 01:06:08 +0800 HKT FieldsV1 
{\"f:metadata\":{\"f:annotations\":{\".\":{},\"f:kubectl.kubernetes.io/last-applied-configuration\":{},\"f:kubernetes.io/ingress.class\":{}}},\"f:spec\":{\"f:rules\":{}}}
 } {apisix-ingress-controller Update networking.k8s.io/v1 2022-02-16 01:06:18 
+0800 HKT FieldsV1 {\"f:status\":{\"f:loadBalancer\":{\"f:ingress\":{}}}} 
}]},Spec:IngressSpec{DefaultBackend:nil,TLS:[]IngressTLS{},Rules:[]IngressRule{IngressRule{Host:httpbin.org,IngressRuleValue:IngressRuleValue{HTTP:&HTTPIngressRuleValue{Paths:[]HTTPIngressPath{HTTPIngressPath{Path:/ip,Backend:IngressBackend{Resource:nil,Service:&IngressServiceBackend{Name:httpbin-service-e2e-test,Port:Servic
 
eBackendPort{Name:,Number:80,},},},PathType:*Exact,},},},},},},IngressClassName:nil,},Status:IngressStatus{LoadBalancer:{[{10.6.6.6
  []}]},},}"}
   2022-02-16T01:06:18+08:00    error   ingress/status.go:222   failed to 
record status change for IngressV1    {"error": "Operation cannot be fulfilled 
on ingresses.networking.k8s.io \"ingress-v1-lb\": the object has been modified; 
please apply your changes to the latest version and try again", "name": 
"ingress-v1-lb", "namespace": "ingress-apisix-e2e-tests-default-289010551"}
   ```
   
   ref: 
https://github.com/apache/apisix-ingress-controller/runs/5203498158?check_suite_focus=true


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