Skip to content

diagnostic message of failed cf update-service-broker is unfriendly #1910

Open
@gberche-orange

Description

@gberche-orange

Issue

diagnostic message of failed cf update-service-broker is unfriendly in the following scenario

  • given a service broker has registered a service with name overview-service and guid G1
  • given an existing service instance for service overview-service
  • given a broker updates changes response from its v2/catalog to return a service with name overview-service and guid G2
  • when admin executes cf update-service-broker
  • then the admin sees
Server error, status code: 502, error code: 270012, message: Service broker catalog is invalid: 
Service names must be unique within a broker. Services with names ["overview-service"] already exist

The message is unfriendly in the sense that:

  • the catalog per se is valid
  • however, given existing provisionned service instances, the service offering with guid G1 can not be unloaded and thus conflicts with offering with guid G2

Context

As a CF admin

  • in order to be productive with CF API
  • I need helpful friendly diagnostic messages on errors

Steps to Reproduce

Expected result

Server error, status code: 502, error code: 270012, message: Service broker catalog can not be updated: 
Service names must be unique within a broker. Service with name "overview-service" and guid "a49cb559-5539-447b-9fdd-bdaa3970606d" already exists with guid "cf40e289-d0ac-4f80-a82c-36dbad79ede1" and can not be unloaded as there are existing service instances attached.

Current result

Server error, status code: 502, error code: 270012, message: Service broker catalog is invalid: 
Service names must be unique within a broker. Services with names ["overview-service"] already exist

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions