Add status checks for managed MariaDB databases

This commit is contained in:
parkel committed 2026-11-19 23:01:33 +01:00
1 parent dde8c93172
commit d30c31c343
4 files changed
+282 -51

No files matched your search

+24
View File
@@ -84,6 +84,30 @@ complete an interrupted first installation. Coulobre uses its local registry
and a database ownership marker to distinguish managed databases from existing
resources.
### Check a database installation
Run the following command on the MariaDB node with the same manifest and socket
used for installation.
```sh
sudo /opt/coulobre/bin/coulobre-database-node status coulobre-database-1.json
```
The read-only check verifies the local registry, the database ownership marker
and the application's direct MariaDB grants. It then connects over the local
socket with the stored application credentials and selects the database. The
JSON report includes the database and login names, the state, and a diagnostic
message when the installation needs attention.
| State | Exit code | Meaning |
| --- | --- | --- |
| `configured` | 0 | All checks passed. |
| `not_installed` | 2 | The registry, database, and login are absent. |
| `needs_attention` | 2 | An installation is incomplete or differs from the expected configuration. |
Exit code `1` indicates an invalid manifest or an unavailable check, for example
when the MariaDB administrative connection fails.
## Request an Apache configuration preview
Start RabbitMQ and set `COULOBRE_BROKER_URL` to its AMQP URL. The development