Skip to content

staging/counters: Decommission counters rpc service

Antoine R. Dumont requested to merge decommission-staging-counters into production

But keep the redis backend.

octo-diff tests happy

Wants to decommission gunicorn-swh-storage (and its refresh cron) in counters0.staging.

swh-octodiff counters0.staging
*** Running octocatalog-diff on host counters0.internal.staging.swh.network
I, [2023-12-13T10:15:08.577486 #666932]  INFO -- : Catalogs compiled for counters0.internal.staging.swh.network
I, [2023-12-13T10:15:08.815918 #666932]  INFO -- : Diffs computed for counters0.internal.staging.swh.network
diff origin/production/counters0.internal.staging.swh.network current/counters0.internal.staging.swh.network
*******************************************
- Concat::Fragment[nginx-metrics-500-6666cd76f96956469e7be39d750cc7d9]
*******************************************
- Concat::Fragment[nginx-metrics-500-ae3b848d2daecffc635ae20b0b882d8f]
*******************************************
- Concat::Fragment[nginx-metrics-footer]
*******************************************
- Concat::Fragment[nginx-metrics-header]
*******************************************
- Concat::Fragment[nginx-swh-counters-500-6666cd76f96956469e7be39d750cc7d9]
*******************************************
- Concat::Fragment[nginx-swh-counters-default-500-6666cd76f96956469e7be39d750cc7d9]
*******************************************
- Concat::Fragment[nginx-swh-counters-default-footer]
*******************************************
- Concat::Fragment[nginx-swh-counters-default-header]
*******************************************
- Concat::Fragment[nginx-swh-counters-footer]
*******************************************
- Concat::Fragment[nginx-swh-counters-header]
*******************************************
- Concat::Fragment[swh-counters-gunicorn_upstream_footer]
*******************************************
- Concat::Fragment[swh-counters-gunicorn_upstream_header]
*******************************************
- Concat::Fragment[swh-counters-gunicorn_upstream_member_gunicorn-counters]
*******************************************
- Concat[/etc/nginx/conf.d/swh-counters-gunicorn-upstream.conf]
*******************************************
- Concat[/etc/nginx/sites-available/nginx-metrics.conf]
*******************************************
- Concat[/etc/nginx/sites-available/nginx-swh-counters-default.conf]
*******************************************
- Concat[/etc/nginx/sites-available/nginx-swh-counters.conf]
*******************************************
- Concat_file[/etc/nginx/conf.d/swh-counters-gunicorn-upstream.conf]
*******************************************
- Concat_file[/etc/nginx/sites-available/nginx-metrics.conf]
*******************************************
- Concat_file[/etc/nginx/sites-available/nginx-swh-counters-default.conf]
*******************************************
- Concat_file[/etc/nginx/sites-available/nginx-swh-counters.conf]
*******************************************
- Concat_file[profile::cron::default]
*******************************************
- Concat_fragment[nginx-metrics-500-6666cd76f96956469e7be39d750cc7d9]
*******************************************
- Concat_fragment[nginx-metrics-500-ae3b848d2daecffc635ae20b0b882d8f]
*******************************************
- Concat_fragment[nginx-metrics-footer]
*******************************************
- Concat_fragment[nginx-metrics-header]
*******************************************
- Concat_fragment[nginx-swh-counters-500-6666cd76f96956469e7be39d750cc7d9]
*******************************************
- Concat_fragment[nginx-swh-counters-default-500-6666cd76f96956469e7be39d750cc7d9]
*******************************************
- Concat_fragment[nginx-swh-counters-default-footer]
*******************************************
- Concat_fragment[nginx-swh-counters-default-header]
*******************************************
- Concat_fragment[nginx-swh-counters-footer]
*******************************************
- Concat_fragment[nginx-swh-counters-header]
*******************************************
- Concat_fragment[profile::cron::default::_header]
*******************************************
- Concat_fragment[profile::cron::refresh_counters_cache]
*******************************************
- Concat_fragment[swh-counters-gunicorn_upstream_footer]
*******************************************
- Concat_fragment[swh-counters-gunicorn_upstream_header]
*******************************************
- Concat_fragment[swh-counters-gunicorn_upstream_member_gunicorn-counters]
*******************************************
- Exec[systemd-tmpfiles]
*******************************************
- File[/etc/cron.d/puppet-default]
*******************************************
- File[/etc/default/prometheus-nginx-exporter]
*******************************************
- File[/etc/gunicorn/instances/swh-counters.cfg]
*******************************************
- File[/etc/gunicorn/instances]
*******************************************
- File[/etc/gunicorn/logconfig.ini]
*******************************************
- File[/etc/gunicorn]
*******************************************
- File[/etc/nginx/conf.d/error_status-map.conf]
*******************************************
- File[/etc/nginx/conf.d]
*******************************************
- File[/etc/nginx/conf.mail.d]
*******************************************
- File[/etc/nginx/conf.stream.d]
*******************************************
- File[/etc/nginx/mime.types]
*******************************************
- File[/etc/nginx/nginx.conf]
*******************************************
- File[/etc/nginx/sites-available]
*******************************************
- File[/etc/nginx/sites-enabled/nginx-metrics.conf]
*******************************************
- File[/etc/nginx/sites-enabled/nginx-swh-counters-default.conf]
*******************************************
- File[/etc/nginx/sites-enabled/nginx-swh-counters.conf]
*******************************************
- File[/etc/nginx/sites-enabled]
*******************************************
- File[/etc/nginx/snippets]
*******************************************
- File[/etc/nginx/streams-available]
*******************************************
- File[/etc/nginx/streams-enabled]
*******************************************
- File[/etc/nginx]
*******************************************
- File[/etc/softwareheritage/counters/server.yml]
*******************************************
- File[/etc/softwareheritage/counters]
*******************************************
- File[/etc/systemd/system/gunicorn-swh-counters.service]
*******************************************
- File[/etc/systemd/system/gunicorn.service]
*******************************************
- File[/etc/systemd/system/prometheus-nginx-exporter.service.d/ordering.conf]
*******************************************
- File[/etc/systemd/system/prometheus-nginx-exporter.service.d/restart.conf]
*******************************************
- File[/etc/systemd/system/prometheus-nginx-exporter.service.d]
*******************************************
- File[/etc/tmpfiles.d/gunicorn-swh-counters.conf]
*******************************************
- File[/etc/tmpfiles.d/gunicorn.conf]
*******************************************
- File[/etc/tmpfiles.d/nginx.conf]
*******************************************
- File[/run/nginx/client_body_temp]
*******************************************
- File[/run/nginx/proxy_temp]
*******************************************
- File[/run/nginx]
*******************************************
- File[/srv/softwareheritage/counters]
*******************************************
- File[/tmp/nginx.d]
*******************************************
- File[/tmp/nginx.mail.d]
*******************************************
- File[/usr/local/bin/refresh_counters_cache.sh]
*******************************************
- File[/var/log/nginx]
*******************************************
- Gunicorn::Instance[swh-counters]
*******************************************
- Icinga2::Object::Service[swh-counters api (local on counters0.internal.staging.swh.network)]
*******************************************
- Icinga2::Object::Service[swh-counters api (remote on counters0.internal.staging.swh.network)]
*******************************************
- Nginx::Resource::Location[/metrics]
*******************************************
- Nginx::Resource::Location[nginx-metrics-default]
*******************************************
- Nginx::Resource::Location[nginx-swh-counters-default-default]
*******************************************
- Nginx::Resource::Location[nginx-swh-counters-default]
*******************************************
- Nginx::Resource::Map[error_status]
*******************************************
- Nginx::Resource::Server[nginx-metrics]
*******************************************
- Nginx::Resource::Server[nginx-swh-counters-default]
*******************************************
- Nginx::Resource::Server[nginx-swh-counters]
*******************************************
- Nginx::Resource::Upstream::Member[gunicorn-counters]
*******************************************
- Nginx::Resource::Upstream[swh-counters-gunicorn]
*******************************************
- Package[gunicorn3]
*******************************************
- Package[nginx]
*******************************************
- Package[prometheus-nginx-exporter]
*******************************************
- Package[python3-swh.counters]
*******************************************
- Profile::Cron::D[refresh_counters_cache]
*******************************************
- Profile::Cron::File[default]
*******************************************
- Profile::Prometheus::Export_scrape_config[nginx]
*******************************************
- Profile::Prometheus::Export_scrape_config[swh-counters_counters0.internal.staging.swh.network]
*******************************************
- Profile::Swh::Deploy::Rpc_server[counters]
*******************************************
- Service[gunicorn-swh-counters]
*******************************************
- Service[gunicorn]
*******************************************
- Service[nginx]
*******************************************
- Service[prometheus-nginx-exporter]
*******************************************
- Systemd::Dropin_file[prometheus-nginx-exporter/ordering.conf]
*******************************************
- Systemd::Dropin_file[prometheus-nginx-exporter/restart.conf]
*******************************************
- Systemd::Tmpfile[gunicorn-swh-counters.conf]
*******************************************
- Systemd::Tmpfile[gunicorn.conf]
*******************************************
- Systemd::Tmpfile[nginx.conf]
*******************************************
- Systemd::Unit_file[gunicorn-swh-counters.service]
*******************************************
- Systemd::Unit_file[gunicorn.service]
*******************************************
*** End octocatalog-diff on counters0.internal.staging.swh.network

No changes in counters1.production

swh-octodiff counters1.prod
*** Running octocatalog-diff on host counters1.internal.softwareheritage.org
I, [2023-12-13T10:15:39.935855 #678095]  INFO -- : Catalogs compiled for counters1.internal.softwareheritage.org
I, [2023-12-13T10:15:40.237487 #678095]  INFO -- : Diffs computed for counters1.internal.softwareheritage.org
I, [2023-12-13T10:15:40.237523 #678095]  INFO -- : No differences
*** End octocatalog-diff on counters1.internal.softwareheritage.org

Refs. swh/infra/sysadm-environment#5179 (closed)

Merge request reports