Page MenuHomePhabricator

Decommission airflow-analytics
Closed, ResolvedPublic

Description

Are we're going to migrate the analytics DAGs to airflow-main, we can safely decommission airflow-analytics.wikimedia.org, as it's not being used.

Event Timeline

Change #1128785 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/dns@master] Drop airflow-analytics DNS records

https://gerrit.wikimedia.org/r/1128785

Change #1128786 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] Remove airflow-analytics from the ATS and cache configuration

https://gerrit.wikimedia.org/r/1128786

Change #1128787 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] Remove airflow-analytics from the IDP configuration

https://gerrit.wikimedia.org/r/1128787

Change #1128788 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] Remove the airflow-analytics kubeconfigs

https://gerrit.wikimedia.org/r/1128788

Change #1128789 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] Remove the airflow-analytics namespace from the operators tenant ns list

https://gerrit.wikimedia.org/r/1128789

Change #1128790 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] Remove the airflow-analytics deployemnt helmfile and values

https://gerrit.wikimedia.org/r/1128790

Change #1128791 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] Remove the airflow-analytics namespace

https://gerrit.wikimedia.org/r/1128791

Change #1128785 merged by Brouberol:

[operations/dns@master] Drop airflow-analytics DNS records

https://gerrit.wikimedia.org/r/1128785

Change #1128786 merged by Brouberol:

[operations/puppet@production] Remove airflow-analytics from the ATS and cache configuration

https://gerrit.wikimedia.org/r/1128786

Change #1128787 merged by Brouberol:

[operations/puppet@production] Remove airflow-analytics from the IDP configuration

https://gerrit.wikimedia.org/r/1128787

Change #1128789 merged by jenkins-bot:

[operations/deployment-charts@master] Remove the airflow-analytics namespace from the operators tenant ns list

https://gerrit.wikimedia.org/r/1128789

Change #1128790 merged by Brouberol:

[operations/deployment-charts@master] Remove the airflow-analytics deployemnt helmfile and values

https://gerrit.wikimedia.org/r/1128790

Change #1128791 merged by Brouberol:

[operations/deployment-charts@master] Remove the airflow-analytics namespace

https://gerrit.wikimedia.org/r/1128791

Change #1128788 merged by Brouberol:

[operations/puppet@production] Remove the airflow-analytics kubeconfigs

https://gerrit.wikimedia.org/r/1128788

Actually, let's reopen, as I still need to delete the buckets and the S3 users.

brouberol@stat1008:~$ s3cmd --access_key=$access_key --secret_key=$secret_key --host=rgw.eqiad.dpe.anycast.wmnet --region=dpe --host-bucket=no rb s3://postgresql-airflow-analytics.dse-k8s-eqiad/
Bucket 's3://postgresql-airflow-analytics.dse-k8s-eqiad/' removed
brouberol@stat1008:~$ s3cmd --access_key=$access_key --secret_key=$secret_key --host=rgw.eqiad.dpe.anycast.wmnet --region=dpe --host-bucket=no rb --recursive s3://logs.airflow-analytics.dse-k8s-eqiad
WARNING: Bucket is not empty. Removing all the objects from it first. This may take some time...
....

Switching the last command to the much faster

brouberol@an-launcher1002:~$ rclone --s3-access-key-id $access_key --s3-secret-access-key $secret_key purge s3dpe://logs.airflow-analytics.dse-k8s-eqiad
brouberol@cephosd1001:~$ sudo radosgw-admin user list
[
    "airflow-research",
    "mw-content-history-reconcile-enrich",
    "airflow-search",
    "btullis",
    "postgresql-airflow-ml",
    "airflow-main",
    "airflow-analytics-product",
    "airflow-ml",
    "research",
    "airflow-wmde",
    "airflow-analytics-test",
    "postgresql-airflow-wmde",
    "mw-content-history-reconcile-enrich-next",
    "postgresql-airflow-analytics",
    "postgresql-test-k8s",
    "airflow-analytics",
    "postgresql-airflow-analytics-product",
    "postgresql-airflow-main",
    "postgresql-airflow-analytics-test",
    "postgresql-airflow-platform-eng",
    "airflow-test-k8s",
    "postgresql-airflow-search",
    "airflow-platform-eng"
]
brouberol@cephosd1001:~$ sudo radosgw-admin user rm --uid airflow-analytics
brouberol@cephosd1001:~$ sudo radosgw-admin user rm --uid postgresql-airflow-analytics
brouberol@cephosd1001:~$ sudo radosgw-admin user list
[
    "airflow-research",
    "mw-content-history-reconcile-enrich",
    "airflow-search",
    "btullis",
    "postgresql-airflow-ml",
    "airflow-main",
    "airflow-analytics-product",
    "airflow-ml",
    "research",
    "airflow-wmde",
    "airflow-analytics-test",
    "postgresql-airflow-wmde",
    "mw-content-history-reconcile-enrich-next",
    "postgresql-test-k8s",
    "postgresql-airflow-analytics-product",
    "postgresql-airflow-main",
    "postgresql-airflow-analytics-test",
    "postgresql-airflow-platform-eng",
    "airflow-test-k8s",
    "postgresql-airflow-search",
    "airflow-platform-eng"
]
brouberol@cephosd1001:~$