Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Corrections to the catalog & ingestion server deployment run books (#2690)

Madison Swain-Bowdencb4c934b75be
diff --git a/documentation/catalog/guides/deploy.md b/documentation/catalog/guides/deploy.md
index 288ab0824..c16ebb94c 100644
--- a/documentation/catalog/guides/deploy.md
+++ b/documentation/catalog/guides/deploy.md
@@ -2,29 +2,39 @@
## Setup
-1. Check [Airflow](https://airflow.openverse.engineering/home?tags=data_refresh)
- to make sure a data refresh isn't occurring.
+1. Check
+ [Airflow](https://airflow.openverse.engineering/dagrun/list/?_flt_3_state=running)
+ to make sure no DAGs are running.
+1. Visit the
+ [Catalog Docker image](https://github.com/WordPress/openverse/pkgs/container/openverse-catalog)
+ page and copy the SHA of the image tagged `latest`.
1. Release the app via
[GitHub workflow](https://github.com/WordPress/openverse/actions/workflows/release-app.yml).
Click the "Run workflow" button, choose "catalog" from the dropdown, and
- supply the SHA identified in step 1.
+ supply the SHA identified in the previous step
## Deployment
-1. After the app is built and tagged, deploy staging:
- 1. Checkout the
- [infrastructure repository](https://github.com/wordpress/openverse-infrastructure)
- and bump the ingestion server version with the `just bump dev catalog`
- command.
- 1. `just apply dev catalog` and verify the plan before deploying.
-1. Deploy production:
- 1. `just bump prod catalog` command.
- 1. `just apply prod catalog` and verify the plan before deploying.
+The catalog only exists in production, so there is no staging deployment. After
+the app is built and tagged, deploy production:
+
+1. Checkout the
+ [infrastructure repository](https://github.com/wordpress/openverse-infrastructure)
+ and bump the catalog version with the `just bump prod catalog-airflow`
+ command.
+1. Once you've verified that no DAGs are running, update the value of
+ `running_dags_cleared` to `true` in the
+ [production module declaration](https://github.com/WordPress/openverse-infrastructure/blob/27c41ede9b24991909194e0a6477f6b11fceac0c/environments/prod/catalog-airflow.tf#L33).
+1. `just apply prod catalog-airflow` and verify the plan before deploying.
+1. Restore the value of `running_dags_cleared` back to `false`.
## Post-deployment steps
1. Check for any Sentry errors in the maintainer's `#openverse-alerts` channel,
or in the Sentry UI.
+1. Ensure that Airflow is accessible at <https://airflow.openverse.engineering>.
+1. If an Airflow version upgrade was deployed, ensure that the version is
+ correct in the Airflow UI (bottom left of the footer on any page).
1. Review and Approve the automatically-generated changelog pull request in the
repository.
1. Push up a PR to the infrastructure repository with the Terraform changes you
diff --git a/documentation/ingestion_server/guides/deploy.md b/documentation/ingestion_server/guides/deploy.md
index 59912fe33..82557f6e6 100644
--- a/documentation/ingestion_server/guides/deploy.md
+++ b/documentation/ingestion_server/guides/deploy.md
@@ -9,7 +9,7 @@
page and copy the SHA of the image tagged `latest`.
1. Release the app via
[GitHub workflow](https://github.com/WordPress/openverse/actions/workflows/release-app.yml).
- Click the "Run workflow" button, choose "ingestion server" from the dropdown,
+ Click the "Run workflow" button, choose "ingestion_server" from the dropdown,
and supply the SHA identified in the previous step.
## Deployment