From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case tests the ABRT's ability to process crashes of binaries running in a container. |setup=Install you favourite container technology (D...")
 
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
|actions=  
 
|actions=  
 
<ol>  
 
<ol>  
 +
<li>Turn on ABRT core dump hook:
 +
<pre>
 +
systemctl start abrt-ccpp.service
 +
</pre>
 +
</li>
 
<li>
 
<li>
 
Kill sleep with SIGSEGV in your container.
 
Kill sleep with SIGSEGV in your container.
Line 15: Line 20:
 
run {{command|abrt-cli}}
 
run {{command|abrt-cli}}
 
<pre>
 
<pre>
abrt-cli list -d
+
sudo abrt-cli list -d
 
</pre>
 
</pre>
 
</li>
 
</li>
 
</ol>
 
</ol>
 
|results=
 
|results=
#abrt-cli list's output should contain these fiels: container, container_cmdline, container_id, container_image, docker_inspect,
+
#abrt-cli list's output should contain these fiels: container, container_cmdline, container_id, container_image and docker_inspect. The latter one will be empty and the one before the latter will not exists if you have SELinux enforcing : https://bugzilla.redhat.com/show_bug.cgi?id=1194280
 
}}
 
}}
 
[[Category:Package_abrt_test_cases]]
 
[[Category:Package_abrt_test_cases]]

Latest revision as of 07:23, 14 April 2015

Description

This test case tests the ABRT's ability to process crashes of binaries running in a container.

Setup

Install you favourite container technology (Docker, LXC, systemd-nspawn) and start a container. You can use [Docker and Fedora 22 Alpha Base image]

How to test

  1. Turn on ABRT core dump hook:
    systemctl start abrt-ccpp.service
    
  2. Kill sleep with SIGSEGV in your container.
    docker run -it --rm Fedora-Docker-Base-22_Alpha-20150305.x86_64 bash
    sleep 1000 &
    kill -SEGV %%
    
  3. run abrt-cli
    sudo abrt-cli list -d
    

Expected Results

  1. abrt-cli list's output should contain these fiels: container, container_cmdline, container_id, container_image and docker_inspect. The latter one will be empty and the one before the latter will not exists if you have SELinux enforcing : https://bugzilla.redhat.com/show_bug.cgi?id=1194280