Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Status change 'True' when deleteing processingError #1213

Open
2smin opened this issue Sep 5, 2022 · 3 comments
Open

Status change 'True' when deleteing processingError #1213

2smin opened this issue Sep 5, 2022 · 3 comments
Labels
good first issue Good for newcomers kind/bug Something isn't working triaged Issue has been triaged.

Comments

@2smin
Copy link

2smin commented Sep 5, 2022

What is the environment (Minikube, Openshift)?

Kubernetes 1.22

What is the SBO version used?

1.1.1

What are the steps to reproduce this issue?

  1. apply servicebinding with typo (with application or backing service which is not exist)
  2. delete servicebinding

What is the expected behaviour?

delete servicebinding immediately

What is the actual behaviour?

at first, servicebinding ready condition changes to true (ApplicationBound - true), and is not deleted immediately
and then after seconds, finally it deleted

Service Binding Operator Logs

{"level":"info","ts":1662349375.74745,"logger":"controllers.ServiceBinding","msg":"Deleted, unbind the application","serviceBinding":"smlee/kafka-tomcat-binding3"}
{"level":"error","ts":1662349376.156951,"logger":"controller.servicebinding","msg":"Reconciler error","reconciler group":"binding.operators.coreos.com","reconciler kind":"ServiceBinding","name":"kafka-tomcat-binding3","namespace":"smlee","error":"Operation cannot be fulfilled on servicebindings.binding.operators.coreos.com "kafka-tomcat-binding3": the object has been modified; please apply your changes to the latest version and try again","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/workspace/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:227"}

{"level":"info","ts":1662349405.0006185,"logger":"controllers.ServiceBinding","msg":"Deleted, unbind the application","serviceBinding":"smlee/kafka-tomcat-binding3"}
{"level":"info","ts":1662349405.0432987,"logger":"controllers.ServiceBinding","msg":"Done","serviceBinding":"smlee/kafka-tomcat-binding3","retry":false,"error":null}
{"level":"info","ts":1662349405.0434263,"logger":"controllers.ServiceBinding","msg":"ServiceBinding resource not found. Ignoring since object must be deleted","serviceBinding":"smlee/kafka-tomcat-binding3","name":{"namespace":"smlee","name":"kafka-tomcat-binding3"},"err":"ServiceBinding.binding.operators.coreos.com "kafka-tomcat-binding3" not found"}

Additional Information (Screenshots, etc)

at first, it shows like this after applying servicebinding with typo
캡처

with describe command,
image

and then when I delete this servicebinding resource, it changes like this
image

with describe command,
image

why these happens? I thought it would removed directly after use delete command but it takes time with error log, with applicationBound - true status.

@2smin 2smin added the kind/bug Something isn't working label Sep 5, 2022
@sadlerap
Copy link
Contributor

sadlerap commented Sep 6, 2022

Hello @2smin,
Thanks for the report. We'll be looking into this.

@sadlerap
Copy link
Contributor

sadlerap commented Sep 8, 2022

I've been able to reproduce this issue by applying the following:

apiVersion: servicebinding.io/v1beta1
kind: ServiceBinding
metadata:
  name: test-binding
spec:
  service:
    apiVersion: v1
    kind: Secret
    name: test-secret
  workload:
    name: test
    apiVersion: apps/v1
    kind: Deployment

So long as you don't make the corresponding secret, this demonstrates the behavior you were seeing.

@sadlerap sadlerap added the triaged Issue has been triaged. label Sep 8, 2022
@2smin
Copy link
Author

2smin commented Sep 13, 2022

Thanks for your feedback.
My servicebinding apiVersion is binding.operators.coreos.com
and not only secret, any resources that is not exist makes this situation

i'm using service-binding-operator image [quay.io/redhat-developer/servicebinding-operator:9230857d],
and below is my servicebinding.yaml (I applied new yaml differ with my above comment)

=================================
apiVersion: binding.operators.coreos.com/v1alpha1
kind: ServiceBinding
metadata:
name: test-binding
spec:
bindAsFiles: true
namingStrategy: '{{ .name | upper }}'
detectBindingResources: true
services:

  • version: v1
    group: apps
    kind: ReplicaSet
    name: kubia
    namespace: smlee
    application:
    group: apps
    version : v1
    kind: StatefulSet
    name: tomcat-sts

@sadlerap sadlerap added the good first issue Good for newcomers label Sep 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers kind/bug Something isn't working triaged Issue has been triaged.
Projects
None yet
Development

No branches or pull requests

2 participants