Skip to content

staging/cassandra: Add cron task for paxos repair

Guillaume Samson requested to merge paxos_timer into production

Related to swh/infra/sysadm-environment#5389

These modifications will deploy a systemd service and timer to execute nodetool repair --paxos-only hourly on each nodes of the cassandra staging cluster.
The paxos table have been excluded from the repair launched by reaper.

octocatalog-diff
*** Running octocatalog-diff on host cassandra2.internal.staging.swh.network
I, [2024-12-05T09:54:45.855522 #129147]  INFO -- : Catalogs compiled for cassandra2.internal.staging.swh.network
I, [2024-12-05T09:54:46.040061 #129147]  INFO -- : Diffs computed for cassandra2.internal.staging.swh.network
diff origin/production/cassandra2.internal.staging.swh.network current/cassandra2.internal.staging.swh.network
*******************************************
+ File[/etc/systemd/system/paxos-repair.service] =>
   parameters =>
     "content": "# Managed by puppet class profile::cassandra::instance\n# Change...
     "ensure": "file",
     "group": "root",
     "mode": "0444",
     "notify": "Class[Systemd::Systemctl::Daemon_reload]",
     "owner": "root",
     "show_diff": true
*******************************************
+ File[/etc/systemd/system/paxos-repair.timer] =>
   parameters =>
     "content": "[Install]\nWantedBy=timers.target\n\n[Timer]\nOnCalendar=hourly\...
     "ensure": "file",
     "group": "root",
     "mode": "0444",
     "notify": [
       "Class[Systemd::Systemctl::Daemon_reload]",
       "Service[paxos-repair.timer]"
     ],
     "owner": "root",
     "show_diff": true
*******************************************
+ Service[paxos-repair.timer] =>
   parameters =>
     "enable": true,
     "ensure": true,
     "provider": "systemd"
*******************************************
+ Systemd::Timer[paxos-repair.timer] =>
   parameters =>
     "active": true,
     "enable": true,
     "ensure": "present",
     "group": "root",
     "mode": "0444",
     "owner": "root",
     "path": "/etc/systemd/system",
     "service_content": "# Managed by puppet class profile::cassandra::instance\n...
     "service_unit": "paxos-repair.service",
     "show_diff": true,
     "timer_content": "[Install]\nWantedBy=timers.target\n\n[Timer]\nOnCalendar=h...
*******************************************
+ Systemd::Unit_file[paxos-repair.service] =>
   parameters =>
     "content": "# Managed by puppet class profile::cassandra::instance\n# Change...
     "ensure": "present",
     "group": "root",
     "mode": "0444",
     "owner": "root",
     "path": "/etc/systemd/system",
     "show_diff": true
*******************************************
+ Systemd::Unit_file[paxos-repair.timer] =>
   parameters =>
     "active": true,
     "content": "[Install]\nWantedBy=timers.target\n\n[Timer]\nOnCalendar=hourly\...
     "enable": true,
     "ensure": "present",
     "group": "root",
     "mode": "0444",
     "owner": "root",
     "path": "/etc/systemd/system",
     "show_diff": true
*******************************************
*** End octocatalog-diff on cassandra2.internal.staging.swh.network

Merge request reports

Loading