Tested xenial:
TL;DR working as it should now - properly regenerating "over" the cache and 
thereby working correctly.

$ lxc launch ubuntu-daily:x xenial-bug-1707400 --profile default --profile kvm
Creating xenial-bug-1707400
Starting xenial-bug-1707400
[✓]─[paelzer@lap:~]──[60422]──[19:10 Mi Aug 09]──
$ lxc exec xenial-bug-1707400 bash
root@xenial-bug-1707400:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]        
 
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]      
            
Get:5 http://security.ubuntu.com/ubuntu xenial-security/main Sources [85.8 kB]  
   
Get:6 http://archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]             
           
Get:7 http://security.ubuntu.com/ubuntu xenial-security/restricted Sources 
[2604 B]                   
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [37.8 
kB]                    
Get:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse Sources 
[1144 B]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages 
[334 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en 
[141 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 
Packages [152 kB]     
Get:13 http://security.ubuntu.com/ubuntu xenial-security/universe 
Translation-en [78.2 kB]    
Get:14 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 
Packages [2752 B]    
Get:15 http://security.ubuntu.com/ubuntu xenial-security/multiverse 
Translation-en [1232 B]
Get:16 http://archive.ubuntu.com/ubuntu xenial/restricted Sources [4808 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial/universe Sources [7728 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7532 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4354 
kB]                                                                
Get:21 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 
kB]                                                               
Get:22 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 
kB]                                                               
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [267 kB]    
                                                                
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [3012 
B]                                                              
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [167 
kB]                                                                
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [7232 
B]                                                              
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [608 
kB]                                                             
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [245 
kB]                                                             
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages 
[512 kB]                                                         
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en 
[200 kB]                                                         
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 
Packages [15.5 kB]                                                      
Get:32 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse 
Translation-en [7540 B]                                                       
Get:33 http://archive.ubuntu.com/ubuntu xenial-backports/main Sources [3312 B]  
                                                                
Get:34 http://archive.ubuntu.com/ubuntu xenial-backports/universe Sources [4404 
B]                                                              
Get:35 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages 
[4684 B]                                                           
Get:36 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en 
[3216 B]                                                           
Get:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 
Packages [5800 B]                                                       
Get:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe 
Translation-en [3004 B]                                                       
Fetched 24.1 MB in 10s (2377 kB/s)                                              
                                                                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
root@xenial-bug-1707400:~# apt install libvirt-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  augeas-lenses bridge-utils cgmanager ebtables libaugeas0 libavahi-client3 
libavahi-common-data libavahi-common3 libboost-iostreams1.58.0
  libboost-random1.58.0 libboost-system1.58.0 libboost-thread1.58.0 
libcgmanager0 libnetcf1 libnih-dbus1 libnl-3-200 libnl-route-3-200 libnspr4
  libnss3 libnss3-nssdb libpciaccess0 librados2 librbd1 libvirt0 libx86-1 
libxen-4.6 libxenstore3.0 libxml2-utils libxslt1.1 libyajl2 pm-utils
  vbetool
Suggested packages:
  augeas-doc augeas-tools qemu-kvm | qemu radvd cpufrequtils wireless-tools 
radeontool
The following NEW packages will be installed:
  augeas-lenses bridge-utils cgmanager ebtables libaugeas0 libavahi-client3 
libavahi-common-data libavahi-common3 libboost-iostreams1.58.0
  libboost-random1.58.0 libboost-system1.58.0 libboost-thread1.58.0 
libcgmanager0 libnetcf1 libnih-dbus1 libnl-3-200 libnl-route-3-200 libnspr4
  libnss3 libnss3-nssdb libpciaccess0 librados2 librbd1 libvirt-bin libvirt0 
libx86-1 libxen-4.6 libxenstore3.0 libxml2-utils libxslt1.1
  libyajl2 pm-utils vbetool
0 upgraded, 33 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.4 MB of archives.
After this operation, 39.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 libx86-1 amd64 
1.1+ds1-10 [83.0 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 libyajl2 amd64 2.1.0-2 
[19.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 augeas-lenses all 
1.4.0-0ubuntu1 [263 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 bridge-utils amd64 
1.5-9ubuntu1 [28.6 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 libnih-dbus1 amd64 
1.0.3-4.3ubuntu1 [14.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 libcgmanager0 amd64 
0.39-2ubuntu5 [34.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 cgmanager amd64 
0.39-2ubuntu5 [76.4 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 ebtables amd64 
2.0.10.4-3.4ubuntu2 [79.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/main amd64 libaugeas0 amd64 
1.4.0-0ubuntu1 [154 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial/main amd64 libavahi-common-data 
amd64 0.6.32~rc+dfsg-1ubuntu2 [21.7 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial/main amd64 libavahi-common3 
amd64 0.6.32~rc+dfsg-1ubuntu2 [21.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial/main amd64 libavahi-client3 
amd64 0.6.32~rc+dfsg-1ubuntu2 [25.1 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 
libboost-iostreams1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [29.0 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 
libboost-system1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [9146 B]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 
libboost-random1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [11.7 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 
libboost-thread1.58.0 amd64 1.58.0+dfsg-5ubuntu3.1 [47.0 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnl-3-200 
amd64 3.2.27-1ubuntu0.16.04.1 [52.2 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 
libnl-route-3-200 amd64 3.2.27-1ubuntu0.16.04.1 [124 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnspr4 
amd64 2:4.13.1-0ubuntu0.16.04.1 [112 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnss3-nssdb 
all 2:3.28.4-0ubuntu0.16.04.2 [10.6 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnss3 amd64 
2:3.28.4-0ubuntu0.16.04.2 [1147 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/main amd64 libpciaccess0 amd64 
0.13.4-1 [18.1 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librados2 
amd64 10.2.7-0ubuntu0.16.04.1 [1642 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 librbd1 amd64 
10.2.7-0ubuntu0.16.04.1 [2180 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxslt1.1 
amd64 1.1.28-2.1ubuntu0.1 [145 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial/main amd64 libnetcf1 amd64 
1:0.2.8-1ubuntu1 [46.3 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 
libxenstore3.0 amd64 4.6.5-0ubuntu1.2 [21.8 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxen-4.6 
amd64 4.6.5-0ubuntu1.2 [345 kB]
Get:29 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libvirt0 
amd64 1.3.1-1ubuntu10.12 [1124 kB]
Get:30 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libvirt-bin 
amd64 1.3.1-1ubuntu10.12 [2424 kB]
Get:31 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libxml2-utils 
amd64 2.9.3+dfsg1-1ubuntu0.2 [35.0 kB]
Get:32 http://archive.ubuntu.com/ubuntu xenial/main amd64 pm-utils all 1.4.1-16 
[48.6 kB]
Get:33 http://archive.ubuntu.com/ubuntu xenial/main amd64 vbetool amd64 1.1-3 
[11.6 kB]
Fetched 10.4 MB in 5s (1801 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libx86-1:amd64.
(Reading database ... 25506 files and directories currently installed.)
Preparing to unpack .../libx86-1_1.1+ds1-10_amd64.deb ...
Unpacking libx86-1:amd64 (1.1+ds1-10) ...
Selecting previously unselected package libyajl2:amd64.
Preparing to unpack .../libyajl2_2.1.0-2_amd64.deb ...
Unpacking libyajl2:amd64 (2.1.0-2) ...
Selecting previously unselected package augeas-lenses.
Preparing to unpack .../augeas-lenses_1.4.0-0ubuntu1_all.deb ...
Unpacking augeas-lenses (1.4.0-0ubuntu1) ...
Selecting previously unselected package bridge-utils.
Preparing to unpack .../bridge-utils_1.5-9ubuntu1_amd64.deb ...
Unpacking bridge-utils (1.5-9ubuntu1) ...
Selecting previously unselected package libnih-dbus1:amd64.
Preparing to unpack .../libnih-dbus1_1.0.3-4.3ubuntu1_amd64.deb ...
Unpacking libnih-dbus1:amd64 (1.0.3-4.3ubuntu1) ...
Selecting previously unselected package libcgmanager0:amd64.
Preparing to unpack .../libcgmanager0_0.39-2ubuntu5_amd64.deb ...
Unpacking libcgmanager0:amd64 (0.39-2ubuntu5) ...
Selecting previously unselected package cgmanager.
Preparing to unpack .../cgmanager_0.39-2ubuntu5_amd64.deb ...
Unpacking cgmanager (0.39-2ubuntu5) ...
Selecting previously unselected package ebtables.
Preparing to unpack .../ebtables_2.0.10.4-3.4ubuntu2_amd64.deb ...
Unpacking ebtables (2.0.10.4-3.4ubuntu2) ...
Selecting previously unselected package libaugeas0.
Preparing to unpack .../libaugeas0_1.4.0-0ubuntu1_amd64.deb ...
Unpacking libaugeas0 (1.4.0-0ubuntu1) ...
Selecting previously unselected package libavahi-common-data:amd64.
Preparing to unpack .../libavahi-common-data_0.6.32~rc+dfsg-1ubuntu2_amd64.deb 
...
Unpacking libavahi-common-data:amd64 (0.6.32~rc+dfsg-1ubuntu2) ...
Selecting previously unselected package libavahi-common3:amd64.
Preparing to unpack .../libavahi-common3_0.6.32~rc+dfsg-1ubuntu2_amd64.deb ...
Unpacking libavahi-common3:amd64 (0.6.32~rc+dfsg-1ubuntu2) ...
Selecting previously unselected package libavahi-client3:amd64.
Preparing to unpack .../libavahi-client3_0.6.32~rc+dfsg-1ubuntu2_amd64.deb ...
Unpacking libavahi-client3:amd64 (0.6.32~rc+dfsg-1ubuntu2) ...
Selecting previously unselected package libboost-iostreams1.58.0:amd64.
Preparing to unpack 
.../libboost-iostreams1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb ...
Unpacking libboost-iostreams1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libboost-system1.58.0:amd64.
Preparing to unpack .../libboost-system1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb 
...
Unpacking libboost-system1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libboost-random1.58.0:amd64.
Preparing to unpack .../libboost-random1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb 
...
Unpacking libboost-random1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libboost-thread1.58.0:amd64.
Preparing to unpack .../libboost-thread1.58.0_1.58.0+dfsg-5ubuntu3.1_amd64.deb 
...
Unpacking libboost-thread1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Selecting previously unselected package libnl-3-200:amd64.
Preparing to unpack .../libnl-3-200_3.2.27-1ubuntu0.16.04.1_amd64.deb ...
Unpacking libnl-3-200:amd64 (3.2.27-1ubuntu0.16.04.1) ...
Selecting previously unselected package libnl-route-3-200:amd64.
Preparing to unpack .../libnl-route-3-200_3.2.27-1ubuntu0.16.04.1_amd64.deb ...
Unpacking libnl-route-3-200:amd64 (3.2.27-1ubuntu0.16.04.1) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../libnspr4_2%3a4.13.1-0ubuntu0.16.04.1_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.13.1-0ubuntu0.16.04.1) ...
Selecting previously unselected package libnss3-nssdb.
Preparing to unpack .../libnss3-nssdb_2%3a3.28.4-0ubuntu0.16.04.2_all.deb ...
Unpacking libnss3-nssdb (2:3.28.4-0ubuntu0.16.04.2) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../libnss3_2%3a3.28.4-0ubuntu0.16.04.2_amd64.deb ...
Unpacking libnss3:amd64 (2:3.28.4-0ubuntu0.16.04.2) ...
Selecting previously unselected package libpciaccess0:amd64.
Preparing to unpack .../libpciaccess0_0.13.4-1_amd64.deb ...
Unpacking libpciaccess0:amd64 (0.13.4-1) ...
Selecting previously unselected package librados2.
Preparing to unpack .../librados2_10.2.7-0ubuntu0.16.04.1_amd64.deb ...
Unpacking librados2 (10.2.7-0ubuntu0.16.04.1) ...
Selecting previously unselected package librbd1.
Preparing to unpack .../librbd1_10.2.7-0ubuntu0.16.04.1_amd64.deb ...
Unpacking librbd1 (10.2.7-0ubuntu0.16.04.1) ...
Selecting previously unselected package libxslt1.1:amd64.
Preparing to unpack .../libxslt1.1_1.1.28-2.1ubuntu0.1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Selecting previously unselected package libnetcf1:amd64.
Preparing to unpack .../libnetcf1_1%3a0.2.8-1ubuntu1_amd64.deb ...
Unpacking libnetcf1:amd64 (1:0.2.8-1ubuntu1) ...
Selecting previously unselected package libxenstore3.0:amd64.
Preparing to unpack .../libxenstore3.0_4.6.5-0ubuntu1.2_amd64.deb ...
Unpacking libxenstore3.0:amd64 (4.6.5-0ubuntu1.2) ...
Selecting previously unselected package libxen-4.6:amd64.
Preparing to unpack .../libxen-4.6_4.6.5-0ubuntu1.2_amd64.deb ...
Unpacking libxen-4.6:amd64 (4.6.5-0ubuntu1.2) ...
Selecting previously unselected package libvirt0:amd64.
Preparing to unpack .../libvirt0_1.3.1-1ubuntu10.12_amd64.deb ...
Unpacking libvirt0:amd64 (1.3.1-1ubuntu10.12) ...
Selecting previously unselected package libvirt-bin.
Preparing to unpack .../libvirt-bin_1.3.1-1ubuntu10.12_amd64.deb ...
Unpacking libvirt-bin (1.3.1-1ubuntu10.12) ...
Selecting previously unselected package libxml2-utils.
Preparing to unpack .../libxml2-utils_2.9.3+dfsg1-1ubuntu0.2_amd64.deb ...
Unpacking libxml2-utils (2.9.3+dfsg1-1ubuntu0.2) ...
Selecting previously unselected package pm-utils.
Preparing to unpack .../pm-utils_1.4.1-16_all.deb ...
Unpacking pm-utils (1.4.1-16) ...
Selecting previously unselected package vbetool.
Preparing to unpack .../vbetool_1.1-3_amd64.deb ...
Unpacking vbetool (1.1-3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up libx86-1:amd64 (1.1+ds1-10) ...
Setting up libyajl2:amd64 (2.1.0-2) ...
Setting up augeas-lenses (1.4.0-0ubuntu1) ...
Setting up bridge-utils (1.5-9ubuntu1) ...
Setting up libnih-dbus1:amd64 (1.0.3-4.3ubuntu1) ...
Setting up libcgmanager0:amd64 (0.39-2ubuntu5) ...
Setting up cgmanager (0.39-2ubuntu5) ...
Setting up ebtables (2.0.10.4-3.4ubuntu2) ...
update-rc.d: warning: start and stop actions are no longer supported; falling 
back to defaults
Setting up libaugeas0 (1.4.0-0ubuntu1) ...
Setting up libavahi-common-data:amd64 (0.6.32~rc+dfsg-1ubuntu2) ...
Setting up libavahi-common3:amd64 (0.6.32~rc+dfsg-1ubuntu2) ...
Setting up libavahi-client3:amd64 (0.6.32~rc+dfsg-1ubuntu2) ...
Setting up libboost-iostreams1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libboost-system1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libboost-random1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libboost-thread1.58.0:amd64 (1.58.0+dfsg-5ubuntu3.1) ...
Setting up libnl-3-200:amd64 (3.2.27-1ubuntu0.16.04.1) ...
Setting up libnl-route-3-200:amd64 (3.2.27-1ubuntu0.16.04.1) ...
Setting up libnspr4:amd64 (2:4.13.1-0ubuntu0.16.04.1) ...
Setting up libpciaccess0:amd64 (0.13.4-1) ...
Setting up libxslt1.1:amd64 (1.1.28-2.1ubuntu0.1) ...
Setting up libnetcf1:amd64 (1:0.2.8-1ubuntu1) ...
Setting up libxenstore3.0:amd64 (4.6.5-0ubuntu1.2) ...
Setting up libxen-4.6:amd64 (4.6.5-0ubuntu1.2) ...
Setting up libvirt0:amd64 (1.3.1-1ubuntu10.12) ...
Setting up libxml2-utils (2.9.3+dfsg1-1ubuntu0.2) ...
Setting up pm-utils (1.4.1-16) ...
Setting up vbetool (1.1-3) ...
Setting up libnss3-nssdb (2:3.28.4-0ubuntu0.16.04.2) ...
Setting up libnss3:amd64 (2:3.28.4-0ubuntu0.16.04.2) ...
Setting up librados2 (10.2.7-0ubuntu0.16.04.1) ...
Setting up librbd1 (10.2.7-0ubuntu0.16.04.1) ...
Setting up libvirt-bin (1.3.1-1ubuntu10.12) ...
Adding group `libvirtd' (GID 116) ...
Done.
Setting up libvirt-bin dnsmasq configuration.
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@xenial-bug-1707400:~# virsh list
 Id    Name                           State
----------------------------------------------------

root@xenial-bug-1707400:~# systemctl systemctl status libvirt-bin
Unknown operation systemctl.
root@xenial-bug-1707400:~# systemctl status libvirt-bin          
● libvirt-bin.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor 
preset: enabled)
   Active: active (running) since Wed 2017-08-09 17:11:32 UTC; 51s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 2410 (libvirtd)
   CGroup: /system.slice/libvirt-bin.service
           ├─2410 /usr/sbin/libvirtd
           ├─2607 /usr/sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/lib/libvirt/libvirt_lease
           └─2608 /usr/sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/lib/libvirt/libvirt_lease

Aug 09 17:11:32 xenial-bug-1707400 libvirtd[2410]: Failed to open config space 
file '/sys/bus/pci/devices/0000:00:1f.6/config': Read-only file sy
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq[2607]: started, version 2.75 
cachesize 150
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq[2607]: compile time options: IPv6 
GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset aut
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq-dhcp[2607]: DHCP, IP range 
192.168.122.2 -- 192.168.122.254, lease time 1h
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq-dhcp[2607]: DHCP, sockets bound 
exclusively to interface virbr0
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq[2607]: reading /etc/resolv.conf
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq[2607]: using nameserver 10.0.4.1#53
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq[2607]: read /etc/hosts - 7 addresses
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq[2607]: read 
/var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Aug 09 17:11:37 xenial-bug-1707400 dnsmasq-dhcp[2607]: read 
/var/lib/libvirt/dnsmasq/default.hostsfile
root@xenial-bug-1707400:~# sed -ie 's/  network inet stream/  #network inet 
stream/' /etc/apparmor.d/usr.sbin.libvirtd
root@xenial-bug-1707400:~# apparmor_parser -r -T -W 
/etc/apparmor.d/usr.sbin.libvirtd
root@xenial-bug-1707400:~# sudo apt purge libvirt-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  augeas-lenses bridge-utils cgmanager ebtables libaugeas0 libavahi-client3 
libavahi-common-data libavahi-common3 libboost-iostreams1.58.0
  libboost-random1.58.0 libboost-system1.58.0 libboost-thread1.58.0 
libcgmanager0 libnetcf1 libnih-dbus1 libnl-3-200 libnl-route-3-200 libnspr4
  libnss3 libnss3-nssdb libpciaccess0 librados2 librbd1 libvirt0 libx86-1 
libxen-4.6 libxenstore3.0 libxml2-utils libxslt1.1 libyajl2 pm-utils
  vbetool
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  libvirt-bin*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 10.9 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 26456 files and directories currently installed.)
Removing libvirt-bin (1.3.1-1ubuntu10.12) ...
Warning: Stopping virtlockd.service, but it can still be activated by:
  virtlockd.socket
Warning: Stopping virtlogd.service, but it can still be activated by:
  virtlogd.socket
Removing libvirt-bin dnsmasq configuration
Purging configuration files for libvirt-bin (1.3.1-1ubuntu10.12) ...
/usr/sbin/delgroup: `libvirt-dnsmasq' still has `libvirtd' as their primary 
group!
dpkg: warning: while removing libvirt-bin, directory '/var/lib/libvirt/qemu' 
not empty so not removed
dpkg: warning: while removing libvirt-bin, directory 
'/etc/libvirt/qemu/networks/autostart' not empty so not removed
Processing triggers for man-db (2.7.5-1) ...
root@xenial-bug-1707400:~# ll /etc/apparmor.d/usr.sbin.libvirtd
ls: cannot access '/etc/apparmor.d/usr.sbin.libvirtd': No such file or directory
root@xenial-bug-1707400:~# apt install libvirt-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  qemu-kvm | qemu radvd
The following NEW packages will be installed:
  libvirt-bin
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2424 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libvirt-bin 
amd64 1.3.1-1ubuntu10.12 [2424 kB]
Fetched 2424 kB in 0s (4326 kB/s)      
Selecting previously unselected package libvirt-bin.
(Reading database ... 26275 files and directories currently installed.)
Preparing to unpack .../libvirt-bin_1.3.1-1ubuntu10.12_amd64.deb ...
Unpacking libvirt-bin (1.3.1-1ubuntu10.12) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libvirt-bin (1.3.1-1ubuntu10.12) ...
Setting up libvirt-bin dnsmasq configuration.
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@xenial-bug-1707400:~# virsh list
error: failed to connect to the hypervisor
error: no valid connection
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such 
file or directory

root@xenial-bug-1707400:~# systemctl status libvirt-bin
● libvirt-bin.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor 
preset: enabled)
   Active: inactive (dead) since Wed 2017-08-09 17:16:20 UTC; 51s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 4544 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/libvirt-bin.service
           ├─2607 /usr/sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/lib/libvirt/libvirt_lease
           └─2608 /usr/sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/lib/libvirt/libvirt_lease

Aug 09 17:16:14 xenial-bug-1707400 systemd[1]: Started Virtualization daemon.
Aug 09 17:16:14 xenial-bug-1707400 libvirtd[4544]: libvirt version: 1.3.1, 
package: 1ubuntu10.12 (Christian Ehrhardt <christian.ehrhardt@canonica
Aug 09 17:16:14 xenial-bug-1707400 libvirtd[4544]: hostname: 
xenial-bug-1707400.lxd
Aug 09 17:16:14 xenial-bug-1707400 libvirtd[4544]: operation failed: network 
'default' already exists with uuid 4c25e656-6bda-4f83-b7df-65263f9fc
Aug 09 17:16:20 xenial-bug-1707400 dnsmasq[2607]: read /etc/hosts - 7 addresses
Aug 09 17:16:20 xenial-bug-1707400 dnsmasq[2607]: read 
/var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses
Aug 09 17:16:20 xenial-bug-1707400 dnsmasq-dhcp[2607]: read 
/var/lib/libvirt/dnsmasq/default.hostsfile
Aug 09 17:16:20 xenial-bug-1707400 libvirtd[4544]: internal error: failed to 
initialize netcf
Aug 09 17:16:20 xenial-bug-1707400 libvirtd[4544]: Initialization of netcf 
state driver failed: internal error: failed to initialize netcf
Aug 09 17:16:20 xenial-bug-1707400 libvirtd[4544]: Driver state initialization 
failed
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# echo "deb http://archive.ubuntu.com/ubuntu 
xenial-proposed main restricted universe multiverse" >> /etc/apt/sources.list
root@xenial-bug-1707400:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]        
      
Get:3 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]      
                              
Get:4 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [253 kB]       
                     
Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease             
Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 Packages 
[77.1 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en 
[26.9 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial-proposed/restricted amd64 
Packages [708 B]
Get:9 http://archive.ubuntu.com/ubuntu xenial-proposed/restricted 
Translation-en [372 B]
Get:10 http://archive.ubuntu.com/ubuntu xenial-proposed/universe amd64 Packages 
[27.2 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en 
[12.0 kB]
Fetched 602 kB in 0s (945 kB/s)           
Reading package lists... Done
Building dependency tree       
Reading state information... Done
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# apt purge libvirt-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  augeas-lenses bridge-utils cgmanager ebtables libaugeas0 libavahi-client3 
libavahi-common-data libavahi-common3 libboost-iostreams1.58.0
  libboost-random1.58.0 libboost-system1.58.0 libboost-thread1.58.0 
libcgmanager0 libnetcf1 libnih-dbus1 libnl-3-200 libnl-route-3-200 libnspr4
  libnss3 libnss3-nssdb libpciaccess0 librados2 librbd1 libvirt0 libx86-1 
libxen-4.6 libxenstore3.0 libxml2-utils libxslt1.1 libyajl2 pm-utils
  vbetool
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  libvirt-bin*
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
After this operation, 10.9 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 26456 files and directories currently installed.)
Removing libvirt-bin (1.3.1-1ubuntu10.12) ...
^[[CWarning: Stopping virtlockd.service, but it can still be activated by:
  virtlockd.socket
Warning: Stopping virtlogd.service, but it can still be activated by:
  virtlogd.socket
Removing libvirt-bin dnsmasq configuration
Purging configuration files for libvirt-bin (1.3.1-1ubuntu10.12) ...
/usr/sbin/delgroup: `libvirt-dnsmasq' still has `libvirtd' as their primary 
group!
dpkg: warning: while removing libvirt-bin, directory '/var/lib/libvirt/qemu' 
not empty so not removed
dpkg: warning: while removing libvirt-bin, directory 
'/etc/libvirt/qemu/networks/autostart' not empty so not removed
Processing triggers for man-db (2.7.5-1) ...
root@xenial-bug-1707400:~# apt install libvirt-bin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libvirt0
Suggested packages:
  qemu-kvm | qemu radvd
The following NEW packages will be installed:
  libvirt-bin
The following packages will be upgraded:
  libvirt0
1 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 3539 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 libvirt0 
amd64 1.3.1-1ubuntu10.13 [1125 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 libvirt-bin 
amd64 1.3.1-1ubuntu10.13 [2415 kB]
Fetched 3539 kB in 1s (2434 kB/s)      
(Reading database ... 26275 files and directories currently installed.)
Preparing to unpack .../libvirt0_1.3.1-1ubuntu10.13_amd64.deb ...
Unpacking libvirt0:amd64 (1.3.1-1ubuntu10.13) over (1.3.1-1ubuntu10.12) ...
Selecting previously unselected package libvirt-bin.
Preparing to unpack .../libvirt-bin_1.3.1-1ubuntu10.13_amd64.deb ...
Unpacking libvirt-bin (1.3.1-1ubuntu10.13) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libvirt0:amd64 (1.3.1-1ubuntu10.13) ...
Setting up libvirt-bin (1.3.1-1ubuntu10.13) ...
Setting up libvirt-bin dnsmasq configuration.
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# 
root@xenial-bug-1707400:~# virsh list
 Id    Name                           State
----------------------------------------------------

root@xenial-bug-1707400:~# systemctl status libvirt-bin
● libvirt-bin.service - Virtualization daemon
   Loaded: loaded (/lib/systemd/system/libvirt-bin.service; enabled; vendor 
preset: enabled)
   Active: active (running) since Wed 2017-08-09 17:21:12 UTC; 15s ago
     Docs: man:libvirtd(8)
           http://libvirt.org
 Main PID: 7019 (libvirtd)
   CGroup: /system.slice/libvirt-bin.service
           ├─2607 /usr/sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/lib/libvirt/libvirt_lease
           ├─2608 /usr/sbin/dnsmasq 
--conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro 
--dhcp-script=/usr/lib/libvirt/libvirt_lease
           └─7019 /usr/sbin/libvirtd

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

Title:
  libvirt-bin doesn't regenerate apparmor cache in postinst

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to