wso2 / k8s-api-operator

API Operator for Kubernetes
Apache License 2.0
115 stars 48 forks source link

API Operator logs an error after sometime an API is deployed - Status:409 Conflict #593

Open renuka-fernando opened 3 years ago

renuka-fernando commented 3 years ago

Description: API Opertor logs

{"level":"info","ts":1620036051.0018218,"logger":"controller_targetendpoint","msg":"Reconciling TargetEndpoint","Request.Namespace":"default","Request.Name":"products"}
{"level":"info","ts":1620036051.001927,"logger":"controller_targetendpoint","msg":"Reconcile K8s Endpoint","Request.Namespace":"default","Request.Name":"products"}
{"level":"info","ts":1620036129.9873269,"logger":"api.controller","msg":"Reconciling API","request_namespace":"default","request_name":"products-api"}
{"level":"info","ts":1620036130.0298748,"logger":"mgw.envoy.deploy","msg":"Deploying API to Envoy MGW Adapter"}
{"level":"info","ts":1620036130.0299351,"logger":"mgw.envoy.deploy","msg":"Deploying API to mgw using swagger"}
{"level":"error","ts":1620036130.0624366,"logger":"mgw.envoy.deploy","msg":"Error when deploying API to mgw using Swagger","error":"Unable to upload API. Status:409 Conflict","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/Users/renuka/go/pkg/mod/github.com/go-logr/zapr@v0.1.1/zapr.go:128\ngithub.com/wso2/k8s-api-operator/api-operator/pkg/envoy.deployAPI\n\tapi-operator/pkg/envoy/deployAPI.go:118\ngithub.com/wso2/k8s-api-operator/api-operator/pkg/envoy.DeployAPItoMgw\n\tapi-operator/pkg/envoy/deployAPI.go:100\ngithub.com/wso2/k8s-api-operator/api-operator/pkg/controller/api.(*ReconcileAPI).Reconcile\n\tapi-operator/pkg/controller/api/api_controller.go:200\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/Users/renuka/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:256\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/Users/renuka/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/Users/renuka/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.6.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/Users/renuka/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/Users/renuka/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/Users/renuka/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/Users/renuka/go/pkg/mod/k8s.io/apimachinery@v0.18.2/pkg/util/wait/wait.go:90"}

Affected Product Version: API Oprator 2.0.0-rc1 CC 0.9.0

Steps to reproduce: Docker Desktop - k8s