SAP / sap-btp-service-operator

SAP BTP service operator enables developers to connect Kubernetes clusters to SAP BTP accounts and to consume SAP BTP services within the clusters by using Kubernetes native tools.
Apache License 2.0
126 stars 52 forks source link

ServiceInstance is not reconciled #487

Open s-lavr opened 4 days ago

s-lavr commented 4 days ago

Hi! We are deploying a Dynatrace service instance and related resources using a Helm chart. Unfortunately, when we deploy the ServiceInstance resource simultaneously with the Entitlement resource (deployed by Crossplane), we encounter the following error:

 ServiceInstance create failed: couldn't find the service offering 'dynatrace' on dataCenter ''

The entitlement takes approximately 15 seconds to become ready, but the ServiceInstance remains stuck in the CreatedFailed state. Is it possible for it to reconcile after a while and self-heal?

We are using the sap-btp-service-operator v0.6.8. In the controller logs, I noticed these messages:

2024-11-27T12:14:01Z    INFO    controllers.ServiceInstance    unable to cast error to SM error, will be treated as non transient    {"serviceinstance": {"name":"dynatrace-dynatrace-instance","namespace":"default"}, "correlation_id": "0f3ae3d8-c2e2-47cf-8d71-8bfdeb42a2d9"}
2024-11-27T12:14:01Z    INFO    controllers.ServiceInstance    operation create of ServiceInstance encountered a non transient error couldn't find the service offering 'dynatrace' on dataCenter '', giving up operation :(    {"serviceinstance": {"name":"dynatrace-dynatrace-instance","namespace":"default"}, "correlation_id": "0f3ae3d8-c2e2-47cf-8d71-8bfdeb42a2d9"}
2024-11-27T12:14:01Z    INFO    controllers.ServiceInstance    updating ServiceInstance status    {"serviceinstance": {"name":"dynatrace-dynatrace-instance","namespace":"default"}, "correlation_id": "0f3ae3d8-c2e2-47cf-8d71-8bfdeb42a2d9"}
2024-11-27T12:14:01Z    INFO    controllers.ServiceInstance    instance is in final state (generation: 1)    {"serviceinstance": {"name":"dynatrace-dynatrace-instance","namespace":"default"}, "correlation_id": "754fb8f6-6c4d-40c0-ba61-aa8e3d9dacba"}
2024-11-27T12:14:01Z    INFO    controllers.ServiceInstance    instance is in final state (generation: 1)    {"serviceinstance": {"name":"dynatrace-dynatrace-instance","namespace":"default"}, "correlation_id": "a2ace259-9769-4cdb-bf36-95c60f4b9a2e"}