~alexsander-souza/maas:lp2009045_to_3_3

Last commit made on 2024-01-08
Get this branch:
git clone -b lp2009045_to_3_3 https://git.launchpad.net/~alexsander-souza/maas
Only Alexsander de Souza can upload to this branch. If you are Alexsander de Souza please log in for upload directions.

Branch merges

Branch information

Name:
lp2009045_to_3_3
Repository:
lp:~alexsander-souza/maas

Recent commits

29f1438... by Igor Brovtsin

Report reasons for failure for machine bulk actions

Fixes LP:2009045

(cherry picked from commit 26d1d8fc3b76f727046758b0b016107faf847ced)

9ac1434... by Jacopo Rota

Cherry pick 6106e946d0bc8dbd77214d64912c30f770f8d101 - ipxe uses mac address from dhcp packet instead of the mac of the first interface of the machine

eace050... 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.

(cherry picked from commit cfe8cf628f7189a84a98d74b3c079d744f1c1b5f)

0553c80... by Jacopo Rota

fix: lp-2046255 IP addresses of non-boot interfaces should not add A records to <machine>.<domain>

bc62ea8... by Jacopo Rota

fix: lp-2045228 race condition in postgres listener for dns dynamic updates

0365eb8... by Igor Brovtsin

LP: 2022084
Cherry pick f3b643e5f40f171326df134a0827a93fdc0137e4 - Disable chainloading for third-party distros to fix secure boot

aa3d26e... by Christian Grabowski

add asynchronous wrapper to queueDynamicDNSUpdates
(cherry picked from commit d51c57f6024d399cbfe52315f0fcd5e54972589c)

851bfad... by Peter Makowski

Update maas-ui to 6e5f3da0d
fix: downgrade @sentry/browser to v5.30.0 (#4836) backport (#5212)

e2fb46e... by Alexsander de Souza

normalize request path used as prometheus label

using the original requested path effectively tracks metrics per database object, not per endpoint as intended. Additionally it leads to huge number of histograms in the prometheus database, exceeding the 2GB limit after some time.

fixes LP#1996204

(cherry picked from commit 60a5e0ca08c25a238af04ee1dd4de9876acfbdc6)

f564d0f... by Mauricio Faria de Oliveira

LP:2040188 - bmc-config: add missing script metadata for parameter maas_auto_ipmi_cipher_suite_id

The bmc-config script is passed several parameters from MAAS config options
(e.g. maas_auto_ipmi_{user,user_password,user_privilege_level,k_g_bmc_key}).

But maas_auto_ipmi_cipher_suite_id is not, since it's not in the metadata.

Add it to actually allow users to change the default IPMI cipher suite ID.

Tested on MAAS 3.4.0~rc2 with this debug change to print script arguments:

         def main():
         ...
             args = parser.parse_args()
        + print(args)
         ...

Change MAAS config for IPMI cipher suite ID from 3 to 17:

        $ maas admin maas get-config \
          name=maas_auto_ipmi_cipher_suite_id
        Success.
        Machine-readable output follows:
        "3"

        $ maas admin maas set-config \
          name=maas_auto_ipmi_cipher_suite_id \
          value=17
        Success.
        Machine-readable output follows:
        OK

        $ maas admin maas get-config \
          name=maas_auto_ipmi_cipher_suite_id
        Success.
        Machine-readable output follows:
        "17"

Before:
(17 is not used; source code default of 3 is used, instead)

        Namespace(ipmi_cipher_suite_id='3', ipmi_k_g='', ipmi_privilege_level='ADMIN', password=None, username='maas')

After:
(17 is now used!)

        Namespace(ipmi_cipher_suite_id='17', ipmi_k_g='', ipmi_privilege_level='ADMIN', password=None, username='maas')

Found by comparison with (working) parameter maas_auto_ipmi_user:

        $ grep -r 'maas_auto_ipmi_user[^_]' | grep -vw -e maasui -e maas-offline-docs -e tests
        src/metadataserver/builtin_scripts/commissioning_scripts/bmc_config.py:# maas_auto_ipmi_user:
        src/maasserver/forms/settings.py: "maas_auto_ipmi_user": {
        src/maasserver/forms/parameters.py: "maas_auto_ipmi_user",
        src/maasserver/models/config.py: "maas_auto_ipmi_user": "maas",

        $ grep -r 'maas_auto_ipmi_cipher_suite_id[^_]' | grep -vw -e maasui -e maas-offline-docs -e tests
        src/maasserver/forms/settings.py: "maas_auto_ipmi_cipher_suite_id": {
        src/maasserver/forms/parameters.py: "maas_auto_ipmi_cipher_suite_id",
        src/maasserver/models/config.py: "maas_auto_ipmi_cipher_suite_id": "3",

Signed-off-by: Mauricio Faria de Oliveira <email address hidden>
(cherry picked from commit f06ea636a9466176d29d71e1539c65d7538f41da)