Merge ~paelzer/ubuntu/+source/libvirt:lp-1990853-autostart-ordering-KINETIC into ubuntu/+source/libvirt:ubuntu/kinetic-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 7e32688de11ebdc63cc6e6110e118f93a3d0672f
Proposed branch: ~paelzer/ubuntu/+source/libvirt:lp-1990853-autostart-ordering-KINETIC
Merge into: ubuntu/+source/libvirt:ubuntu/kinetic-devel
Diff against target: 46 lines (+14/-6)
2 files modified
debian/changelog (+7/-0)
debian/libvirt-daemon-system.postinst (+7/-6)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Miriam España Acebal (community) Approve
Canonical Server packageset reviewers Pending
Canonical Server Reporter Pending
Review via email: mp+430609@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Verified, the PPA fixes the issue as expected.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

FYI: Autopkgtests are running on the PPA right now

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Tests completed:
  libvirt @ amd64:
    28.09.22 09:36:18 Log 🗒️ ✅ Triggers: libvirt/8.6.0-0ubuntu2~kineticppa2
  libvirt @ arm64:
    28.09.22 09:41:50 Log 🗒️ ✅ Triggers: libvirt/8.6.0-0ubuntu2~kineticppa2
  libvirt @ armhf:
    28.09.22 09:35:37 Log 🗒️ ✅ Triggers: libvirt/8.6.0-0ubuntu2~kineticppa2
  libvirt @ ppc64el:
    28.09.22 09:42:57 Log 🗒️ ✅ Triggers: libvirt/8.6.0-0ubuntu2~kineticppa2
  libvirt @ s390x:
    28.09.22 09:40:10 Log 🗒️ ✅ Triggers: libvirt/8.6.0-0ubuntu2~kineticppa2

Revision history for this message
Miriam España Acebal (mirespace) wrote :

Hi Christian,

I think starting it a the beginning in front of the services is a good idea, and I cannot see other side effects.... you're the expert.

My more far contribution here could double-check the fix with the steps to reproduce from the bug, and I did it, so LGTM.

Sorry for the time in the review and thanks for your work on this.

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: paelzer, mirespace
Uploaders: paelzer
MP auto-approved

review: Approve
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Thanks, uploaded
Uploading libvirt_8.6.0-0ubuntu2.dsc
Uploading libvirt_8.6.0-0ubuntu2.debian.tar.xz
Uploading libvirt_8.6.0-0ubuntu2_source.buildinfo
Uploading libvirt_8.6.0-0ubuntu2_source.changes

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index afeb23f..0fe176e 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+libvirt (8.6.0-0ubuntu2) kinetic; urgency=medium
7+
8+ * d/p/libvirt-daemon-system.postinst: default network autostart
9+ handling needs to happen before services start (LP: #1990853)
10+
11+ -- Christian Ehrhardt <christian.ehrhardt@canonical.com> Wed, 28 Sep 2022 08:36:15 +0200
12+
13 libvirt (8.6.0-0ubuntu1) kinetic; urgency=medium
14
15 * Merge 8.0.0 from Debian unstable (LP: #1971289)
16diff --git a/debian/libvirt-daemon-system.postinst b/debian/libvirt-daemon-system.postinst
17index 514d39a..3243d80 100644
18--- a/debian/libvirt-daemon-system.postinst
19+++ b/debian/libvirt-daemon-system.postinst
20@@ -298,6 +298,13 @@ case "$1" in
21 fi
22 done
23
24+ # On an initial package install, create the default network autostart
25+ # symlink if on a system that it will work on.
26+ # Note: needs to complete before services are started the first time
27+ if [ -z $2 ]; then
28+ maybe_set_autostart
29+ fi
30+
31 systemd_daemon_reload
32 systemd_unit_enable virtlockd.service virtlockd.socket virtlockd-admin.socket
33 systemd_unit_enable virtlogd.service virtlogd.socket virtlogd-admin.socket
34@@ -310,12 +317,6 @@ case "$1" in
35 systemd_unit_start libvirtd.socket libvirtd-admin.socket libvirtd-ro.socket
36 systemd_unit_restart libvirtd.service
37 systemd_unit_start libvirt-guests.service
38-
39- # On an initial package install, create the default network autostart
40- # symlink if on a system that it will work on.
41- if [ -z $2 ]; then
42- maybe_set_autostart
43- fi
44 ;;
45
46 abort-upgrade|abort-remove|abort-deconfigure)

Subscribers

People subscribed via source and target branches