cancel
Showing results for 
Search instead for 
Did you mean: 

btp service instance creation failed in Kyma runtime

kevin_hu
Active Participant
0 Kudos

Hi,

I was following this tutorial here

https://developers.sap.com/tutorials/btp-app-kyma-deploy-application.html

when trying to deploy with helm, I got error in Kyma showing the btp service instance destination not able to be created properly. It is giving an error as the status like this.

I tried to manually create one from dashboard but got same errror.

Now the service cannot be deleted (always in "not provisioned" status). Tried to delete namespace but getting stuck as "being terminated".

Recently migrated to the Role-based access control.

That's on EU10 AWS


status: conditions: - lastTransitionTime: '2022-08-09T04:14:13Z' message: >- Error sending request GET https://service-manager.cfapps.eu10.hana.ondemand.com/v1/service_instances?attach_last_operations=tr... Get https://service-manager.cfapps.eu10.hana.ondemand.com/v1/service_instances?attach_last_operations=tr... oauth2: cannot fetch token: 401 Unauthorized
Response: {"error":"unauthorized","error_description":"Bad credentials"} observedGeneration: 1 reason: InProgress status: 'False' type: Succeeded - lastTransitionTime: '2022-08-09T04:14:13Z' message: '' reason: NotProvisioned status: 'False' type: Ready observedGeneration: 1 ready: 'False'
gabbi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kevin,
Can you check if there exists a service binding in the namespace ? From the error, it looks like the credentials created by the service binding and then bound to the application are no longer valid.

Best regards,

Gaurav

kevin_hu
Active Participant
0 Kudos

gabbi , the service binding is in "not provisioned" status and not able to be deleted either, the status message shows "creation in progress, waiting for service instance 'cpapp-destinations' to be ready".

I tried command line as well to delete

>kubectl delete serviceinstance cpapp-destinations -n risk-management

serviceinstance.services.cloud.sap.com "cpapp-destinations" deleted

but it is still there.

>kubectl get serviceinstance -n risk-management

NAME OFFERING PLAN STATUS READY AGE ID MESSAGE

cpapp-destinations destination lite InProgress False 2d21h Error sending request GET https://service-manager.cfapps.eu10.hana.ondemand.com/v1/service_instances?attach_last_operations=tr... Get https://service-manager.cfapps.eu10.hana.ondemand.com/v1/service_instances?attach_last_operations=tr... oauth2: cannot fetch token: 401 Unauthorized...

kevin_hu
Active Participant
0 Kudos

I managed to delete both by editing and removing the finalizer tag called

finalizers:

- services.cloud.sap.com/sap-btp-finalizer

source =>

https://answers.sap.com/questions/13290076/cant-terminate-namespace-in-kyma-runtime.html

But when I try to create the service instance again, it is still giving me the same error.

status: conditions: - lastTransitionTime: '2022-08-09T04:14:13Z' message: >- Error sending request GET https://service-manager.cfapps.eu10.hana.ondemand.com/v1/service_instances?attach_last_operations=tr... Get https://service-manager.cfapps.eu10.hana.ondemand.com/v1/service_instances?attach_last_operations=tr... oauth2: cannot fetch token: 401 Unauthorized

Response: {"error":"unauthorized","error_description":"Bad credentials"} observedGeneration: 1 reason: InProgress status: 'False' type: Succeeded - lastTransitionTime: '2022-08-09T04:14:13Z' message: '' reason: NotProvisioned status: 'False' type: Ready observedGeneration: 1 ready: 'False'

tshifa
Employee
Employee
0 Kudos

Hi kevin_hu,

I'm facing a similar issue. Were you able to fix this? If yes, what were the steps you followed to make it work?

Regards,

Shifa

kevin_hu
Active Participant
0 Kudos

unfortunately I did not get it working.

Accepted Solutions (0)

Answers (1)

Answers (1)

quovadis
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

You may to need to get your btp-service-operator deployment back in order as described here.

You may try the following against your kyma cluster:

kubectl -n kyma-system rollout restart deployment sap-btp-operator-controller-manager