This topic describes each of the service broker errands and how you can run an errand using the BOSH CLI.
Errands can manage service brokers and run mass operations on service instances created by brokers. To run an errand, see Run an Errand.
For all supported VMware Tanzu SQL with MySQL for VMs errands, see the full errand list:
To run an errand:
View the BOSH deployment name for your MySQL service broker by running:
bosh deployments
Run:
bosh -d pivotal-mysql-GUID run-errand ERRAND-NAME
Where:
pivotal-mysql-GUID
is the BOSH deployment name for your MySQL service broker.ERRAND-NAME
is the name of the errand you want to run.For example:
$ bosh -d pivotal-mysql-e3ddd36247fe5b923caf run-errand find-deprecated-bindings
The following sections describe each service broker errand that you can run. To run an errand, see Run an Errand.
The find-deprecated-bindings
errand does the following:
Lists app bindings and services keys that are deprecated in Tanzu SQL for VMs v2.10. The bindings are deprecated because they do not require TLS.
Exits whether or not a deprecated binding is found.
The find-deprecated-bindings
errand has the following example output:
Stdout +---------------------------+--------------------------------------+------------------------+--------------------------+--------------------+-------------------+-----------------------------+ | SERVICE | SERVICE GUI | ORG | SPACE | APP OR SERVICE KEY | TYPE | REASON | +---------------------------+--------------------------------------+------------------------+--------------------------+--------------------+-------------------+-----------------------------+ | tlsDB | a999db0b-176e-4ac8-8342-d72b338d1f0c | MYSQL-ORG-upgrade-test | MYSQL-SPACE-upgrade-test | user-cli | ServiceKeyBinding | no tls | | tlsDB | a999db0b-176e-4ac8-8342-d72b338d1f0c | MYSQL-ORG-upgrade-test | MYSQL-SPACE-upgrade-test | user-cli | ServiceKeyBinding | no dns: hostname="10.0.8.6" | | upgrade-outdated-instance | 34f26746-fb46-4f14-87bc-e1ddce26f340 | MYSQL-ORG-upgrade-test | MYSQL-SPACE-upgrade-test | cs-accept | AppBinding | no dns: hostname="10.0.8.5" | | tlsDB | a999db0b-176e-4ac8-8342-d72b338d1f0c | MYSQL-ORG-upgrade-test | MYSQL-SPACE-upgrade-test | cs-accept-tls | AppBinding | no dns: hostname="10.0.8.6" | +---------------------------+--------------------------------------+------------------------+--------------------------+--------------------+-------------------+-----------------------------+
VMware recommends that operators configure bindings to require TLS. For more information, see Configure TLS.
The smoke-tests
errand does the following:
The configure-leader-follower
errand does the following:
This errand is used to trigger a leader-follower failover. You can use this errand to create custom failover scripts. For more information, see Triggering a Leader-Follower Failover.
The make-leader
errand does the following:
This errand is used to trigger a leader-follower failover. You can use this errand to create custom failover scripts. For more information, see Triggering a Leader-Follower Failover.
The make-read-only
errand does the following:
This errand is used to trigger a leader-follower failover. You can use this errand to create custom failover scripts. For more information, see Triggering a Leader-Follower Failover.
The upgrade-all-service-instances
errand:
When you make changes to the plan configuration, the errand upgrades all the Tanzu SQL for VMs service instances to the latest version of the plan.
If any instance fails to upgrade, the errand fails immediately. This prevents systemic problems from spreading to the rest of your service instances.
The register-broker
errand:
Run this errand whenever the broker is re-deployed with new catalog metadata to update the Marketplace.
Plans with deactivated service access are only visible to admin Cloud Foundry users. Non-admin Cloud Foundry users, including Org Managers and Space Managers, cannot see these plans.
This errand destroys all on-demand service instances and deregisters the broker from the Cloud Controller. Use it with extreme caution.
The delete-all-service-instances-and-deregister-broker
errand does the following:
Tanzu Operations Manager runs this errand only when deleting Tanzu SQL for VMs. Running this errand removes all service instances and their data.
The recreate-all-service-instances
errand recreates all service instance VMs managed by an on-demand broker.
You might want use this errand in the following cases: