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

cf service --params doesn't comply with openservicebrokerapi Fetch Service Instance #2500

Open
4 tasks done
LiliVideva opened this issue Aug 11, 2023 · 1 comment
Open
4 tasks done
Assignees

Comments

@LiliVideva
Copy link

Please fill out the issue checklist below and provide ALL the requested information.

  • I reviewed open and closed github issues that may be related to my problem.
  • I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with
What: Fetch service instance details via cf CLI
Why: Implementing the functionality to offer to our stakeholders

What happened
In our service broker, we have implemented the openservicebrokerapi Fetch Service Instance endpoint in order to be able to retrieve the parameters specified in an existing service instance. Once the broker was deployed with the code changes, we have tried to fetch the parameters of a service instance via cf service <service> --params (as cf service <service> doesn't return this information). The command failed with a custom error, coming from our broker, saying that the plan ID was not provided. When checking the logs of the broker app (cf logs <broker-app> --recent) we have spotted that the GET command executed against our broker does not include any of the expected query parameters, specified by the openservicebrokerapi Fetch Service Instance. The command looked like GET /v2/service_instances/<instance-id>, instead of GET /v2/service_instances/<instance-id>?service_id=<service-id>&plan_id=<plan-id>.
When checking the broker logs for execution of cf delete-service <service> command (which we support for some time now), we can see that the command includes the query parameters, expected by openservicebrokerapi Delete Service Instance. This leads to the conclusion that there is an inconsistency of the support for query parameters between the different cf commands.

Expected behavior

  • To execute with query parameters, as defined in the openservicebrokerapi Fetch Service Instance
  • To receive the parameters of the service instance

Exact Steps To Reproduce
Steps to reproduce the behavior; include the exact CLI commands and verbose output:

  1. Have a broker, implementing openservicebrokerapi Fetch Service Instance and Create Service Instance
  2. Create a service instance via cf cli: cf create-service <offering> <plan> <service> -c <config-file>
  3. Run cf service <service> --params
  4. See error

Provide more context

  • Mac OS Ventura 13.5
  • zsh
  • cf cli version: 8.7.1+9c81242.2023-06-15
@a-b a-b self-assigned this Sep 6, 2024
@a-b
Copy link
Member

a-b commented Oct 1, 2024

We created a ticket in our team's tracker to look into this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants