[LTCTest] SR-IOV VF hotplug failing: cannot limit locked memory of process
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
---Problem Description---
Unable to hotplug SRIOV CX4 VF to Ubuntu 16.10 or 16.04.1 guests.
---uname output---
Linux c158f2u09os 4.7.0unofficial #5 SMP Mon Sep 5 08:53:38 EDT 2016 ppc64le ppc64le ppc64le GNU/Linux
---Additional Hardware Info---
Mellanox CX4
Machine Type = 8247-22L
---Steps to Reproduce---
Unable to hotplug SRIOV CX4 VF to Ubuntu 16.10 guest.
1. Boot the guests with/without VFs
2. Try hotplugging of VF to guests, you will notice error as shown below:
root@c158f2u09o
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
<address domain='0x0005' bus='0x01' slot='0x00' function='0x4'/>
</source>
</hostdev>
root@c158f2u09o
error: Failed to attach device from ./hot_vf.xml
error: cannot limit locked memory of process 80265 to 9663676416: Permission denied
root@c158f2u09o
error: Failed to attach device from ./hot_vf.xml
error: cannot limit locked memory of process 80960 to 9663676416: Permission denied
=======
Environment details:
=======
Host :
9.47.68.198, root/sriov4321
Ubuntu 16.10
kernel version:
Linux c158f2u09os 4.7.0unofficial #5 SMP Mon Sep 5 08:53:38 EDT 2016 ppc64le ppc64le ppc64le GNU/Linux
Guest:
1. ubuntu1610_srik
kernel version: 4.7.0unofficial
creds: root/123456
2. ubuntu160401_srik
kernel version: 4.4.0-38-generic
creds: root/123456
MOFED versions:
MOFED version in Host as well Guest: 3.4-OFED.
CX4 Firmware version: 12.17.0222
Development took a look at this an believes this is an apparmor related issue and requested the defect be mirrored to Canonical for their assistance.
Default Comment by Bridge