Commit Graph

79 Commits

Author SHA1 Message Date
Joshua Boniface 6d75b33d17 Correct bugs with Patroni tasks on Ansible 2.14 2024-11-07 02:01:03 -05:00
Joshua Boniface 36fcdd151b Improve PostgreSQL migration
Just dump and reimport the database, it's easier.
2024-10-29 13:46:22 -04:00
Joshua Boniface 463c1985d3 Add additional wait time 2024-10-15 11:18:18 -04:00
Joshua Boniface 1925100589 Add gunicorn install to update playbook 2024-09-19 16:16:37 -04:00
Joshua Boniface 506d2ada49 Fix typo in script 2024-08-30 11:07:49 -04:00
Joshua Boniface ce82f72241 Ensure schema updates are run after upgrade 2024-08-29 02:57:12 -04:00
Joshua Boniface f85136ed62 Add final role runs to normalize cluster 2024-08-29 02:33:30 -04:00
Joshua Boniface f00b43f20f Add extra waits before unsetting maintenance
Avoids issues after restarting the API.
2024-08-28 12:42:01 -04:00
Joshua Boniface 4e59ad5efe Remove obsolete upgrade script
Debian 11 is now deprecated.
2024-08-28 12:41:50 -04:00
Joshua Boniface b395f47852 Ensure pvcapid is restarted after migrations 2024-08-20 09:23:37 -04:00
Joshua Boniface 7f32414675 Add role run to initial D12 upgrade
Avoids errors failing out later if there are any issues with these
roles, and ensures the system is fully updated before the actual Debian
upgrades.
2024-06-29 02:31:43 -04:00
Joshua Boniface e26a2f3ca5 Update aptitude -> apt references 2024-06-29 01:33:36 -04:00
Joshua Boniface 7136229536 Add wait to service restarts 2024-03-26 17:11:21 -04:00
Joshua Boniface e326639e18 Become primary and apply migrations on first node 2024-02-12 11:51:03 -05:00
Joshua Boniface 4a5727e671 Remove old legacy maintenance sets
All clusters I know of are long-updated, so this is no longer needed.
2024-01-30 10:44:41 -05:00
Joshua Boniface 7c21763994 Add final restart of worker/health daemons
Ensures that schema updates are properly applied.
2023-12-27 13:24:31 -05:00
Joshua Boniface aa6488854a Add forced upgrade of vhostmd 2023-12-26 01:08:53 -05:00
Joshua Boniface 010ecefe16 Ensure pvchealthd is restarted as well 2023-12-10 00:13:42 -05:00
Joshua Boniface c07b835e33 Fix bad variable 2023-12-10 00:07:08 -05:00
Joshua Boniface 54c9313668 Force all when updating PVC packages
Avoids the overwrite issue in <0.9.83 to 0.9.83.
2023-12-10 00:04:02 -05:00
Joshua Boniface c488b04939 Ensure new packages are installed as well 2023-12-09 23:59:42 -05:00
Joshua Boniface 82d2f13981 Add legacy config cleanup to playbook 2023-12-01 02:17:42 -05:00
Joshua Boniface 15fc3261de Add PVC role tasks to update-pvc-daemons
Ensures that configurations are always updated whenever the daemons are.
This will be necessary for 0.9.83 with the fundamental change from
pvcXd.yaml to pvc.conf configuration formats, while also ensuring that
future daemon updates also include any configuration changes that may be
pending in the group_vars.
2023-12-01 01:37:39 -05:00
Joshua Boniface 7dbabf76c5 Remove pycache entries on update 2023-11-25 00:51:13 -05:00
Joshua Boniface fef97f0b04 Adjust name of pvcapid-worker to pvcworkerd 2023-11-15 20:32:23 -05:00
Joshua Boniface 677287fd2e Add additional wait after stopping OSDs
Allows the Ceph cluster to properly reconcile first.
2023-10-24 10:42:15 -04:00
Joshua Boniface d0bcbf123f Move kernel cleanup to after reboot
Otherwise, modules might fail etc. when the kernel package is purged
before reboot causing odd failures.
2023-10-24 10:41:47 -04:00
Joshua Boniface 7fe682aa60 Handle freshness for all 3 types separately
If microcode was missing, checking the other two would be UNKN and thus
not restart. But, if microcode *is* present, we want to restart for
either of the other two as well.

So separate into 3 distinct checks and restart if any one is changed.
2023-10-24 10:41:47 -04:00
Joshua Boniface 6d05f40242 Fix import for newer Ansible versions 2023-09-18 09:42:01 -04:00
Joshua Boniface 6908f7070c Properly disable autoscaling PGs 2023-09-01 15:42:30 -04:00
Joshua Boniface b267db8474 Loop over pvcnoded restart 2023-09-01 15:42:30 -04:00
Joshua Boniface 1f4cd92d63 Fix bad calls to node primary 2023-09-01 15:42:30 -04:00
Joshua Boniface c9d1edf63d Disable PG autoscaling after upgrade 2023-09-01 15:42:30 -04:00
Joshua Boniface 5b98e03f5a Fix bad delegate_to 2023-09-01 15:42:30 -04:00
Joshua Boniface b88b79fa30 Update minimum PVC version 2023-09-01 15:42:30 -04:00
Joshua Boniface 0c28d3b42f Ensure confold force during install 2023-09-01 15:42:30 -04:00
Joshua Boniface 3fc90c90a7 Add comments to script steps 2023-09-01 15:42:30 -04:00
Joshua Boniface d92acb7e6f Make D10->D12 upgrade steps noninteractive 2023-09-01 15:42:30 -04:00
Joshua Boniface 1e497413e8 Remove extra whitespace 2023-09-01 15:42:30 -04:00
Joshua Boniface 37ebdaac9c Add PVC upgrade to Debian 12 playbook 2023-09-01 15:42:30 -04:00
Joshua Boniface 25ab984c9b Revert "Disallow Deb10 -> Deb12 upgrades"
This reverts commit 6e56dd3e4a.
2023-09-01 15:42:30 -04:00
Joshua Boniface 1dac151f2f Disallow Deb10 -> Deb12 upgrades
It doesn't work properly, errors in libc6/perl.
2023-09-01 15:42:30 -04:00
Joshua Boniface 7a2d5ac0c4 Ensure PVC daemons are updated before reboots 2023-09-01 15:42:30 -04:00
Joshua Boniface d3391aa080 Move to new maintenance mode and check legacy first 2023-09-01 15:42:29 -04:00
Joshua Boniface 1f9a74301f Alter deb12 upgrade 2023-09-01 15:42:29 -04:00
Joshua Boniface 642813e4e3 Remove obsolete cset configurations 2023-09-01 15:42:29 -04:00
Joshua Boniface e3c1d28674 Add upgrade to Debian 12 playbook 2023-09-01 15:42:29 -04:00
Joshua Boniface 7e829f04ae Restore unknown state as not-reboot 2023-09-01 15:42:29 -04:00
Joshua Boniface 2c63500011 Split upgrade stage and add dpkg cleanup
Avoid problems if one or more nodes are upgrading libvirt/QEMU and live
migrations fail.
2023-09-01 15:42:29 -04:00
Joshua Boniface 7a0c596281 Add node daemon confirmation before continue 2023-09-01 15:42:29 -04:00