Harden installer dependencies and prepare the 0.11 release candidate
Coulobre Panel CI / Checks (Python 3.12) (pull_request) Canceled after 0s
Coulobre Panel CI / Checks (Python 3.14) (pull_request) Canceled after 0s

This commit is contained in:
parkel committed 2026-11-23 00:23:19 +01:00
1 parent 2f686b6499
commit f5e8e84e3c
6 files changed
+165 -19

No files matched your search

+81 -7
View File
@@ -542,7 +542,8 @@ From the unpacked source release, upgrade the existing virtual environment
and use the [management command helper](#prepare-the-panel).
```sh
sudo /opt/coulobre/bin/pip install --upgrade '.[server,mariadb]'
sudo /opt/coulobre/bin/python -m pip install --only-binary=:all: 'pip>=26.2'
sudo /opt/coulobre/bin/python -m pip install --upgrade '.[server,mariadb]'
panel_manage migrate --noinput
panel_manage collectstatic --noinput
```
@@ -587,9 +588,9 @@ without service checks, follow [the collector setup](#monitor-local-and-remote-s
### Install a compatible release from the panel
The installer enables **Updates** for single-server deployments. On an
existing installer-managed single server, install the updater units from the
v0.10.1 source release after upgrading the package:
The installer enables **Updates** for installer-managed panels. On an
existing panel, install the updater units from the source release matching
the installed package:
```sh
sudo install -m 0644 deploy/systemd/coulobre-update.socket \
@@ -602,9 +603,10 @@ A superuser with a verified second factor can choose a compatible release
from **Server and services → Updates**. The updater uses the official Gitea
release over HTTPS and checks the wheel against its published SHA-256 hash.
It supports the installer-managed local MariaDB database and installer
layout. Use the in-place procedure for linked mail or DNS receivers, custom
service unit changes, and releases requiring new dependencies. The update
manifest lists the tested starting versions.
layout. The update manifest lists the tested starting versions. Use the
in-place procedure for custom service unit changes and for environments
missing a dependency required by the target version. From 0.11 onward, the
updater checks installed dependencies before stopping panel services.
The panel and its workers pause during the upgrade. Refresh **Updates** after
the panel returns. The latest update status names the recovery directory in
@@ -623,6 +625,78 @@ verify sign-in and service health. Archive `status.json` as root after
recovery to allow a later update. Check that `panel.sql` and `venv` exist
before restoring from a directory created by an interrupted update.
### Coordinate a release across linked mail and DNS receivers
Use the in-place procedure for the first upgrade from 0.10 to 0.11 in a
linked deployment. The older web updater supports single-server upgrades.
Bring the receiver and all attached panels to the same release before
resuming provisioning. For manually configured relays, including separate
mail credential and archive relays, use the in-place procedure for the
whole fleet.
The **Updates** page in 0.11 reports the release, host, and status probe
protocol of each installer-enrolled receiver. Protocol 1 reports readiness
and release. Protocol 2 also reports a staged maintenance target. This is
a read-only addition to the probe. The mail and DNS apply request formats
keep their existing per-operation versions. Active provisioning requires
matching package releases. During a coordinated upgrade, the receiver
keeps provisioning requests paused while panels are on different releases.
Normal mail delivery, IMAP, and existing DNS answers can continue while
the provisioning socket is stopped or paused.
1. At each receiver, list the authorized panel keys. Match each fingerprint
to a panel and confirm its installed version on that host. Include every
key, including panels operated by another team. Back up the panels, the
receiver packages, and the managed mail or DNS configuration. Pause
new provisioning requests and let current jobs finish.
```sh
sudo /opt/coulobre/bin/coulobre-node-setup list-panels dns
```
2. Save a root-owned JSON inventory with mode 0600, the target package version and a
fingerprint-to-version map. Replace the fingerprints and versions with
your actual values. Make a separate inventory for each role on a host.
```json
{
"target": "0.11.1rc1",
"panels": {
"SHA256:panel-one-fingerprint": "0.11.0rc1",
"SHA256:panel-two-fingerprint": "0.11.0rc1"
}
}
```
3. Stop the receiver socket and let instances of the corresponding apply
service finish. Stage the inventory, update the receiver to the target,
then start its socket again. Replace `dns` with `mail` for a mail receiver.
The staged receiver answers status probes and rejects apply requests.
```sh
sudo systemctl stop coulobre-dns-apply.socket
sudo /opt/coulobre/bin/coulobre-node-setup begin-maintenance dns /root/dns-upgrade.json
# Install the reviewed target package using its release instructions.
sudo systemctl start coulobre-dns-apply.socket
```
4. Refresh **Updates** on each panel. Install the target when all its
receivers report that release in maintenance mode and the compatible
release is offered. Use the in-place procedure if its update requires
additional dependencies or unit changes. Keep the receivers staged if
any panel upgrade is interrupted. Check the recovery files and repair or
roll back before reopening provisioning.
5. Once every panel is running and verified at the target, update each
inventory with the observed installed versions. Finish maintenance on each
receiver, then resume provisioning and retry any affected operations.
The command checks the receiver release and the inventory against the
current authorized keys. The receiver administrator is responsible for
checking the installed version reported by every panel operator.
```sh
sudo /opt/coulobre/bin/coulobre-node-setup finish-maintenance dns /root/dns-upgrade.json
```
### Upgrade from v0.9 to v0.10
Use the in-place procedure above with the v0.10 source release. Keep a copy