copy-storage migrations fail on nbd-server-add
Bug #1764373 reported by
Christian Ehrhardt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Bionic I see an issue where a migration with --copy-storage-* options leads to an issue:
+ lxc exec testkvm-bionic-from -- virsh migrate --live --copy-storage-inc kvmguest-
error: internal error: unable to execute QEMU command 'nbd-server-add': Block node is read-only
This came up when revamping the virt tests (and not before), so it might be a setup issue in the new environment. But OTOH it sould be checked at some point, therefore the bug report.
To post a comment you must log in.
There is an apparmor deny that could be related, but the path looks just wrong.
audit: type=1400 audit(152395717 6.480:37835) : apparmor="DENIED" "root// lxd-testkvm- bionic- tononshared_ <var-lib- lxd>" system- x86" "libvirt- 1c67131a- 7177-4f49- 9840-f109231089 0d" mask="wr"
namespace=
pid=8721 comm="qemu-
fsuid=64055 ouid=64055
profile=
denied_mask="wr"
operation="open"
name="/0"
requested_
Name = /0 ????
The deny is on the migration target.
There are no "magic" devices that could point to /0
root@testkvm- bionic- from:~# virsh domblklist kvmguest- bionic- normal ------- ------- ------- ------- ------- ------ uvtool/ libvirt/ images/ kvmguest- bionic- normal. qcow uvtool/ libvirt/ images/ kvmguest- bionic- normal- ds.qcow
Target Source
-------
vda /var/lib/
vdb /var/lib/
root@testkvm- bionic- from:~# virsh domblkinfo kvmguest- bionic- normal vda
Capacity: 8589934592
Allocation: 30347264
Physical: 30343168
root@testkvm- bionic- from:~# virsh domblkinfo kvmguest- bionic- normal vdb
Capacity: 378880
Allocation: 458752
Physical: 458752
For now I'd assume it is more libvirt (or qemu) getting strange ideas about which paths to use than a missing apparmor rule.