FYI fixed a typo in the test template

** Description changed:

  [ Impact ]
  
-  * After the initial installation of libvirt the default network
+  * After the initial installation of libvirt the default network
  ("virbr0") is not started.
  
-  * This used to be the case in Noble, as implemented via the Ubuntu
+  * This used to be the case in Noble, as implemented via the Ubuntu
  delta of the libvirt package
  
-  * In Plucky Debian did a package split, which lead to some ordering
+  * In Plucky Debian did a package split, which lead to some ordering
  issue, where the network is set-up only after libvirt-daemon is
  installed (and libvirtd.service started). Therefore, it would not pick
  up the autostart configuration at runtime (only after a reboot).
  
-  * Conversation with upstream showed that this is due to the
+  * Conversation with upstream showed that this is due to the
  /run/libvirt/network/autostarted stamp file that is created after first
  launch of libvirtd.service (on a rebooted system).
  
-  * To fix the issue, we remove that stamp file from the postinst
+  * To fix the issue, we remove that stamp file from the postinst
  maintainer script that installs the "default.xml" autostart network and
  execute the dpkg-trigger to restart libvirtd.service as usual.
  
  [ Test Plan ]
  
  We can execute this in a VM to verify the nested usecase, where we get a 
different IP on virbr0 (192.168.123.1 instead of 192.168.122.1)
-  * uvt-kvm create --password=ubuntu pp arch=amd64 label=daily release=plucky
-  * uvt-kvm ssh pp
+  * uvt-kvm create --password=ubuntu pp arch=amd64 label=daily release=plucky
+  * uvt-kvm ssh pp
  
  The normal test plan:
-  * lxd launch --vm --ephemeral ubuntu-daily:p pp
- 
-  * sudo apt update && sudo apt install libvirt-daemon-system
- 
-  * ip a  # Confirm virbr0 is created with a 192.168.12x.1/24 IP address
+  * lxc launch --vm --ephemeral ubuntu-daily:p pp
+ 
+  * sudo apt update && sudo apt install libvirt-daemon-system
+ 
+  * ip a  # Confirm virbr0 is created with a 192.168.12x.1/24 IP address
  [...]
  6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state 
DOWN group default qlen 1000
-     link/ether 52:54:00:9f:a1:fd brd ff:ff:ff:ff:ff:ff
-     inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr0
-        valid_lft forever preferred_lft forever
- 
+     link/ether 52:54:00:9f:a1:fd brd ff:ff:ff:ff:ff:ff
+     inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr0
+        valid_lft forever preferred_lft forever
  
  Then in a new environment (this is only relevant for Questing+):
-  * lxd launch --vm --ephemeral ubuntu-daily:p pp2
- 
-  * sudo apt update && sudo apt install libvirt-daemon  # just the
+  * lxc launch --vm --ephemeral ubuntu-daily:p pp2
+ 
+  * sudo apt update && sudo apt install libvirt-daemon  # just the
  daemon!
  
-  * ip a  # Confirm that "virbr0" is NOT created
- 
-  * sudo apt install libvirt-daemon-config-network  # or libvirt-daemon-
+  * ip a  # Confirm that "virbr0" is NOT created
+ 
+  * sudo apt install libvirt-daemon-config-network  # or libvirt-daemon-
  driver-qemu on Plucky (but this is pulled in automatically by libvirt-
  daemon anyway)
  
-  * ip a  # Confirm virbr0 is created with a 192.168.12x.1/24 IP address
+  * ip a  # Confirm virbr0 is created with a 192.168.12x.1/24 IP address
  [...]
  6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state 
DOWN group default qlen 1000
-     link/ether 52:54:00:9f:a1:fd brd ff:ff:ff:ff:ff:ff
-     inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr0
-        valid_lft forever preferred_lft forever
+     link/ether 52:54:00:9f:a1:fd brd ff:ff:ff:ff:ff:ff
+     inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr0
+        valid_lft forever preferred_lft forever
  
  [ Where problems could occur ]
  
-  * We're modifying the maintainerscript of libvirt, so if something
+  * We're modifying the maintainerscript of libvirt, so if something
  could go wrong we could break the installation of libvirt on all
  architectures.
  
  [ Other Info ]
  
-  * Upstream conversation:
+  * Upstream conversation:
  https://gitlab.com/libvirt/libvirt/-/issues/786
- 
  
  ---- original bug report ----
  
  Hi,
  this might be a OK once you look deeper, but I need to raise the bug as it 
raised my eyebrow.
  
  In the past after libvirt install, default network was around - and this
  is very comfortable for the user to be able to use things right away.
  
  root@o:~# virsh net-list
   Name      State    Autostart   Persistent
  --------------------------------------------
   default   active   yes         yes
  
  Your testing of 10.10 was fine IIRC @sergio,
  so it might appear later once used - and if that works without hazzle it is 
fine.
  
  But at a high level I see it not appearing and that makes me suspicious:
  
  paelzer@Keschdeichel 08:44:34 130  /tmp/analyze-metric-change.zHc6l  lxc 
launch ubuntu-daily:p p-libvirt --ephemeral --vm
  Creating p-libvirt
  Starting p-libvirt
  paelzer@Keschdeichel 08:44:48   /tmp/analyze-metric-change.zHc6l  lxc shell 
p-libvirt
  root@p-libvirt:~# apt update
  Hit:1 http://security.ubuntu.com/ubuntu plucky-security InRelease
  Get:2 http://archive.ubuntu.com/ubuntu plucky InRelease [213 kB]
  Hit:3 http://archive.ubuntu.com/ubuntu plucky-updates InRelease
  Get:4 http://archive.ubuntu.com/ubuntu plucky-backports InRelease [73.9 kB]
  Get:5 http://archive.ubuntu.com/ubuntu plucky/main amd64 Packages [1443 kB]
  Get:6 http://archive.ubuntu.com/ubuntu plucky/universe amd64 Packages [15.7 
MB]
  Get:7 http://archive.ubuntu.com/ubuntu plucky/universe Translation-en [6215 
kB]
  Get:8 http://archive.ubuntu.com/ubuntu plucky/multiverse amd64 Packages [251 
kB]
  Get:9 http://archive.ubuntu.com/ubuntu plucky/multiverse Translation-en [117 
kB]
  Fetched 24.1 MB in 6s (3803 kB/s)
  2 packages can be upgraded. Run 'apt list --upgradable' to see them.
  root@p-libvirt:~# apt install libvirt-daemon-system
  The following package was automatically installed and is no longer required:
    libicu74
  Use 'apt autoremove' to remove it.
  
  Upgrading:
    libxml2
  
  Installing:
    libvirt-daemon-system
  
  Installing dependencies:
    acl                             libcairo-gobject2               liblerc4    
            libtiff6                               
libwebrtc-audio-processing-1-3
    adwaita-icon-theme              libcairo2                       libmp3lame0 
            libtpms0                               libx11-xcb1
    alsa-topology-conf              libcdparanoia0                  
libmpg123-0t64          libtwolame0                            libxcb-dri2-0
    alsa-ucm-conf                   libcolord2                      libndctl6   
            liburing2                              libxcb-dri3-0
    at-spi2-common                  libcups2t64                     libnfs14    
            libusbredirparser1t64                  libxcb-glx0
    at-spi2-core                    libdatrie1                      
libnss-mymachines       libv4l-0t64                            libxcb-present0
    cpu-checker                     libdaxctl1                      libogg0     
            libv4lconvert0t64                      libxcb-randr0
    dconf-gsettings-backend         libdconf1                       libopus0    
            libvirglrenderer1                      libxcb-render0
    dconf-service                   libdecor-0-0                    
liborc-0.4-0t64         libvirt-clients                        libxcb-shm0
    dns-root-data                   libdecor-0-plugin-1-gtk         
libpango-1.0-0          libvirt-common                         libxcb-sync1
    dnsmasq-base                    libdeflate0                     
libpangocairo-1.0-0     libvirt-daemon                         libxcb-xfixes0
    fontconfig                      libdrm-intel1                   
libpangoft2-1.0-0       libvirt-daemon-common                  libxcomposite1
    fontconfig-config               libdrm-nouveau2                 
libpciaccess0           libvirt-daemon-config-network          libxcursor1
    fonts-dejavu-core               libdrm-radeon1                  
libpcsclite1            libvirt-daemon-config-nwfilter         libxdamage1
    fonts-dejavu-mono               libdv4t64                       
libpipewire-0.3-0t64    libvirt-daemon-driver-interface        libxfixes3
    glib-networking                 libepoxy0                       
libpipewire-0.3-common  libvirt-daemon-driver-network          libxi6
    glib-networking-common          libfdt1                         
libpixman-1-0           libvirt-daemon-driver-nodedev          libxinerama1
    glib-networking-services        libflac12t64                    libpmem1    
            libvirt-daemon-driver-nwfilter         libxml2-utils
    gsettings-desktop-schemas       libfontconfig1                  libpmemobj1 
            libvirt-daemon-driver-qemu             libxrandr2
    gstreamer1.0-plugins-base       libgbm1                         libproxy1v5 
            libvirt-daemon-driver-secret           libxrender1
    gstreamer1.0-plugins-good       libgdk-pixbuf-2.0-0             libpulse0   
            libvirt-daemon-driver-storage          libxshmfence1
    gstreamer1.0-x                  libgdk-pixbuf2.0-bin            librados2   
            libvirt-daemon-driver-storage-disk     libxss1
    gtk-update-icon-cache           libgdk-pixbuf2.0-common         
libraw1394-11           libvirt-daemon-driver-storage-iscsi    libxtst6
    hicolor-icon-theme              libgl1                          librbd1     
            libvirt-daemon-driver-storage-logical  libxv1
    humanity-icon-theme             libgl1-amber-dri                
librdmacm1t64           libvirt-daemon-driver-storage-mpath    libxxf86vm1
    ipxe-qemu                       libgl1-mesa-dri                 librsvg2-2  
            libvirt-daemon-driver-storage-scsi     mdevctl
    ipxe-qemu-256k-compat-efi-roms  libglapi-mesa                   
librsvg2-common         libvirt-daemon-lock                    mesa-libgallium
    libaa1                          libglvnd0                       
libsamplerate0          libvirt-daemon-log                     
mesa-vulkan-drivers
    libabsl20230802                 libglx-mesa0                    
libsdl2-2.0-0           libvirt-daemon-plugin-lockd            msr-tools
    libasound2-data                 libglx0                         
libsharpyuv0            libvirt-l10n                           ovmf
    libasound2t64                   libgraphite2-3                  libshout3   
            libvirt0                               qemu-block-extra
    libasyncns0                     libgstreamer-plugins-base1.0-0  libslirp0   
            libvisual-0.4-0                        qemu-system-common
    libatk-bridge2.0-0t64           libgstreamer-plugins-good1.0-0  libsndfile1 
            libvorbis0a                            qemu-system-data
    libatk1.0-0t64                  libgtk-3-0t64                   
libsoup-3.0-0           libvorbisenc2                          qemu-system-gui
    libatspi2.0-0t64                libgtk-3-bin                    
libsoup-3.0-common      libvpx9                                
qemu-system-modules-opengl
    libavahi-client3                libgtk-3-common                 
libspa-0.2-modules      libvte-2.91-0                          
qemu-system-modules-spice
    libavahi-common-data            libharfbuzz0b                   libspeex1   
            libvte-2.91-common                     qemu-system-x86
    libavahi-common3                libiec61883-0                   
libspice-server1        libvulkan1                             qemu-utils
    libavc1394-0                    libiscsi7                       libssh-4    
            libwavpack1                            seabios
    libboost-iostreams1.83.0        libjack-jackd2-0                libtag1v5   
            libwayland-client0                     swtpm
    libboost-thread1.83.0           libjbig0                        
libtag1v5-vanilla       libwayland-cursor0                     swtpm-tools
    libbrlapi0.8                    libjpeg-turbo8                  
libthai-data            libwayland-egl1                        systemd-container
    libcaca0                        libjpeg8                        libthai0    
            libwayland-server0                     ubuntu-mono
    libcacard0                      liblcms2-2                      libtheora0  
            libwebp7                               x11-common
  
  Suggested packages:
    adwaita-icon-theme-legacy  oss-compat             pulseaudio                
 libvirt-clients-qemu                        libvirt-daemon-driver-vbox     
nfs-common
    gvfs                       libvisual-0.4-plugins  libraw1394-doc            
 libvirt-login-shell                         libvirt-daemon-driver-xen      
samba
    alsa-utils                 jackd2                 librsvg2-bin              
 libvirt-daemon-driver-storage-gluster       libvirt-daemon-plugin-sanlock  vde2
    libasound2-plugins         liblcms2-utils         xdg-utils                 
 libvirt-daemon-driver-storage-iscsi-direct  auditd                         
trousers
    colord                     opus-tools             speex                     
 libvirt-daemon-driver-storage-rbd           systemtap
    cups-common                pcscd                  gstreamer1.0-libav        
 libvirt-daemon-driver-storage-zfs           numad
    libdv-bin                  pipewire               gstreamer1.0-plugins-ugly 
 libvirt-daemon-driver-lxc                   passt
  
  Summary:
    Upgrading: 1, Installing: 221, Removing: 0, Not Upgrading: 1
    Download size: 111 MB
    Space needed: 473 MB / 7106 MB available
  
  Continue? [Y/n] Y
  Get:1 http://archive.ubuntu.com/ubuntu plucky/main amd64 libxml2 amd64 
2.12.7+dfsg+really2.9.14-0.2ubuntu2 [771 kB]
  ...
  Selecting previously unselected package libvirt-clients.
  Preparing to unpack .../178-libvirt-clients_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-clients (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-common.
  Preparing to unpack .../179-libvirt-daemon-common_10.10.0-1ubuntu2_amd64.deb 
...
  Adding 'diversion of /lib/systemd/system/libvirt-guests.service to 
/lib/systemd/system/libvirt-guests.service.usr-is-merged by 
libvirt-daemon-common'
  Adding 'diversion of /lib/systemd/system/virt-guest-shutdown.target to 
/lib/systemd/system/virt-guest-shutdown.target.usr-is-merged by 
libvirt-daemon-common'
  Unpacking libvirt-daemon-common (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-log.
  Preparing to unpack .../180-libvirt-daemon-log_10.10.0-1ubuntu2_amd64.deb ...
  Adding 'diversion of /lib/systemd/system/virtlogd-admin.socket to 
/lib/systemd/system/virtlogd-admin.socket.usr-is-merged by libvirt-daemon-log'
  Adding 'diversion of /lib/systemd/system/virtlogd.service to 
/lib/systemd/system/virtlogd.service.usr-is-merged by libvirt-daemon-log'
  Adding 'diversion of /lib/systemd/system/virtlogd.socket to 
/lib/systemd/system/virtlogd.socket.usr-is-merged by libvirt-daemon-log'
  Unpacking libvirt-daemon-log (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon.
  Preparing to unpack .../181-libvirt-daemon_10.10.0-1ubuntu2_amd64.deb ...
  Adding 'diversion of /lib/systemd/system/libvirtd-admin.socket to 
/lib/systemd/system/libvirtd-admin.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd-ro.socket to 
/lib/systemd/system/libvirtd-ro.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd-tcp.socket to 
/lib/systemd/system/libvirtd-tcp.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd-tls.socket to 
/lib/systemd/system/libvirtd-tls.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd.service to 
/lib/systemd/system/libvirtd.service.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd.socket to 
/lib/systemd/system/libvirtd.socket.usr-is-merged by libvirt-daemon'
  Unpacking libvirt-daemon (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-network.
  Preparing to unpack 
.../182-libvirt-daemon-driver-network_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-network (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-config-network.
  Preparing to unpack 
.../183-libvirt-daemon-config-network_10.10.0-1ubuntu2_all.deb ...
  Unpacking libvirt-daemon-config-network (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-nwfilter.
  Preparing to unpack 
.../184-libvirt-daemon-driver-nwfilter_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-nwfilter (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-config-nwfilter.
  Preparing to unpack 
.../185-libvirt-daemon-config-nwfilter_10.10.0-1ubuntu2_all.deb ...
  Unpacking libvirt-daemon-config-nwfilter (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-interface.
  Preparing to unpack 
.../186-libvirt-daemon-driver-interface_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-interface (10.10.0-1ubuntu2) ...
  Selecting previously unselected package mdevctl.
  Preparing to unpack .../187-mdevctl_1.3.0-1ubuntu4_amd64.deb ...
  Unpacking mdevctl (1.3.0-1ubuntu4) ...
  Selecting previously unselected package libvirt-daemon-driver-nodedev.
  Preparing to unpack 
.../188-libvirt-daemon-driver-nodedev_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-nodedev (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libfdt1:amd64.
  Preparing to unpack .../189-libfdt1_1.7.2-2_amd64.deb ...
  Unpacking libfdt1:amd64 (1.7.2-2) ...
  Selecting previously unselected package qemu-system-common.
  Preparing to unpack 
.../190-qemu-system-common_1%3a9.0.2+ds-4ubuntu8_amd64.deb ...
  Unpacking qemu-system-common (1:9.0.2+ds-4ubuntu8) ...
  Selecting previously unselected package qemu-system-data.
  Preparing to unpack .../191-qemu-system-data_1%3a9.0.2+ds-4ubuntu8_all.deb ...
  Unpacking qemu-system-data (1:9.0.2+ds-4ubuntu8) ...
  Selecting previously unselected package seabios.
  Preparing to unpack .../192-seabios_1.16.3-2_all.deb ...
  Unpacking seabios (1.16.3-2) ...
  Selecting previously unselected package qemu-system-x86.
  Preparing to unpack .../193-qemu-system-x86_1%3a9.0.2+ds-4ubuntu8_amd64.deb 
...
  Unpacking qemu-system-x86 (1:9.0.2+ds-4ubuntu8) ...
  Selecting previously unselected package systemd-container.
  Preparing to unpack .../194-systemd-container_257-2ubuntu1_amd64.deb ...
  Unpacking systemd-container (257-2ubuntu1) ...
  Selecting previously unselected package libvirt-daemon-driver-qemu.
  Preparing to unpack 
.../195-libvirt-daemon-driver-qemu_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-qemu (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-secret.
  Preparing to unpack 
.../196-libvirt-daemon-driver-secret_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-secret (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage.
  Preparing to unpack 
.../197-libvirt-daemon-driver-storage_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-disk.
  Preparing to unpack 
.../198-libvirt-daemon-driver-storage-disk_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-disk (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-iscsi.
  Preparing to unpack 
.../199-libvirt-daemon-driver-storage-iscsi_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-iscsi (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-logical.
  Preparing to unpack 
.../200-libvirt-daemon-driver-storage-logical_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-logical (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-mpath.
  Preparing to unpack 
.../201-libvirt-daemon-driver-storage-mpath_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-mpath (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-scsi.
  Preparing to unpack 
.../202-libvirt-daemon-driver-storage-scsi_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-scsi (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-lock.
  Preparing to unpack .../203-libvirt-daemon-lock_10.10.0-1ubuntu2_amd64.deb ...
  Adding 'diversion of /lib/systemd/system/virtlockd-admin.socket to 
/lib/systemd/system/virtlockd-admin.socket.usr-is-merged by libvirt-daemon-lock'
  Adding 'diversion of /lib/systemd/system/virtlockd.service to 
/lib/systemd/system/virtlockd.service.usr-is-merged by libvirt-daemon-lock'
  Adding 'diversion of /lib/systemd/system/virtlockd.socket to 
/lib/systemd/system/virtlockd.socket.usr-is-merged by libvirt-daemon-lock'
  Unpacking libvirt-daemon-lock (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-plugin-lockd.
  Preparing to unpack 
.../204-libvirt-daemon-plugin-lockd_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-plugin-lockd (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-system.
  Preparing to unpack .../205-libvirt-daemon-system_10.10.0-1ubuntu2_amd64.deb 
...
  Unpacking libvirt-daemon-system (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-l10n.
  Preparing to unpack .../206-libvirt-l10n_10.10.0-1ubuntu2_all.deb ...
  Unpacking libvirt-l10n (10.10.0-1ubuntu2) ...
  ...
  
  But then after install, network is inactive
  
  root@p-libvirt:~# virsh net-list --all
   Name      State      Autostart   Persistent
  ----------------------------------------------
   default   inactive   yes         yes
  
  I could start it:
  
  root@p-libvirt:~# virsh net-start default
  Network default started
  
  root@p-libvirt:~# virsh net-list
   Name      State    Autostart   Persistent
  --------------------------------------------
   default   active   yes         yes
  
  So maybe it is started on first demand now?
  Or our auto-starting config which we had is broken by the merge of the latest 
versions?

** Description changed:

  [ Impact ]
  
   * After the initial installation of libvirt the default network
  ("virbr0") is not started.
  
   * This used to be the case in Noble, as implemented via the Ubuntu
  delta of the libvirt package
  
   * In Plucky Debian did a package split, which lead to some ordering
  issue, where the network is set-up only after libvirt-daemon is
  installed (and libvirtd.service started). Therefore, it would not pick
  up the autostart configuration at runtime (only after a reboot).
  
   * Conversation with upstream showed that this is due to the
  /run/libvirt/network/autostarted stamp file that is created after first
  launch of libvirtd.service (on a rebooted system).
  
   * To fix the issue, we remove that stamp file from the postinst
  maintainer script that installs the "default.xml" autostart network and
  execute the dpkg-trigger to restart libvirtd.service as usual.
  
  [ Test Plan ]
  
  We can execute this in a VM to verify the nested usecase, where we get a 
different IP on virbr0 (192.168.123.1 instead of 192.168.122.1)
   * uvt-kvm create --password=ubuntu pp arch=amd64 label=daily release=plucky
   * uvt-kvm ssh pp
  
  The normal test plan:
   * lxc launch --vm --ephemeral ubuntu-daily:p pp
  
   * sudo apt update && sudo apt install libvirt-daemon-system
  
   * ip a  # Confirm virbr0 is created with a 192.168.12x.1/24 IP address
  [...]
  6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state 
DOWN group default qlen 1000
      link/ether 52:54:00:9f:a1:fd brd ff:ff:ff:ff:ff:ff
      inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr0
         valid_lft forever preferred_lft forever
  
  Then in a new environment (this is only relevant for Questing+):
-  * lxc launch --vm --ephemeral ubuntu-daily:p pp2
+  * lxc launch --vm --ephemeral ubuntu-daily:q qq
  
   * sudo apt update && sudo apt install libvirt-daemon  # just the
  daemon!
  
   * ip a  # Confirm that "virbr0" is NOT created
  
   * sudo apt install libvirt-daemon-config-network  # or libvirt-daemon-
  driver-qemu on Plucky (but this is pulled in automatically by libvirt-
  daemon anyway)
  
   * ip a  # Confirm virbr0 is created with a 192.168.12x.1/24 IP address
  [...]
  6: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state 
DOWN group default qlen 1000
      link/ether 52:54:00:9f:a1:fd brd ff:ff:ff:ff:ff:ff
      inet 192.168.123.1/24 brd 192.168.123.255 scope global virbr0
         valid_lft forever preferred_lft forever
  
  [ Where problems could occur ]
  
   * We're modifying the maintainerscript of libvirt, so if something
  could go wrong we could break the installation of libvirt on all
  architectures.
  
  [ Other Info ]
  
   * Upstream conversation:
  https://gitlab.com/libvirt/libvirt/-/issues/786
  
  ---- original bug report ----
  
  Hi,
  this might be a OK once you look deeper, but I need to raise the bug as it 
raised my eyebrow.
  
  In the past after libvirt install, default network was around - and this
  is very comfortable for the user to be able to use things right away.
  
  root@o:~# virsh net-list
   Name      State    Autostart   Persistent
  --------------------------------------------
   default   active   yes         yes
  
  Your testing of 10.10 was fine IIRC @sergio,
  so it might appear later once used - and if that works without hazzle it is 
fine.
  
  But at a high level I see it not appearing and that makes me suspicious:
  
  paelzer@Keschdeichel 08:44:34 130  /tmp/analyze-metric-change.zHc6l  lxc 
launch ubuntu-daily:p p-libvirt --ephemeral --vm
  Creating p-libvirt
  Starting p-libvirt
  paelzer@Keschdeichel 08:44:48   /tmp/analyze-metric-change.zHc6l  lxc shell 
p-libvirt
  root@p-libvirt:~# apt update
  Hit:1 http://security.ubuntu.com/ubuntu plucky-security InRelease
  Get:2 http://archive.ubuntu.com/ubuntu plucky InRelease [213 kB]
  Hit:3 http://archive.ubuntu.com/ubuntu plucky-updates InRelease
  Get:4 http://archive.ubuntu.com/ubuntu plucky-backports InRelease [73.9 kB]
  Get:5 http://archive.ubuntu.com/ubuntu plucky/main amd64 Packages [1443 kB]
  Get:6 http://archive.ubuntu.com/ubuntu plucky/universe amd64 Packages [15.7 
MB]
  Get:7 http://archive.ubuntu.com/ubuntu plucky/universe Translation-en [6215 
kB]
  Get:8 http://archive.ubuntu.com/ubuntu plucky/multiverse amd64 Packages [251 
kB]
  Get:9 http://archive.ubuntu.com/ubuntu plucky/multiverse Translation-en [117 
kB]
  Fetched 24.1 MB in 6s (3803 kB/s)
  2 packages can be upgraded. Run 'apt list --upgradable' to see them.
  root@p-libvirt:~# apt install libvirt-daemon-system
  The following package was automatically installed and is no longer required:
    libicu74
  Use 'apt autoremove' to remove it.
  
  Upgrading:
    libxml2
  
  Installing:
    libvirt-daemon-system
  
  Installing dependencies:
    acl                             libcairo-gobject2               liblerc4    
            libtiff6                               
libwebrtc-audio-processing-1-3
    adwaita-icon-theme              libcairo2                       libmp3lame0 
            libtpms0                               libx11-xcb1
    alsa-topology-conf              libcdparanoia0                  
libmpg123-0t64          libtwolame0                            libxcb-dri2-0
    alsa-ucm-conf                   libcolord2                      libndctl6   
            liburing2                              libxcb-dri3-0
    at-spi2-common                  libcups2t64                     libnfs14    
            libusbredirparser1t64                  libxcb-glx0
    at-spi2-core                    libdatrie1                      
libnss-mymachines       libv4l-0t64                            libxcb-present0
    cpu-checker                     libdaxctl1                      libogg0     
            libv4lconvert0t64                      libxcb-randr0
    dconf-gsettings-backend         libdconf1                       libopus0    
            libvirglrenderer1                      libxcb-render0
    dconf-service                   libdecor-0-0                    
liborc-0.4-0t64         libvirt-clients                        libxcb-shm0
    dns-root-data                   libdecor-0-plugin-1-gtk         
libpango-1.0-0          libvirt-common                         libxcb-sync1
    dnsmasq-base                    libdeflate0                     
libpangocairo-1.0-0     libvirt-daemon                         libxcb-xfixes0
    fontconfig                      libdrm-intel1                   
libpangoft2-1.0-0       libvirt-daemon-common                  libxcomposite1
    fontconfig-config               libdrm-nouveau2                 
libpciaccess0           libvirt-daemon-config-network          libxcursor1
    fonts-dejavu-core               libdrm-radeon1                  
libpcsclite1            libvirt-daemon-config-nwfilter         libxdamage1
    fonts-dejavu-mono               libdv4t64                       
libpipewire-0.3-0t64    libvirt-daemon-driver-interface        libxfixes3
    glib-networking                 libepoxy0                       
libpipewire-0.3-common  libvirt-daemon-driver-network          libxi6
    glib-networking-common          libfdt1                         
libpixman-1-0           libvirt-daemon-driver-nodedev          libxinerama1
    glib-networking-services        libflac12t64                    libpmem1    
            libvirt-daemon-driver-nwfilter         libxml2-utils
    gsettings-desktop-schemas       libfontconfig1                  libpmemobj1 
            libvirt-daemon-driver-qemu             libxrandr2
    gstreamer1.0-plugins-base       libgbm1                         libproxy1v5 
            libvirt-daemon-driver-secret           libxrender1
    gstreamer1.0-plugins-good       libgdk-pixbuf-2.0-0             libpulse0   
            libvirt-daemon-driver-storage          libxshmfence1
    gstreamer1.0-x                  libgdk-pixbuf2.0-bin            librados2   
            libvirt-daemon-driver-storage-disk     libxss1
    gtk-update-icon-cache           libgdk-pixbuf2.0-common         
libraw1394-11           libvirt-daemon-driver-storage-iscsi    libxtst6
    hicolor-icon-theme              libgl1                          librbd1     
            libvirt-daemon-driver-storage-logical  libxv1
    humanity-icon-theme             libgl1-amber-dri                
librdmacm1t64           libvirt-daemon-driver-storage-mpath    libxxf86vm1
    ipxe-qemu                       libgl1-mesa-dri                 librsvg2-2  
            libvirt-daemon-driver-storage-scsi     mdevctl
    ipxe-qemu-256k-compat-efi-roms  libglapi-mesa                   
librsvg2-common         libvirt-daemon-lock                    mesa-libgallium
    libaa1                          libglvnd0                       
libsamplerate0          libvirt-daemon-log                     
mesa-vulkan-drivers
    libabsl20230802                 libglx-mesa0                    
libsdl2-2.0-0           libvirt-daemon-plugin-lockd            msr-tools
    libasound2-data                 libglx0                         
libsharpyuv0            libvirt-l10n                           ovmf
    libasound2t64                   libgraphite2-3                  libshout3   
            libvirt0                               qemu-block-extra
    libasyncns0                     libgstreamer-plugins-base1.0-0  libslirp0   
            libvisual-0.4-0                        qemu-system-common
    libatk-bridge2.0-0t64           libgstreamer-plugins-good1.0-0  libsndfile1 
            libvorbis0a                            qemu-system-data
    libatk1.0-0t64                  libgtk-3-0t64                   
libsoup-3.0-0           libvorbisenc2                          qemu-system-gui
    libatspi2.0-0t64                libgtk-3-bin                    
libsoup-3.0-common      libvpx9                                
qemu-system-modules-opengl
    libavahi-client3                libgtk-3-common                 
libspa-0.2-modules      libvte-2.91-0                          
qemu-system-modules-spice
    libavahi-common-data            libharfbuzz0b                   libspeex1   
            libvte-2.91-common                     qemu-system-x86
    libavahi-common3                libiec61883-0                   
libspice-server1        libvulkan1                             qemu-utils
    libavc1394-0                    libiscsi7                       libssh-4    
            libwavpack1                            seabios
    libboost-iostreams1.83.0        libjack-jackd2-0                libtag1v5   
            libwayland-client0                     swtpm
    libboost-thread1.83.0           libjbig0                        
libtag1v5-vanilla       libwayland-cursor0                     swtpm-tools
    libbrlapi0.8                    libjpeg-turbo8                  
libthai-data            libwayland-egl1                        systemd-container
    libcaca0                        libjpeg8                        libthai0    
            libwayland-server0                     ubuntu-mono
    libcacard0                      liblcms2-2                      libtheora0  
            libwebp7                               x11-common
  
  Suggested packages:
    adwaita-icon-theme-legacy  oss-compat             pulseaudio                
 libvirt-clients-qemu                        libvirt-daemon-driver-vbox     
nfs-common
    gvfs                       libvisual-0.4-plugins  libraw1394-doc            
 libvirt-login-shell                         libvirt-daemon-driver-xen      
samba
    alsa-utils                 jackd2                 librsvg2-bin              
 libvirt-daemon-driver-storage-gluster       libvirt-daemon-plugin-sanlock  vde2
    libasound2-plugins         liblcms2-utils         xdg-utils                 
 libvirt-daemon-driver-storage-iscsi-direct  auditd                         
trousers
    colord                     opus-tools             speex                     
 libvirt-daemon-driver-storage-rbd           systemtap
    cups-common                pcscd                  gstreamer1.0-libav        
 libvirt-daemon-driver-storage-zfs           numad
    libdv-bin                  pipewire               gstreamer1.0-plugins-ugly 
 libvirt-daemon-driver-lxc                   passt
  
  Summary:
    Upgrading: 1, Installing: 221, Removing: 0, Not Upgrading: 1
    Download size: 111 MB
    Space needed: 473 MB / 7106 MB available
  
  Continue? [Y/n] Y
  Get:1 http://archive.ubuntu.com/ubuntu plucky/main amd64 libxml2 amd64 
2.12.7+dfsg+really2.9.14-0.2ubuntu2 [771 kB]
  ...
  Selecting previously unselected package libvirt-clients.
  Preparing to unpack .../178-libvirt-clients_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-clients (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-common.
  Preparing to unpack .../179-libvirt-daemon-common_10.10.0-1ubuntu2_amd64.deb 
...
  Adding 'diversion of /lib/systemd/system/libvirt-guests.service to 
/lib/systemd/system/libvirt-guests.service.usr-is-merged by 
libvirt-daemon-common'
  Adding 'diversion of /lib/systemd/system/virt-guest-shutdown.target to 
/lib/systemd/system/virt-guest-shutdown.target.usr-is-merged by 
libvirt-daemon-common'
  Unpacking libvirt-daemon-common (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-log.
  Preparing to unpack .../180-libvirt-daemon-log_10.10.0-1ubuntu2_amd64.deb ...
  Adding 'diversion of /lib/systemd/system/virtlogd-admin.socket to 
/lib/systemd/system/virtlogd-admin.socket.usr-is-merged by libvirt-daemon-log'
  Adding 'diversion of /lib/systemd/system/virtlogd.service to 
/lib/systemd/system/virtlogd.service.usr-is-merged by libvirt-daemon-log'
  Adding 'diversion of /lib/systemd/system/virtlogd.socket to 
/lib/systemd/system/virtlogd.socket.usr-is-merged by libvirt-daemon-log'
  Unpacking libvirt-daemon-log (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon.
  Preparing to unpack .../181-libvirt-daemon_10.10.0-1ubuntu2_amd64.deb ...
  Adding 'diversion of /lib/systemd/system/libvirtd-admin.socket to 
/lib/systemd/system/libvirtd-admin.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd-ro.socket to 
/lib/systemd/system/libvirtd-ro.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd-tcp.socket to 
/lib/systemd/system/libvirtd-tcp.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd-tls.socket to 
/lib/systemd/system/libvirtd-tls.socket.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd.service to 
/lib/systemd/system/libvirtd.service.usr-is-merged by libvirt-daemon'
  Adding 'diversion of /lib/systemd/system/libvirtd.socket to 
/lib/systemd/system/libvirtd.socket.usr-is-merged by libvirt-daemon'
  Unpacking libvirt-daemon (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-network.
  Preparing to unpack 
.../182-libvirt-daemon-driver-network_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-network (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-config-network.
  Preparing to unpack 
.../183-libvirt-daemon-config-network_10.10.0-1ubuntu2_all.deb ...
  Unpacking libvirt-daemon-config-network (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-nwfilter.
  Preparing to unpack 
.../184-libvirt-daemon-driver-nwfilter_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-nwfilter (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-config-nwfilter.
  Preparing to unpack 
.../185-libvirt-daemon-config-nwfilter_10.10.0-1ubuntu2_all.deb ...
  Unpacking libvirt-daemon-config-nwfilter (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-interface.
  Preparing to unpack 
.../186-libvirt-daemon-driver-interface_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-interface (10.10.0-1ubuntu2) ...
  Selecting previously unselected package mdevctl.
  Preparing to unpack .../187-mdevctl_1.3.0-1ubuntu4_amd64.deb ...
  Unpacking mdevctl (1.3.0-1ubuntu4) ...
  Selecting previously unselected package libvirt-daemon-driver-nodedev.
  Preparing to unpack 
.../188-libvirt-daemon-driver-nodedev_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-nodedev (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libfdt1:amd64.
  Preparing to unpack .../189-libfdt1_1.7.2-2_amd64.deb ...
  Unpacking libfdt1:amd64 (1.7.2-2) ...
  Selecting previously unselected package qemu-system-common.
  Preparing to unpack 
.../190-qemu-system-common_1%3a9.0.2+ds-4ubuntu8_amd64.deb ...
  Unpacking qemu-system-common (1:9.0.2+ds-4ubuntu8) ...
  Selecting previously unselected package qemu-system-data.
  Preparing to unpack .../191-qemu-system-data_1%3a9.0.2+ds-4ubuntu8_all.deb ...
  Unpacking qemu-system-data (1:9.0.2+ds-4ubuntu8) ...
  Selecting previously unselected package seabios.
  Preparing to unpack .../192-seabios_1.16.3-2_all.deb ...
  Unpacking seabios (1.16.3-2) ...
  Selecting previously unselected package qemu-system-x86.
  Preparing to unpack .../193-qemu-system-x86_1%3a9.0.2+ds-4ubuntu8_amd64.deb 
...
  Unpacking qemu-system-x86 (1:9.0.2+ds-4ubuntu8) ...
  Selecting previously unselected package systemd-container.
  Preparing to unpack .../194-systemd-container_257-2ubuntu1_amd64.deb ...
  Unpacking systemd-container (257-2ubuntu1) ...
  Selecting previously unselected package libvirt-daemon-driver-qemu.
  Preparing to unpack 
.../195-libvirt-daemon-driver-qemu_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-qemu (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-secret.
  Preparing to unpack 
.../196-libvirt-daemon-driver-secret_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-secret (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage.
  Preparing to unpack 
.../197-libvirt-daemon-driver-storage_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-disk.
  Preparing to unpack 
.../198-libvirt-daemon-driver-storage-disk_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-disk (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-iscsi.
  Preparing to unpack 
.../199-libvirt-daemon-driver-storage-iscsi_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-iscsi (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-logical.
  Preparing to unpack 
.../200-libvirt-daemon-driver-storage-logical_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-logical (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-mpath.
  Preparing to unpack 
.../201-libvirt-daemon-driver-storage-mpath_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-mpath (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-driver-storage-scsi.
  Preparing to unpack 
.../202-libvirt-daemon-driver-storage-scsi_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-driver-storage-scsi (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-lock.
  Preparing to unpack .../203-libvirt-daemon-lock_10.10.0-1ubuntu2_amd64.deb ...
  Adding 'diversion of /lib/systemd/system/virtlockd-admin.socket to 
/lib/systemd/system/virtlockd-admin.socket.usr-is-merged by libvirt-daemon-lock'
  Adding 'diversion of /lib/systemd/system/virtlockd.service to 
/lib/systemd/system/virtlockd.service.usr-is-merged by libvirt-daemon-lock'
  Adding 'diversion of /lib/systemd/system/virtlockd.socket to 
/lib/systemd/system/virtlockd.socket.usr-is-merged by libvirt-daemon-lock'
  Unpacking libvirt-daemon-lock (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-plugin-lockd.
  Preparing to unpack 
.../204-libvirt-daemon-plugin-lockd_10.10.0-1ubuntu2_amd64.deb ...
  Unpacking libvirt-daemon-plugin-lockd (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-daemon-system.
  Preparing to unpack .../205-libvirt-daemon-system_10.10.0-1ubuntu2_amd64.deb 
...
  Unpacking libvirt-daemon-system (10.10.0-1ubuntu2) ...
  Selecting previously unselected package libvirt-l10n.
  Preparing to unpack .../206-libvirt-l10n_10.10.0-1ubuntu2_all.deb ...
  Unpacking libvirt-l10n (10.10.0-1ubuntu2) ...
  ...
  
  But then after install, network is inactive
  
  root@p-libvirt:~# virsh net-list --all
   Name      State      Autostart   Persistent
  ----------------------------------------------
   default   inactive   yes         yes
  
  I could start it:
  
  root@p-libvirt:~# virsh net-start default
  Network default started
  
  root@p-libvirt:~# virsh net-list
   Name      State    Autostart   Persistent
  --------------------------------------------
   default   active   yes         yes
  
  So maybe it is started on first demand now?
  Or our auto-starting config which we had is broken by the merge of the latest 
versions?

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

Title:
  default network no more activated in 10.10

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


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

Reply via email to