Interestingly if just parsing the same XML on 2.5 and 3.5 they behave
the same:

Test xml:
<domain type='kvm' id='2'>
        <name>kvmguest-artful-normal</name>
        <uuid>0b4a7877-7bd2-4059-8ab3-9d02a763a682</uuid>
        <memory unit='KiB'>524288</memory>
        <os>
                <type arch='ppc64le' machine='pseries-zesty'>hvm</type>
                <boot dev='hd'/>
        </os>
        <devices>
                <emulator>/usr/bin/kvm</emulator>
                <disk type='file' device='disk'>
                        <driver name='qemu' type='qcow2'/>
                        <source 
file='/var/lib/uvtool/libvirt/images/kvmguest-artful-normal.qcow'/>
                        <backingStore type='file' index='1'>
                                <format type='qcow2'/>
                                <source 
file='/var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZC5kYWlseTpzZXJ2ZXI6MTcuMTA6cHBjNjRlbCAyMDE3MDcxMw=='/>
                                <backingStore/>
                        </backingStore>
                        <target dev='vda' bus='virtio'/>
                        <alias name='virtio-disk0'/>
                        <address type='pci' domain='0x0000' bus='0x00' 
slot='0x03' function='0x0'/>
                </disk>
        </devices>
</domain>

On both:
$ /usr/lib/libvirt/virt-aa-helper --create --dryrun --uuid 
'libvirt-0b4a7877-7bd2-4059-8ab3-9d02a763a682' < kvmguest-artful-normal.xml 
2>&1 | grep b64
  
"/var/lib/uvtool/libvirt/images/x-uvt-b64-Y29tLnVidW50dS5jbG91ZC5kYWlseTpzZXJ2ZXI6MTcuMTA6cHBjNjRlbCAyMDE3MDcxMw=="
 r,


So the actual parsing from virt-aa-helper is ok.
Maybe the extending of the xml doesn't work correctly when defining it.

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

Title:
  qcow base image apparmor rule missing in artful

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

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

Reply via email to