~r00ta/maas:lp-2045228-fix-concurrent-dns-updates-3.4

Last commit made on 2023-12-14
Get this branch:
git clone -b lp-2045228-fix-concurrent-dns-updates-3.4 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-2045228-fix-concurrent-dns-updates-3.4
Repository:
lp:~r00ta/maas

Recent commits

258452d... by Jacopo Rota

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

79aa1cc... by Christian Grabowski

add asynchronous wrapper to queueDynamicDNSUpdates

f97e2ad... by Jacopo Rota

Cherry pick b246274615da3d56fde185bd97eb1287e2cce4ec - Bug #2029417: Add a global interceptor for the closed handler exception to close the dead connections

290d59a... by Peter Makowski

Update maas-ui to 2289a6ccd
fix: machine status in the header lp#2044399 (#5221) 3.4 backport (#5222)

d64bccb... by Anton Troyanov

fix: force save model object changes

Resolves LP:2015411 StaticIPAddress matching query does not exist

(cherry picked from commit cfb432e6e41ab097950c9550b5c61d3ca6d6bbb2)

58598b7... 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)

c6a8033... by Peter Makowski

Update maas-ui to 25758c366
fix(machines): default to ascending sort (#5203) (#5204)

- 3.4 backport

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)