~r00ta/maas:lp-2058273-sync-bootresources-deterministic-3.5

Last commit made on 2024-03-19
Get this branch:
git clone -b lp-2058273-sync-bootresources-deterministic-3.5 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:
lp-2058273-sync-bootresources-deterministic-3.5
Repository:
lp:~r00ta/maas

Recent commits

6c002aa... by Jacopo Rota

fix: lp-2058273. Make the sync-bootresources workflow deterministic

8fd8a74... by Jacopo Rota

fix: lp-2057748. The UI provides the keyring data file content as a base64 encoded string. On the backend we have to decode the string with base64 accordingly.

(cherry-picked from 046c7a74cc190bcf6713bb274ac152412978764d)

365a659... by Anton Troyanov

fix: /run/maas should be owned by maas

`/run` is usually a tmpfs mount, and it is not persistent across reboots, so
`/run/maas` should not be created using .dirs, .install or .postinst scripts.

MAAS has various services that store their directories and files under
`/run/maas`, but because some services are run as root (e.g. dhcp), this leads
to ownership issues when `mkdir -p` is used (e.g. DHCP will create
`/run/maas/dhcp`)

In order to solve ownership issue, this commit changes DHCP service directory
to `/run/maas-dhcp` while keeping `/run/maas` only for files related to MAAS
itself (not external 3rd party services)

Resolves LP:2056222
Resolves LP:2056225

(cherry picked from commit 3b58876f7dbf6d4b563a36a16282a51876c28255)

dbce2b4... by Jacopo Rota

fix: lp-2058037. Ensure get-bootresourcefile-endpoints activity fails if the region is not exposing its ip yet.

(cherry-picked from 81a99768c3098a9fbd76f8de1e27ea8433af04ba)

a4e6c83... by Peter Makowski

Update maas-ui to 2384eb408
fix: cannot stop importing images MAASENG-2864 (#5351)

92bfa65... by Alexsander de Souza

fix(bootresource): lp-2057979. Avoid workflow id clash.

ID must be unique within a namespace

(cherry picked from commit 069e184b0fb96044079d6f75a7ad4f6d1e974494)

ab752d1... by Alexsander de Souza

refactor(bootresources): show prettier error messages

don't show complete stacktraces for recoverable errors.

fixes LP#2056223

(cherry picked from commit cdd0eac56049bf6a6d6a919ebc2e3c81b788a645)

a0b47ab... by Anton Troyanov

fix: tftp paths are wrong

TFTP handler will make a proxy call over HTTP to fetch bootloader and
related files. We should not return anything if this is not HTTP 200 OK.

Resolves LP:2057767

(cherry picked from commit 61a53d4c8b98ee63c61900f4dc3cb278b29e3226)

6722880... by Björn Tillenius

Bug #2056740: Can't commission/deploy AMT machines

The maas-power script was passed "--boot-mode pxe" for AMT machines
and failed, since such a parameter wasn't defined.

All other power drivers, including the newer AMT one, sets PXE boot every
time the machine is powered on. I changed things, so that "boot-mode" is
no longer passed, and the older AMT driver also sets the machine to PXE
boot whenever it's turned on.

(cherry picked from commit 116ccedb102a78136d9e1d62d3144850e861947e)

29d7149... by Björn Tillenius

Bug #2057750: Can't pxe boot legacy non-uefi machines

The rewrite rules in maas agent had 'bootloader' instead of
'bootloaders' for non-UEFI bootloaders.

(cherry picked from commit c9c16ac166c1eab8a25ea95a43b9f6138d58ac26)