cf-ops-automation
cf-ops-automation copied to clipboard
Deletion of a deployment transient fails associated deployment pipeline
When a deployment X is deleted from the paas-secret repo, the associated pipeline triggers and fails in execute-deploy-script
(on missing deleted paas-secret files), becoming red. It is only after that update-pipeline
gets executed that the corresponding X bosh resource (e.g. deploy-cassandra-guid
) gets removed by the update-pipeline-generated
resource.
Solutions:
- live with it for now: ignore polluting red pipeline (and future red alerts)
- COAB performs async delete
- step 1: deletes enable-deployment.yml: triggers update-pipeline & removal of the deployment
- Step 2: finish paas-secret clean up (remaining files)
- modify delete support in COA
- enable-deployment.yml supports a new flag
- style: declarative vs imperative
- declarative
- desired_state=enabled|disabled
- expires_at=date
- imperative
- action=delete
- action=recover
- declarative
-
- optional async paas-secret clean up
- in delete pipeline
- in concourse execute deploy.sh (in each deployment)
- optional async paas-secret clean up
- impacts of async COA paas-secret clean up:
- mixed ownership of files in paas-secret
- currently service_instances owned by paas-secret
- mixed ownership of files in paas-secret
- impact of lack of clean up of paas-secret files
- possible colision on service-id recycling by CC API
- cognitive load on ops team
- style: declarative vs imperative
- enable-deployment.yml supports a new flag
Possible related stories
- undelete
- dev deployment expiration/leases
- usage based billing (emited by the deployment).
Maybe related to #146