~troyanov/maas:backport-cfb432e-3.4

Last commit made on 2023-10-16
Get this branch:
git clone -b backport-cfb432e-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-cfb432e-3.4
Repository:
lp:~troyanov/maas

Recent commits

8c9fba9... by Anton Troyanov

fix: force save model object changes

Resolves LP:2015411 StaticIPAddress matching query does not exist

(cherry picked from commit cfb432e6e41ab097950c9550b5c61d3ca6d6bbb2)

53d5ac1... by Alexsander Silva de Souza

restore target used by maas-release-tools

cdc4d8e... by Alexsander Silva 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)

0e3982d... by Jacopo Rota

add retry-after header in 409 responses - cherry pick e8aa5d01a5272c536a2aa3e23bd3fc11b580bd90

d15060d... by Peter Makowski

Update maas-ui to 5565f5f0f
fix(websocket): refetch on reconnect MAASENG-2142 (#5146) 3.4 backport (#5152)

- add `connectedCount` to redux store
- stop WebSocket ping on disconnect
- run invalidateQueries on disconnect
- run `useFetchActions` hook on reconnect
- test: update Preferences.test.tsx

8a3f6c8... by Ubuntu <email address hidden>

Fix reverse order ip address

When controller's nic has several ip and virtual ip,
SQL collect them reverse order. this fixes it.

backport of cfe8cf628 from master

0ff66ff... by Peter Makowski

Update maas-ui to 4f99547eb
fix: storage layout allocated machines lp#1928623 (#5136) (#5143)