Guest User

Untitled

a guest
Jan 3rd, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. capi-release 1.47.0 is marked as having downtime issues,
  2. so we rolled back to capi-release 1.46.0 in cf-deployment.
  3. Teams that have been using the `release-candidate` branch of cf-deployment may notice problems in their pipelines,
  4. caused by the fact that capi-release 1.47.0 included a database migration that got rolled back as well.
  5. Steps provided here should help teams resolve this issue.
  6.  
  7. To un-bork your environment based on `release-candidate`,
  8. you can take the following steps:
  9. 1. SSH to the API VM so that you can target the database node:
  10. ```
  11. bosh ssh api/0
  12. ```
  13. 2. Install a mysql client
  14. ```
  15. sudo -i
  16. apt-get install mysql-client
  17. ```
  18. 3. Connect to the database
  19. ```
  20. mysql -h <host> -u <username> -p
  21. ```
  22. 4. Drop the `encyrption_key_label` column from the table:
  23. ```
  24. > alter table env_groups drop column encryption_key_label;
  25. > alter table service_brokers drop column encryption_key_label;
  26. > alter table service_bindings drop column encryption_key_label;
  27. > alter table service_instances drop column encryption_key_label;
  28. > alter table service_keys drop column encryption_key_label;
  29. > alter table apps drop column encryption_key_label;
  30. > alter table buildpack_lifecycle_buildpacks drop column encryption_key_label;
  31. > alter table buildpack_lifecycle_data drop column encryption_key_label;
  32. > alter table droplets drop column encryption_key_label;
  33. > alter table packages drop column encryption_key_label;
  34. > alter table tasks drop column encryption_key_label;
  35. ```
  36. 5. Make sure to remove the record of having run the migration,
  37. so that future capi-release versions will make sure to run it again:
  38. ```
  39. > delete from schema_migrations where filename like '201712%';
  40. > exit
  41. ```
  42. 6. Clean up after yourself:
  43. ```
  44. apt-get remove mysql-client
  45. exit
  46. ```
Add Comment
Please, Sign In to add comment