systemd-networkd is not permanently enabled when the unit is already runtime-enabled

Bug #2073100 reported by Matt Crees
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kayobe
Status tracked in Dalmatian
Caracal
Fix Committed
Undecided
Unassigned
Dalmatian
Fix Released
Undecided
Matt Crees

Bug Description

There is a fix in the systemd_service module, but this is not yet in a versioned release: https://github.com/ansible/ansible/commit/3076478892735bd33fd79c14acf3635d004f859f

To recreate:

Start with the service is disabled:

$ systemctl status systemd-networkd
● systemd-networkd.service - Network Configuration
     Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)

After running a control host bootstrap, it gets temporarily enabled "enabled-runtime".

$ systemctl status systemd-networkd
● systemd-networkd.service - Network Configuration
     Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled-runtime; vendor preset: enabled)

Run host configure, it doesn't get enabled permanently because the service module already detects enabled-runtime. It is then restarted, so it goes back to disabled.

TASK [stackhpc.systemd_networkd : enable systemd-networkd] ********************
Friday 12 July 2024 15:28:40 +0000 (0:00:02.375) 0:00:52.532 ***********
ok: [controller0]

RUNNING HANDLER [stackhpc.systemd_networkd : restart systemd-networkd] *******************************************************************************
Friday 12 July 2024 15:28:40 +0000 (0:00:00.050) 0:00:53.112 ***********
changed: [controller0]

$ systemctl status systemd-networkd
● systemd-networkd.service - Network Configuration
     Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
     Active: active (running) since Fri 2024-07-12 15:28:41 UTC; 1min 39s ago

Matt Crees (mattcrees)
Changed in kayobe:
assignee: nobody → Matt Crees (mattcrees)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kayobe/+/924480

Changed in kayobe:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (master)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/924480
Committed: https://opendev.org/openstack/kayobe/commit/bcdc4e6c2c43f96ee5eab772adfd7e06366f7ee6
Submitter: "Zuul (22348)"
Branch: master

commit bcdc4e6c2c43f96ee5eab772adfd7e06366f7ee6
Author: Matt Crees <email address hidden>
Date: Fri Jul 19 10:57:18 2024 +0100

    Bump stackhpc.linux collection to v1.2.3

    Closes-Bug: #2073100
    Change-Id: Ied06ee3380a149c4c8d082562c93f9b771457cb4

Changed in kayobe:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kayobe (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/kayobe/+/925104

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kayobe (stable/2024.1)

Reviewed: https://review.opendev.org/c/openstack/kayobe/+/925104
Committed: https://opendev.org/openstack/kayobe/commit/688f3775e06782834bf5759fe7dcf4b895e62b2c
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit 688f3775e06782834bf5759fe7dcf4b895e62b2c
Author: Matt Crees <email address hidden>
Date: Fri Jul 19 10:57:18 2024 +0100

    Bump stackhpc.linux collection to v1.2.3

    Closes-Bug: #2073100
    Change-Id: Ied06ee3380a149c4c8d082562c93f9b771457cb4
    (cherry picked from commit bcdc4e6c2c43f96ee5eab772adfd7e06366f7ee6)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.