Bug 1276033

Summary: [LTTNG:RBD]: RBD lttng trace logs are not generated on UBUNTU 14.04
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: shylesh <shmohan>
Component: RBDAssignee: Josh Durgin <jdurgin>
Status: CLOSED NOTABUG QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.3.1CC: ceph-eng-bugs, jdillama
Target Milestone: rc   
Target Release: 1.3.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-28 14:19:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description shylesh 2015-10-28 13:04:43 UTC
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 13:17:14 UTC
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 13:41:49 UTC
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 14:19:33 UTC
Closing this bug as it worked after uninstalling apparmor