-
Notifications
You must be signed in to change notification settings - Fork 36
Description
Description
The client update command fails for service instances which were provisioned by csb client provision
Expected Behavior
It should be possible to run csb client update for service instances which were provisioned with csb client provision. Service updates should allow to change user-provided parameters and to change the service plan.
Actual Behavior
The client update command fails with error message error deciding update path: passed maintenance_info does not match the catalog maintenance_info.
Possible Fix
The client updatecommand should send a value for previous_values.maintenance_info.version and maintenance_info.version when sending the update request. Both values must match.
With the current implementation, both previous_values and maintenance_info are left empty when sending the request.
Alternatively, brokerapi/broker/decider/decider.go should be updated to match the use-case for the client update command instead of throwing ErrMaintenanceInfoConflict
Steps to Reproduce
- Provision a service instance:
csb client provision --serviceid "${SERVICEID}" --planid "${PLANID}" --instanceid "${INSTANCEID}" - Update the service instance without changing parameters:
csb client update --serviceid "${SERVICEID}" --planid "${PLANID}" --instanceid "${INSTANCEID}" --instanceid "1" --params '{}'
Context
Failed to test service updates (after import) locally during Brokerpak development
Your Environment
Version used: v2.1.2
Operating System and version (desktop): Ubuntu 22.04.4 LTS (Running from Docker image mcr.microsoft.com/devcontainers/base:jammy)
Link to your project (if public): --
Platform (Azure/AWS/GCP): Local Testing
Applicable Services: Running with mariadb:11.4.2-noble backend (Docker)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Status