Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- capi-release 1.47.0 is marked as having downtime issues,
- so we rolled back to capi-release 1.46.0 in cf-deployment.
- Teams that have been using the `release-candidate` branch of cf-deployment may notice problems in their pipelines,
- caused by the fact that capi-release 1.47.0 included a database migration that got rolled back as well.
- Steps provided here should help teams resolve this issue.
- To un-bork your environment based on `release-candidate`,
- you can take the following steps:
- 1. SSH to the API VM so that you can target the database node:
- ```
- bosh ssh api/0
- ```
- 2. Install a mysql client
- ```
- sudo -i
- apt-get install mysql-client
- ```
- 3. Connect to the database
- ```
- mysql -h <host> -u <username> -p
- ```
- 4. Drop the `encyrption_key_label` column from the table:
- ```
- > alter table env_groups drop column encryption_key_label;
- > alter table service_brokers drop column encryption_key_label;
- > alter table service_bindings drop column encryption_key_label;
- > alter table service_instances drop column encryption_key_label;
- > alter table service_keys drop column encryption_key_label;
- > alter table apps drop column encryption_key_label;
- > alter table buildpack_lifecycle_buildpacks drop column encryption_key_label;
- > alter table buildpack_lifecycle_data drop column encryption_key_label;
- > alter table droplets drop column encryption_key_label;
- > alter table packages drop column encryption_key_label;
- > alter table tasks drop column encryption_key_label;
- ```
- 5. Make sure to remove the record of having run the migration,
- so that future capi-release versions will make sure to run it again:
- ```
- > delete from schema_migrations where filename like '201712%';
- > exit
- ```
- 6. Clean up after yourself:
- ```
- apt-get remove mysql-client
- exit
- ```
Add Comment
Please, Sign In to add comment