Before the fix - confirming the problem and the repro steps

Noble
root@n:~# uvt-simplestreams-libvirt --verbose sync --source 
http://cloud-images.ubuntu.com/daily arch=amd64 label=daily release=noble
Adding: com.ubuntu.cloud.daily:server:24.04:amd64 20250805
root@n:~# uvt-kvm create --password=ubuntu n arch=amd64 label=daily 
release=noble
Warning: using --password from the command line is not secure and should be 
used for debugging only.
Warning: '/root/.ssh/id_rsa.pub' not found; instance will be started with no 
ssh access by default.
root@n:~# vim net-add-test.xml
root@n:~# virsh dominfo n | grep UUID
UUID:           19f7aa87-fa92-4dc7-b061-19eadfbfc208
root@n:~# grep dev.*tun 
/etc/apparmor.d/libvirt/libvirt-19f7aa87-fa92-4dc7-b061-19eadfbfc208.files 
  "/dev/net/tun" rwk,
root@n:~# for i in $(seq 1 10); do virsh attach-device n net-add-test.xml; 
sleep 1; virsh detach-device n net-add-test.xml; done
Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

root@n:~# grep dev.*tun 
/etc/apparmor.d/libvirt/libvirt-19f7aa87-fa92-4dc7-b061-19eadfbfc208.files 
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,



Plucky
root@p:~# uvt-simplestreams-libvirt --verbose sync --source 
http://cloud-images.ubuntu.com/daily arch=amd64 label=daily release=noble
Adding: com.ubuntu.cloud.daily:server:24.04:amd64 20250805
root@p:~# uvt-kvm create --password=ubuntu n arch=amd64 label=daily 
release=noble
Warning: using --password from the command line is not secure and should be 
used for debugging only.
Warning: '/root/.ssh/id_rsa.pub' not found; instance will be started with no 
ssh access by default.
root@p:~# virsh dominfo n | grep UUID
UUID:           c04f9744-3cac-4a60-86fd-1bb3b382e99e
root@p:~# grep dev.*tun 
/etc/apparmor.d/libvirt/libvirt-c04f9744-3cac-4a60-86fd-1bb3b382e99e.files
  "/dev/net/tun" rwk,
root@p:~# for i in $(seq 1 10); do virsh attach-device n net-add-test.xml; 
sleep 1; virsh detach-device n net-add-test.xml; done
Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

root@p:~# grep dev.*tun 
/etc/apparmor.d/libvirt/libvirt-c04f9744-3cac-4a60-86fd-1bb3b382e99e.files
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,
  "/dev/net/tun" rwk,


---


Installing from proposed

Noble

root@n:~# apt install -t noble-proposed libvirt-clients libvirt-daemon 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libvirt-daemon-config-network libvirt-daemon-config-nwfilter 
libvirt-daemon-driver-qemu libvirt-daemon-system libvirt-daemon-system-systemd 
libvirt-l10n libvirt0
Suggested packages:
  libvirt-clients-qemu libvirt-login-shell 
libvirt-daemon-driver-storage-gluster 
libvirt-daemon-driver-storage-iscsi-direct libvirt-daemon-driver-storage-rbd
  libvirt-daemon-driver-storage-zfs libvirt-daemon-driver-lxc 
libvirt-daemon-driver-vbox libvirt-daemon-driver-xen numad passt auditd 
nfs-common pm-utils systemtap zfsutils
The following packages will be upgraded:
  libvirt-clients libvirt-daemon libvirt-daemon-config-network 
libvirt-daemon-config-nwfilter libvirt-daemon-driver-qemu libvirt-daemon-system 
libvirt-daemon-system-systemd libvirt-l10n
  libvirt0
9 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
Need to get 3499 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 
libvirt-daemon-config-nwfilter all 10.0.0-2ubuntu8.9 [6038 B]
Get:2 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 
libvirt-daemon-driver-qemu amd64 10.0.0-2ubuntu8.9 [740 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 
libvirt-clients amd64 10.0.0-2ubuntu8.9 [438 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 libvirt-daemon 
amd64 10.0.0-2ubuntu8.9 [431 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 
libvirt-daemon-system amd64 10.0.0-2ubuntu8.9 [49.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 
libvirt-daemon-config-network all 10.0.0-2ubuntu8.9 [3120 B]
Get:7 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 libvirt-l10n 
all 10.0.0-2ubuntu8.9 [1148 B]
Get:8 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 
libvirt-daemon-system-systemd all 10.0.0-2ubuntu8.9 [1372 B]
Get:9 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 libvirt0 amd64 
10.0.0-2ubuntu8.9 [1829 kB]
Fetched 3499 kB in 1s (5425 kB/s)  
Preconfiguring packages ...
(Reading database ... 53617 files and directories currently installed.)
Preparing to unpack 
.../0-libvirt-daemon-config-nwfilter_10.0.0-2ubuntu8.9_all.deb ...
Unpacking libvirt-daemon-config-nwfilter (10.0.0-2ubuntu8.9) over 
(10.0.0-2ubuntu8.8) ...
Preparing to unpack 
.../1-libvirt-daemon-driver-qemu_10.0.0-2ubuntu8.9_amd64.deb ...
Unpacking libvirt-daemon-driver-qemu (10.0.0-2ubuntu8.9) over 
(10.0.0-2ubuntu8.8) ...
Preparing to unpack .../2-libvirt-clients_10.0.0-2ubuntu8.9_amd64.deb ...
Unpacking libvirt-clients (10.0.0-2ubuntu8.9) over (10.0.0-2ubuntu8.8) ...
Preparing to unpack .../3-libvirt-daemon_10.0.0-2ubuntu8.9_amd64.deb ...
Unpacking libvirt-daemon (10.0.0-2ubuntu8.9) over (10.0.0-2ubuntu8.8) ...
Preparing to unpack .../4-libvirt-daemon-system_10.0.0-2ubuntu8.9_amd64.deb ...
Unpacking libvirt-daemon-system (10.0.0-2ubuntu8.9) over (10.0.0-2ubuntu8.8) ...
Preparing to unpack 
.../5-libvirt-daemon-config-network_10.0.0-2ubuntu8.9_all.deb ...
Unpacking libvirt-daemon-config-network (10.0.0-2ubuntu8.9) over 
(10.0.0-2ubuntu8.8) ...
Preparing to unpack .../6-libvirt-l10n_10.0.0-2ubuntu8.9_all.deb ...
Unpacking libvirt-l10n (10.0.0-2ubuntu8.9) over (10.0.0-2ubuntu8.8) ...
Preparing to unpack 
.../7-libvirt-daemon-system-systemd_10.0.0-2ubuntu8.9_all.deb ...
Unpacking libvirt-daemon-system-systemd (10.0.0-2ubuntu8.9) over 
(10.0.0-2ubuntu8.8) ...
Preparing to unpack .../8-libvirt0_10.0.0-2ubuntu8.9_amd64.deb ...
Unpacking libvirt0:amd64 (10.0.0-2ubuntu8.9) over (10.0.0-2ubuntu8.8) ...
Setting up libvirt0:amd64 (10.0.0-2ubuntu8.9) ...
Setting up libvirt-daemon-config-nwfilter (10.0.0-2ubuntu8.9) ...
Setting up libvirt-daemon-config-network (10.0.0-2ubuntu8.9) ...
Setting up libvirt-clients (10.0.0-2ubuntu8.9) ...
Setting up libvirt-l10n (10.0.0-2ubuntu8.9) ...
Setting up libvirt-daemon-driver-qemu (10.0.0-2ubuntu8.9) ...
Setting up libvirt-daemon-system-systemd (10.0.0-2ubuntu8.9) ...
Setting up libvirt-daemon (10.0.0-2ubuntu8.9) ...
Setting up libvirt-daemon-system (10.0.0-2ubuntu8.9) ...
Setting up libvirt-daemon dnsmasq configuration.
Processing triggers for man-db (2.12.0-4build2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.6) ...
Scanning processes...                                                           
                                                                                
                               
Scanning candidates...                                                          
                                                                                
                               

Restarting services...

Service restarts being deferred:
 systemctl restart virtlockd.service
 systemctl restart virtlogd.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this
host.


Plucky

root@p:~# apt install -t plucky-proposed libvirt-clients libvirt-daemon
Upgrading:                      
  libvirt-clients                libvirt-daemon-config-nwfilter   
libvirt-daemon-driver-qemu           libvirt-daemon-driver-storage-logical  
libvirt-daemon-plugin-lockd
  libvirt-common                 libvirt-daemon-driver-interface  
libvirt-daemon-driver-secret         libvirt-daemon-driver-storage-mpath    
libvirt-daemon-system
  libvirt-daemon                 libvirt-daemon-driver-network    
libvirt-daemon-driver-storage        libvirt-daemon-driver-storage-scsi     
libvirt-l10n
  libvirt-daemon-common          libvirt-daemon-driver-nodedev    
libvirt-daemon-driver-storage-disk   libvirt-daemon-lock                    
libvirt0
  libvirt-daemon-config-network  libvirt-daemon-driver-nwfilter   
libvirt-daemon-driver-storage-iscsi  libvirt-daemon-log

Summary:
  Upgrading: 24, Installing: 0, Removing: 0, Not Upgrading: 11
  Download size: 3933 kB
  Space needed: 0 B / 39.6 GB available

Continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 libvirt-l10n 
all 11.0.0-2ubuntu6.3 [1166 B]
Get:2 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-common amd64 11.0.0-2ubuntu6.3 [108 kB]
Get:3 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-config-network all 11.0.0-2ubuntu6.3 [2666 B]
Get:4 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-plugin-lockd amd64 11.0.0-2ubuntu6.3 [10.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-lock amd64 11.0.0-2ubuntu6.3 [35.0 kB]
Get:6 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-storage-scsi amd64 11.0.0-2ubuntu6.3 [7362 B]
Get:7 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-storage-mpath amd64 11.0.0-2ubuntu6.3 [4804 B]
Get:8 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-storage-logical amd64 11.0.0-2ubuntu6.3 [11.2 kB]
Get:9 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-storage-iscsi amd64 11.0.0-2ubuntu6.3 [7350 B]
Get:10 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-storage-disk amd64 11.0.0-2ubuntu6.3 [10.3 kB]
Get:11 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-storage amd64 11.0.0-2ubuntu6.3 [65.1 kB]
Get:12 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-secret amd64 11.0.0-2ubuntu6.3 [9520 B]
Get:13 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-config-nwfilter all 11.0.0-2ubuntu6.3 [5574 B]
Get:14 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-nwfilter amd64 11.0.0-2ubuntu6.3 [50.8 kB]
Get:15 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-nodedev amd64 11.0.0-2ubuntu6.3 [37.0 kB]
Get:16 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-network amd64 11.0.0-2ubuntu6.3 [64.5 kB]
Get:17 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-interface amd64 11.0.0-2ubuntu6.3 [12.5 kB]
Get:18 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 libvirt0 
amd64 11.0.0-2ubuntu6.3 [1759 kB]
Get:19 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-common amd64 11.0.0-2ubuntu6.3 [221 kB]
Get:20 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-clients amd64 11.0.0-2ubuntu6.3 [460 kB]
Get:21 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-driver-qemu amd64 11.0.0-2ubuntu6.3 [810 kB]
Get:22 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-system amd64 11.0.0-2ubuntu6.3 [1684 B]
Get:23 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon amd64 11.0.0-2ubuntu6.3 [197 kB]
Get:24 http://archive.ubuntu.com/ubuntu plucky-proposed/main amd64 
libvirt-daemon-log amd64 11.0.0-2ubuntu6.3 [40.5 kB]
Fetched 3933 kB in 1s (6029 kB/s)            
Preconfiguring packages ...
(Reading database ... 44706 files and directories currently installed.)
Preparing to unpack .../00-libvirt-l10n_11.0.0-2ubuntu6.3_all.deb ...
Unpacking libvirt-l10n (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack .../01-libvirt-daemon-common_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-common (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../02-libvirt-daemon-config-network_11.0.0-2ubuntu6.3_all.deb ...
Unpacking libvirt-daemon-config-network (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../03-libvirt-daemon-plugin-lockd_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-plugin-lockd (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack .../04-libvirt-daemon-lock_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-lock (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../05-libvirt-daemon-driver-storage-scsi_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-storage-scsi (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../06-libvirt-daemon-driver-storage-mpath_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-storage-mpath (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../07-libvirt-daemon-driver-storage-logical_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-storage-logical (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../08-libvirt-daemon-driver-storage-iscsi_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-storage-iscsi (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../09-libvirt-daemon-driver-storage-disk_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-storage-disk (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../10-libvirt-daemon-driver-storage_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-storage (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../11-libvirt-daemon-driver-secret_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-secret (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../12-libvirt-daemon-config-nwfilter_11.0.0-2ubuntu6.3_all.deb ...
Unpacking libvirt-daemon-config-nwfilter (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../13-libvirt-daemon-driver-nwfilter_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-nwfilter (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../14-libvirt-daemon-driver-nodedev_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-nodedev (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../15-libvirt-daemon-driver-network_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-network (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../16-libvirt-daemon-driver-interface_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-interface (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack .../17-libvirt0_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt0:amd64 (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack .../18-libvirt-common_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-common (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack .../19-libvirt-clients_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-clients (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack 
.../20-libvirt-daemon-driver-qemu_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-driver-qemu (11.0.0-2ubuntu6.3) over 
(11.0.0-2ubuntu6.2) ...
Preparing to unpack .../21-libvirt-daemon-system_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-system (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack .../22-libvirt-daemon_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Preparing to unpack .../23-libvirt-daemon-log_11.0.0-2ubuntu6.3_amd64.deb ...
Unpacking libvirt-daemon-log (11.0.0-2ubuntu6.3) over (11.0.0-2ubuntu6.2) ...
Setting up libvirt-common (11.0.0-2ubuntu6.3) ...
Setting up libvirt0:amd64 (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-log (11.0.0-2ubuntu6.3) ...
Setting up libvirt-clients (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-common (11.0.0-2ubuntu6.3) ...
Setting up libvirt-l10n (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-lock (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-plugin-lockd (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-nwfilter (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-network (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-secret (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-nodedev (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-storage (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-interface (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-config-nwfilter (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-storage-mpath (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-storage-scsi (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-config-network (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-storage-logical (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-storage-disk (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-storage-iscsi (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon-driver-qemu (11.0.0-2ubuntu6.3) ...
Setting up libvirt-daemon dnsmasq configuration.
Setting up libvirt-daemon-system (11.0.0-2ubuntu6.3) ...
Processing triggers for man-db (2.13.0-1) ...
Processing triggers for libc-bin (2.41-6ubuntu1.2) ...
Processing triggers for libvirt-daemon (11.0.0-2ubuntu6.3) ...
Scanning processes...                                                           
                                                                                
                               
Scanning candidates...                                                          
                                                                                
                               

Restarting services...

Service restarts being deferred:
 systemctl restart virtlockd.service
 systemctl restart virtlogd.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this
host.



---


Testing the fix


Noble

root@n:~# virsh shutdown n
Domain 'n' is being shutdown

root@n:~# virsh list
 Id   Name   State
--------------------

root@n:~# virsh start n
Domain 'n' started

root@n:~# virsh dominfo n | grep UUID
UUID:           19f7aa87-fa92-4dc7-b061-19eadfbfc208
root@n:~# for i in $(seq 1 10); do virsh attach-device n net-add-test.xml; 
sleep 1; virsh detach-device n net-add-test.xml; done
Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

root@n:~# grep dev.*tun 
/etc/apparmor.d/libvirt/libvirt-19f7aa87-fa92-4dc7-b061-19eadfbfc208.files 
  "/dev/net/tun" rwk,


Plucky

root@p:~# virsh shutdown n
Domain 'n' is being shutdown

root@p:~# virsh list
 Id   Name   State
--------------------

root@p:~# virsh start n
Domain 'n' started

root@p:~# virsh dominfo n | grep UUID
UUID:           c04f9744-3cac-4a60-86fd-1bb3b382e99e
root@p:~# for i in $(seq 1 10); do virsh attach-device n net-add-test.xml; 
sleep 1; virsh detach-device n net-add-test.xml; done
Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

Device attached successfully

Device detached successfully

root@p:~# grep dev.*tun 
/etc/apparmor.d/libvirt/libvirt-c04f9744-3cac-4a60-86fd-1bb3b382e99e.files
  "/dev/net/tun" rwk,


--

Thereby both release fully tested and working fine.
Setting tags accordingly

** Tags removed: verification-needed verification-needed-noble 
verification-needed-plucky
** Tags added: verification-done verification-done-noble 
verification-done-plucky

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

Title:
  Apparmor /dev/net/tun overflow

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


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

Reply via email to