-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Falco test cases are failing on ppc64le platform #982
Comments
I have done the changes in falco.cpp::do_inspect() to fix the test cases failed issue. Currently when I run the test cases, following test cases are failed and gives errors as follows : Running: avocado run --mux-yaml /home/github/falco/test/falco_tests_package.yaml --job-results-dir /home/github/falco/test/job-results -- /home/github/falco/test/falco_test.py I have Install falco after building from Source code . I have following queries related to docker images and deb/rpm packages.
|
I have generated the deb/rpm packages using CMake -DCPACK_SOURCE_RPM=ON and So currently all the falco test cases are passed, except following test case specific to docker image. (1/2) /home/github/falco/test/falco_test.py:FalcoTest.test;docker_package-9934: ERROR: Falco command "docker run --rm --name falco-test --privileged -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro -v /boot:/host/boot:ro -v /lib/modules:/host/lib/modules:ro -v /root/.sysdig:/root/.sysdig:ro -v /usr:... (2.90 s) Need help to port the following Dockerfiles for ppc64le , which download the prebuilt gcc (v6 and 5) dependent Intel packages. How can we build these packages for ppc64le platform? I am thinking of using Advanced toolchain with following versions.
But it will not work for ubuntu:18.04 specific docker files. Please let me know if you have any ideas/suggestions to port these dockerfiles for ppc64le platform. |
Env : Ubuntu 18.04 having kernel version 4.15.0-66-generic. Directly On host :
Tried to build the builder/Dockerfile image for ppc64le, but getting error as On tester container : Need help/suggetion to port these types of dockerfiles for ppc64le. How can we provide the support for latest gcc for falco on ppc64le? |
Thanks @sunil1783 for reporting all this info. I here see two main topics:
Regarding point 1. We should discuss it all together. Would you mind joining the today community call maybe? You can find the calendar/zoom invitation in the README. Regarding point 2. During past community calls we often discussed the test suite situation. Regarding the specific test case that is blocking you it would be acceptable to disable it for the ppc64le platform, imho. Unfortunately I do not know how to instruct Avocado (the current python testing framework Falco repo is using) to do so. /triage support /milestone 1.0.0 |
Thanks for the response. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any update on this?
L.
…On Sun, Mar 22, 2020 at 5:42 PM stale[bot] ***@***.***> wrote:
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#982 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA5J43S4CZZJR54JI34KDDRIY5X5ANCNFSM4J4JB6PQ>
.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What happened :
To support falco and sysdig with eBPF support on ppc64le platform, done the required code
changes. Following PR is created for these changes.
#932
After building the code ,when try to run the regression test cases, it gives following types of errors.
TestFail: Different counts for rule Change thread namespace: expected=2, actual=1
TestFail: Different counts for rule Launch Privileged Container: expected=3, actual=1
TestFail: Different counts for rule Launch Sensitive Mount Container: expected=3, actual=1
TestFail: Different counts for rule Read sensitive file untrusted: expected=1, actual=0
TestFail: Different counts for rule Write below binary dir: expected=4, actual=1
TestFail: Different counts for rule Change thread namespace: expected=2, actual=1
TestFail: Different counts for rule Open From Cat ($.*+?()[]{}|^): expected=8, actual=1
TestFail: Different counts for rule open_13: expected=1, actual=0
TestFail: Different counts for rule open_10: expected=1, actual=0
TestFail: Different counts for rule detect_open: expected=2, actual=0
TestFail: Could not find a line 'ERROR: ' in falco output
TestFail: Could not find a line 'WARNING: ' in falco output
TestFail: Stdout of falco process 'Warning: macro some macro not refered to by any rule/macro
TestFail: Stdout was not exactly Compilation error when compiling "foo": Undefined macro 'foo' used in filter.
TestFail: Stdout was not exactly Compilation error when compiling "evt.type=execve foo": 17: syntax error, unexpected
'foo', expecting 'or', 'and'
TestFail: Stdout of falco process '/home/user/src/falco/test/rules/invalid_base_rule.yaml: Ok
TestFail: Stdout was not exactly Undefined macro 'bar' used in filter.
TestFail: Stdout of falco process 'Ok
TestFail: Stdout of falco process 'Warning: list cat_binaries not refered to by any rule/macro/list
TestFail: Stderr of falco process did not contain content matching event drop detected: 9 occurrences
How to reproduce it (as minimally and precisely as possible):
$ git clone https://github.com/sunil1783/falco
$ cd falco && git checkout falco_ppc64le && cd ..
$ git clone https://github.com/shirodkara/sysdig
$ mkdir falco/build
$ cd falco/build
$ cmake -DBUILD_BPF=True -DCMAKE_VERBOSE_MAKEFILE=On -DSYSDIG_DIR=/sysdig ..
$ ../test/run_regression_tests.sh /build
What you expected to happen:
Falco test cases should passed.
Anything else we need to know?:
Investigation/Queries :
written on output console.
Ex. Only 1 event log appears in log file,whereas expected are 2 for rule Change thread
namespace. ( Please check the attached log files.)
job-2019-12-18T02.21-c2df134.log
job-2019-12-18T02.24-125a3f9.log
job-2019-12-18T02.27-4ed2e27.log
job-2019-12-18T02.27-eaa9500.log
job-2019-12-18T02.29-0e58290.log
Test cases which gives errors "fail() takes at most 2 arguments" and "Exec format error" are
depend on Intel x86_64specific docker image/containers/binaries. So need to port these docker
image/containers for ppc64le platform.
using gcc 6 and gcc 5. As gcc 6 and 5 is no longer included in Debian unstable platform, So
how to upgrade these packages for other platform.
What should we do for power platform? Some of the falco test cases are dependent on these
docker images/containers ,if we by pass these test cases what will be its impact?
Environment:
Falco version:
git clone https://github.com/sunil1783/falco
git clone https://github.com/shirodkara/sysdig
System info:
{
"machine": "ppc64le",
"nodename": "pts00450-vm2",
"release": "4.15.0-66-generic",
"sysname": "Linux",
"version": "Readme tweaks #75-Ubuntu SMP Tue Oct 1 05:24:20 UTC 2019"
}
OS:
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
Kernel:
4.15.0-66-generic
Installation method:
Build from source code
The text was updated successfully, but these errors were encountered: