[Bug 1680956] Re: Fail to launch an OpenStack Instance with hugepages on top of OVS+DPDK
Seth Arnold
1680956 at bugs.launchpad.net
Fri Apr 7 20:39:13 UTC 2017
Hi Thiago; there may be a better solution available; I think a
workaround that could get you running again might be to edit
/etc/apparmor.d/libvirt/TEMPLATE.qemu and include a line like:
/dev/hugepages-*/libvirt/qemu/qemu_back_mem._objects_ram-node?.??????
rw,
Then run apparmor_parser --replace /etc/apparmor.d/libvirt/libvirt-
fbbb7bde-763e-40d3-8987-fb3a6c568ad8
Thanks
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1680956
Title:
Fail to launch an OpenStack Instance with hugepages on top of OVS+DPDK
Status in Ubuntu Cloud Archive:
New
Bug description:
Guys,
I'm trying to launch an Instance on OpenStack Ocata, using Ubuntu
16.04, on top of OpenvSwitch with DPDK, and OVN.
I can launch an Instance without hugepages but, when I change
OpenStack's Flavor for it to have: "hw:mem_size_pages=large", the
following error appear on nova-compute.log:
---
2017-04-07 20:13:18.504 3996 ERROR nova.compute.manager [instance: fbbb7bde-763e-40d3-8987-fb3a6c568ad8] libvirtError: internal error: process exited while connecting to monitor: 2017-04-07T20:13:17.764939Z qemu-system-x86_64: -object memory-backend-file,id=ram-node0,prealloc=yes,mem-path=/dev/hugepages-1048576/libvirt/qemu,share=yes,size=4294967296,host-nodes=0,policy=bind: can't open backing store /dev/hugepages-1048576/libvirt/qemu for guest RAM: Permission denied
---
At syslog:
---
Apr 7 20:13:17 expert-jennet kernel: [ 1535.437956] audit: type=1400 audit(1491595997.759:23): apparmor="DENIED" operation="mknod" profile="libvirt-fbbb7bde-763e-40d3-8987-fb3a6c568ad8" name="/dev/hugepages-1048576/libvirt/qemu/qemu_back_mem._objects_ram-node0.BFNx2W" pid=8341 comm="qemu-system-x86" requested_mask="c" denied_mask="c" fsuid=64055 ouid=64055
---
Maybe it is related to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1524737
But I'm not sure if it is relate to 1524737 or not...
Let me know if there are any workarounds available!
Thanks,
Thiago
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: libvirt0 2.5.0-3ubuntu5~cloud0 [origin: Canonical]
ProcVersionSignature: Ubuntu 4.8.0-46.49~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-46-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CrashDB:
{
"impl": "launchpad",
"project": "cloud-archive",
"bug_pattern_url": "http://people.canonical.com/~ubuntu-archive/bugpatterns/bugpatterns.xml",
}
Date: Fri Apr 7 20:27:27 2017
ProcEnviron:
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1680956/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list