Skip to content

Some more fixes for lock_state and environment_state metrics

Reuben Pereira requested to merge rp/unset-lock-metric into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Content

  • Set lock_state to locked_post_deploy_migration_failed if post deploy migrations or the QA fails.

  • Set lock_state metric to 0 after deployment and QA completes successfully, for deployments and post-deploy migrations.

  • Set environment state to ready after deployment to gstg and gprd completes successfully, and after post-deploy migrations.

  • To allow the lock_state metric to be set to 0, modify the rake task to accept a nil lock_reason. When lock_reason is nil, it sets all metric values of the given environment to 0.

Author Check-list

  • Has documentation been updated?
Edited by Reuben Pereira

Merge request reports