~r00ta/maas:backport_add_asynchronous_wrapper_to_queueDynamicDNSUpdates_3.4.0

Last commit made on 2023-12-01
Get this branch:
git clone -b backport_add_asynchronous_wrapper_to_queueDynamicDNSUpdates_3.4.0 https://git.launchpad.net/~r00ta/maas
Only Jacopo Rota can upload to this branch. If you are Jacopo Rota please log in for upload directions.

Branch merges

Branch information

Name:
backport_add_asynchronous_wrapper_to_queueDynamicDNSUpdates_3.4.0
Repository:
lp:~r00ta/maas

Recent commits

80b6bfc... by Christian Grabowski

add asynchronous wrapper to queueDynamicDNSUpdates

3234f5e... by Alberto Donato

Prepare for 3.4.0 release

15c0dc2... by Christian Grabowski

always use the DomainInfo network for reverse zones and check IP belongs to it
(cherry picked from commit b3dae13ec9a6b14f8c5cf23fb01de897c72256ca)

c955852... by Christian Grabowski

use network ip and prefixlen of subnet when reverse zone is not given
(cherry picked from commit 6febd214b36cd3db4ff70540f7a25e01705fa5b2)

05450ee... by Peter Makowski

Update maas-ui to 359edef50
fix: import images lp#2031614 (#5200) (#5201)

53d5ac1... by Alexsander de Souza

restore target used by maas-release-tools

cdc4d8e... by Alexsander de Souza

update PPA for building the snap

8054aed... by Alberto Donato

Prepare for 3.4.0 RC2 release

7f8d9e9... by Alberto Donato

LP:2037524 fix bigint migration for IDs, exclude Fabric since 0 value is used there too

backport of ba319aecf from master

dd2c36b... 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)