Closed lizzzcai closed 2 years ago
Hi, How you deleted the CR if you had an error?
Hi, How you deleted the CR if you had an error?
Hi @pavelmaliy , I found the xsuaa instance in the btp is showing deletion failed. then I check my service instance CR which shows above error. I can delete the service binding and CR without blocking. Not sure if you can check it from the backend, now the xsuaa instance still exist in my btp with Deletion Failed
status.
Hi, I am not sure exactly what is the error, but it seems not related to BTP Operator but provision/deprovision issue of xsuaa service. please open internal ticket for that. Thanks
Hi @pavelmaliy , just want to check is it an expected behaviour in btp operator service instance before opening new issue,
When I try to delete an xsuaa ServiceInstance (which has existing clone) created by BTP Operator, I got follow errors,
status:
conditions:
- lastTransitionTime: "2022-04-01T06:29:23Z"
message: |
ServiceInstance deletion failed: request DELETE https://service-manager.cfapps.sap.hana.ondemand.com/v1/service_instances/3e3f10d2-3e74-4c0f-93d9-45f757df9dd7 failed: StatusCode: 502 Body: {"error":"BrokerError","description":"Failed deprovisioning request instanceID: 3e3f10d2-3e74-4c0f-93d9-45f757df9dd7, planID: HWEgt9/jJGFjzT8j+/x9pGivrAuKbUMUK8PgWEx3cLY=, serviceID: xsuaa, acceptsIncomplete: true: Status: 500; ErrorMessage: \u003cnil\u003e; Description: Deleting service instance 3e3f10d2-3e74-4c0f-93d9-45f757df9dd7 (appid aisvc-b3df410f-myaifunction-demo!b32291) failed. There still exist clone instances for this master instance ; ResponseError: \u003cnil\u003e"}
observedGeneration: 2
reason: DeleteFailed
status: "False"
type: Succeeded
- lastTransitionTime: "2022-04-01T05:28:27Z"
message: ""
reason: Provisioned
status: "True"
type: Ready
- lastTransitionTime: "2022-04-01T06:29:23Z"
message: |
ServiceInstance deletion failed: request DELETE https://service-manager.cfapps.sap.hana.ondemand.com/v1/service_instances/3e3f10d2-3e74-4c0f-93d9-45f757df9dd7 failed: StatusCode: 502 Body: {"error":"BrokerError","description":"Failed deprovisioning request instanceID: 3e3f10d2-3e74-4c0f-93d9-45f757df9dd7, planID: HWEgt9/jJGFjzT8j+/x9pGivrAuKbUMUK8PgWEx3cLY=, serviceID: xsuaa, acceptsIncomplete: true: Status: 500; ErrorMessage: \u003cnil\u003e; Description: Deleting service instance 3e3f10d2-3e74-4c0f-93d9-45f757df9dd7 (appid aisvc-b3df410f-myaifunction-demo!b32291) failed. There still exist clone instances for this master instance ; ResponseError: \u003cnil\u003e"}
observedGeneration: 2
reason: DeleteFailed
status: "True"
type: Failed
instanceID: 3e3f10d2-3e74-4c0f-93d9-45f757df9dd7
observedGeneration: 2
ready: "True"
tags:
- xsuaa
and seems like this DeleteFailed
status cannot be recovered back. And cannot create new service binding as well. this is the error from service binding:
status:
conditions:
- lastTransitionTime: "2022-04-01T07:06:24Z"
message: service instance 'aisvc-b3df410f-myaifunction-demo-instance' is not
usable
observedGeneration: 1
reason: Blocked
status: "False"
type: Succeeded
- lastTransitionTime: "2022-04-01T07:06:24Z"
message: ""
reason: NotProvisioned
status: "False"
type: Ready
observedGeneration: 1
ready: "False"
Expected behaviour is the DeleteFailed
status will be recovered back after some time so that the xsuaa service instance will work as normal.
Hi,
When instance in DeleteFailed
state operator will constantly retry to delete the instance.
And yes it's expected behavior that when you deleted the instance it considered deleted and not usable even though the instance still exists and has finalizers.
Your option is to create binding using smctl (login with BTP operator credentials) create binding and delete the clones, but again it's service specifics.
Hi @pavelmaliy , is there a way to remove the delete state of a service instance? (I tried editing the serviceinstance to remove the deletion timestamp but not working) as in this state, you cannot create any new binding. Issue we are facing: https://github.com/SAP/sap-btp-service-operator/issues/171#issuecomment-1144940381 (this feature is probably helpful as well)
And manually using the smctl with the btp operator credentials seems like cannot create the service binding. I got following error:
❯ smctl bind aisvc-226fb3f9-mango-service-instance aisvc-226fb3f9-mango-service-binding
Error: request POST https://service-manager.cfapps.sap.hana.ondemand.com/v1/service_bindings?async=true failed: StatusCode: 400 Body: {"error":"Bad Request","description":"sapcp operator must provide _clusterid, _namespace and _k8sname labels"}
I looked at the the way that btp operator creates the binding, the parameters are very hard to constructed manually.
Hi colleagues,
I have an xsuaa instance created previously, but somehow an error happens in my service instance CR. So I delete my service instance CR and redeploy it. but it is not working. Now I cannot delete this xsuaa instance.
below is the error in btp:
below is the error from my service instance: