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
Product: Red Hat Ceph Storage
Classification: Red Hat
Component: RBD (Show other bugs)
x86_64 Linux
unspecified Severity high
: rc
: 1.3.2
Assigned To: Josh Durgin
Depends On:
  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:
Last Closed: 2015-10-28 10:19:33 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
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:

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.
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.