Hi Charlie,

I've dealt with a similar issue in the past in bug 1990853 in which I
realized the tweak to the files on disk in regard to autostart needed to
happen before the very first start of libvirt - or they would have no
effect.

There I identified the interesting references to be:
- 
https://gitlab.com/libvirt/libvirt/-/commit/bab464f8ea54d177e163f32c7c3476220694665c
- 
https://gitlab.com/libvirt/libvirt/-/commit/ee16a195d97315ba3610b3640d347d3f4a358b55
- https://bugzilla.redhat.com/show_bug.cgi?id=1755303

Now with that referenced I sadly have to say for your case that this is by 
design.
The auto-start activities are meant to be triggered once on the first start 
after boot.
But not again on e.g. service restart, or as it was in the context this came up 
re-starts due to inactivity and then socket activation.

I'm tempted to say that I agree a failing-to-auto-start network like in
your case is a special case in between - as it was never "sucessfully"
autostarted. Still I feel this is nothing that Ubuntu would deviate as
there have been good reasons by upstream to handle it this way.

But it might be worth bringing up the special case of "failed to auto-start" 
for discussion there (https://libvirt.org/bugs.html) - if the project overall 
can agree on handling this as a special case we could consider backporting the 
changes if they are not too invasive.
AFAICS this particular case 
(https://gitlab.com/libvirt/libvirt/-/issues/?sort=created_date&state=all&search=autostart&first_page_size=20)
 wsa not discussed there yet.


** Bug watch added: Red Hat Bugzilla #1755303
   https://bugzilla.redhat.com/show_bug.cgi?id=1755303

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2095127

Title:
  The file in /run/libvirt/network/autostarted isn't removed if
  autostart fails.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2095127/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to