[Bug 2090848] [NEW] generate runs on every daemon-reload

Danilo Egea Gondolfo 2090848 at bugs.launchpad.net
Mon Dec 2 15:33:42 UTC 2024


Public bug reported:

The "generate" binary creates a "stamp" file in /run/systemd/generator
which it intends to check later and, if it exists, prevent the
regeneration of the configuration.

At some point this trick stopped working as the files from this
directory are being deleted by systemd. That means that the netplan
generate binary will run on every daemon-reload and regenerate all the
configuration.

We should consider moving the stamp file to a place where it will
persist until the next reboot, such as /run/netplan.

** Affects: netplan.io (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  The "generate" binary creates a "stamp" file in /run/systemd/generator
  which it intends to check later and, if it exists, prevent the
  regeneration of the configuration.
  
  At some point this trick stopped working as the files from this
  directory are being deleted by systemd. That means that the netplan
- generate binary will run on every daemon-reload.
+ generate binary will run on every daemon-reload and regenerate all the
+ configuration.
  
  We should consider moving the stamp file to a place where it will
  persist until the next reboot, such as /run/netplan.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2090848

Title:
  generate runs on every daemon-reload

Status in netplan.io package in Ubuntu:
  New

Bug description:
  The "generate" binary creates a "stamp" file in /run/systemd/generator
  which it intends to check later and, if it exists, prevent the
  regeneration of the configuration.

  At some point this trick stopped working as the files from this
  directory are being deleted by systemd. That means that the netplan
  generate binary will run on every daemon-reload and regenerate all the
  configuration.

  We should consider moving the stamp file to a place where it will
  persist until the next reboot, such as /run/netplan.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2090848/+subscriptions




More information about the foundations-bugs mailing list