~troyanov/maas:backport-ff91231-3.4

Last commit made on 2023-09-25
Get this branch:
git clone -b backport-ff91231-3.4 https://git.launchpad.net/~troyanov/maas
Only Anton Troyanov can upload to this branch. If you are Anton Troyanov please log in for upload directions.

Branch merges

Branch information

Name:
backport-ff91231-3.4
Repository:
lp:~troyanov/maas

Recent commits

48c112a... by Anton Troyanov

fix: change database owner

MAAS requires $dbc_dbuser to be an owner of $dbc_dbname.
One of the reasons is to be able to create new schemas (CREATE SCHEMA).

This is not new and documentation mentions the following configuration step:
```
sudo -u postgres \
  createdb -O \
  "$MAAS_DBUSER" \
  "$MAAS_DBNAME"
```

Unfortunately dbconfig-common used by MAAS configures `postgres` user as the
owner of `maasdb`.

Starting from dbconfig-common 2.0.22 the owner of the database
will be PostgreSQL user ($dbc_dbuser) [0]. For us this is the desired behavior.

Because dbconfig-common 2.0.22 is not available in 22.04, we have to fix
it ourselves for new installations and handle this case during upgrades
via deb packages.

In situations when MAAS cannot fix database ownership automatically we
want to inform MAAS user via deprecation notice [3].

[0]: https://salsa.debian.org/debian/dbconfig-common/-/blob/master/debian/changelog#L21
[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010923
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021791
[3]: https://maas.io/deprecations/MD4

(cherry picked from commit ff9123154bd5041010f9032be7be8814d5e413cd)

4befad6... by Jacopo Rota

Backport of e0a86ecd5863a8f8aa6e8342bb0801ac248e0e86 - Fix secret permissions

dc1b6c3... by Adam Collard

[openapi] Pin jsonschema to avoid breakage

Backport e63992574787426586e0d09e6e6e40b6f21e2137

4bc2c57... by Peter Makowski

Update maas-ui to 067de9f80
fix: keep websocket connection alive (#5047) (#5048) 3.4 backport

fix: keep websocket connection alive by sending a ping message every 50 seconds
- setup heartbeat ping/pong message handlers

358798b... by Bill Wear

Update maas-offline-docs to 4dcdd456
rationalize filenames, titles, and html titles

ad01538... by Peter Makowski

Update maas-ui to e90bd9aed
fix: machine list pagination (#5029) lp#2025375 (#5030)

89901d5... by Alberto Donato

Prepare for 3.4.0 RC1 release

cc6f74f... by Christian Grabowski

LP:2012801: handle no boot interface in DNS record generation

backport of d45999a31 from master

d49d98b... by Bill Wear

Update maas-offline-docs to 32e02f3c
add fix for bug 2003812

fbeaeb8... by Peter Makowski

Update maas-ui to 9f7092530
refactor: machine slice on deleteNotify (#5013) (#5018)