Bug 1276033 - [LTTNG:RBD]: RBD lttng trace logs are not generated on UBUNTU 14.04
[LTTNG:RBD]: RBD lttng trace logs are not generated on UBUNTU 14.04
Status: CLOSED NOTABUG
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RBD (Show other bugs)
1.3.1
x86_64 Linux
unspecified Severity high
: rc
: 1.3.2
Assigned To: Josh Durgin
ceph-qe-bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-28 09:04 EDT by shylesh
Modified: 2017-07-30 11:34 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-10-28 10:19:33 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description shylesh 2015-10-28 09:04:43 EDT
Description of problem:
RBD lttng trace logs are not getting generated on UBUNTU 14.04

Version-Release number of selected component (if applicable):
1.3.1 Ubuntu 

How reproducible:
always

Steps to Reproduce:
1.Configured the vm and attached an RBD image as secondary disk, apparmor is disabled
2.configured lttng and started a session as following
  
  lttng create -o traces librbd1
  lttng enable-event -u 'librbd:*'
  lttng start
  /* do some operationf on secondary disk from VM */
  lttng stop

 

Actual results:
No logs are generated in the target folder

Expected results:
Trace logs should be generated

Additional info:
Comment 3 Jason Dillaman 2015-10-28 09:17:14 EDT
QEMU log is spamming:

libust[23792/23793]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:886)

Checking AppArmor status:

# apparmor_status
apparmor module is loaded.
8 profiles are loaded.
8 profiles are in enforce mode.
   /sbin/dhclient
   /usr/lib/NetworkManager/nm-dhcp-client.action
   /usr/lib/connman/scripts/dhclient-script
   /usr/lib/libvirt/virt-aa-helper
   /usr/sbin/libvirtd
   /usr/sbin/ntpd
   /usr/sbin/tcpdump
   libvirt-c2fc3986-9a48-47cd-84cb-cf84b420998a
0 profiles are in complain mode.
3 processes have profiles defined.
3 processes are in enforce mode.
   /usr/sbin/libvirtd (27632) 
   /usr/sbin/ntpd (1055) 
   libvirt-c2fc3986-9a48-47cd-84cb-cf84b420998a (23792) 
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.

The libvirt (QEMU) process is currently assigned to an enforcing profile, thus access is denied to the LTTng-UST device.
Comment 4 shylesh 2015-10-28 09:41:49 EDT
I have already removed it before starting testing using 

 sudo /etc/init.d/apparmor stop
 sudo update-rc.d -f apparmor remove

is this the right command ?
Comment 5 shylesh 2015-10-28 10:19:33 EDT
Closing this bug as it worked after uninstalling apparmor

Note You need to log in before you can comment on or make changes to this bug.