Comment 8 for bug 2045819

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ansible-role-systemd_networkd (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/ansible-role-systemd_networkd/+/903754
Committed: https://opendev.org/openstack/ansible-role-systemd_networkd/commit/a05e610cc53239f0c62dc0aae64d00f1d8e75be0
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit a05e610cc53239f0c62dc0aae64d00f1d8e75be0
Author: Dmitriy Rabotyagov <email address hidden>
Date: Fri Dec 8 18:47:35 2023 +0100

    Fix defenition of multiple static routes for network

    Current logic was relying on iteration inside the template. However,
    since config_template module was used to deliver network configuration
    it was merging sections having same name together.

    While this behaviour is correct one for config_template as all sections
    must be unique from ConfigParser perspective and in order to apply
    overrides properly, it was not suiting the way how routes should be
    defined in networkd configuration.

    To workaround the issue we place routes separately under <network>.d
    directory, which should be supported by systemd [1]

    [1] https://www.freedesktop.org/software/systemd/man/latest/systemd.network.html

    Closes-Bug: #2045819
    Change-Id: I01aa44dcdc85e32d18dd52bcd4878a9017fb6ead
    (cherry picked from commit 70442c5efb34222d0e333422fc469608795c70e4)