Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service instance custom error message in status template is not returned #1493

Open
gberche-orange opened this issue Dec 13, 2021 · 2 comments

Comments

@gberche-orange
Copy link
Contributor

gberche-orange commented Dec 13, 2021

Describe the bug
Thanks for the great work. Testing how to return a custom failed error message, I never see it being returned in SFServiceInstance (and hence nor by the service broker)

To Reproduce
Steps to reproduce the behavior:

Given a SFPlan with the following status template

  templates:
  - action: status
    content: |-
      # Status template for provision call
      provision:
        state: failed
        description: a custom error message

When the SFServiceInstance gets provisionned, then its status does not contain the description or error field

status:
  appliedSpec:
    planId: ""
    serviceId: ""
  resources:
  - apiVersion: v1
    kind: ConfigMap
    name: instance-sapcp-5a29d700-3c08-4d5e-a68a-3e6cae710ab4
    namespace: sf-5a29d700-3c08-4d5e-a68a-3e6cae710ab4
  state: failed

However, when the status template is missing, then a proper error message is returned

 status:                                                                                                                                                                                                  │
│   appliedSpec:                                                                                                                                                                                           │
│     planId: ""                                                                                                                                                                                           │
│     serviceId: ""                                                                                                                                                                                        │
│   description: sources template not found for plan 24d7d4c8-6fe2-4c2a-a5ca-b826937d5a88                                                                                                                  │
│   error: |-                                                                                                                                                                                              │
│     Retry threshold reached for 930f66eb-3311-4aa2-8037-16ad164b1384.                                                                                                                                    │
│     sources template not found for plan 24d7d4c8-6fe2-4c2a-a5ca-b826937d5a88                                                                                                                             │
│   state: failed                                                                                                                                                                                          │

The provisionner logs include the following trace provisioner-6c44c77565-8l7rt2021-12-13T17:12:39.649Z INFO provisioners.instance Updating provision status from template {"instanceID": "5a29d700-3c08-4d5e-a68a-3e6cae710ab4", "state": "in progress", "lastOperation": "in_queue", "newState": "failed"}

Expected behavior

The SFServiceInstance and service broker should return the description to the osb client, as documented in the OSB specs at https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#body-1

Additional context

Reproduced with helm chart version: 0.19.0

Possibly related to #1305

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/180622783

The labels on this github issue will be updated when the story is started.

@gberche-orange gberche-orange changed the title service instance custom error message in status template are not returned service instance custom error message in status template is not returned Dec 13, 2021
@anoopjb
Copy link
Contributor

anoopjb commented Apr 7, 2022

Unfortunately we cannot tackle this soon. Also we are open for contributions. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for Changes | Open for Contributions
Development

No branches or pull requests

3 participants