Bug 983042
Summary: | OpenSCAP Error: Can't connect to the probe [oval_probe_ext.c:353] (inside Fedora 19 KVM image deployed on OpenStack) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dhiru Kholia <dkholia> | ||||||||
Component: | openscap | Assignee: | Šimon Lukašík <slukasik> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 22 | CC: | bressers, dhiru, dkopecek, openscap-maint, plautrba, pvrabec, slukasik, theinric | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | openscap-1.2.5 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2015-08-27 07:04:55 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: | |||||||||||
Attachments: |
|
Description
Dhiru Kholia
2013-07-10 11:08:05 UTC
(In reply to Dhiru Kholia from comment #0) Hello, that is weird indeed. Could you please strace the command and attach the output to this BZ? Thanks Created attachment 771551 [details]
strace of failing oscap process
(In reply to Dhiru Kholia from comment #2) > Created attachment 771551 [details] > strace of failing oscap process Please use the following options to get a more detailed output: # strace -ff -o oscap.log -s 1048576 ... Looks like the probe processes don't die immediately so we need to strace them too. The option above should do the job. Thanks Created attachment 772035 [details]
better strace of failing oscap process
Ok, I've found a hint: stat("/usr/libexec/openscap/probe_runlevel", {st_mode=S_IFREG|0755, st_size=52936, ...}) = 0 socketpair(PF_LOCAL, SOCK_STREAM, 0, [26, 27]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f8e7be7cb10) = -1 ENOMEM (Cannot allocate memory) Looks like the machine runs out of memory during the evaluation. So in that case the "Can't connect to probe" messages are expected, I think. However, it would be better to have the reason why we can't connect there. Daneil,
I see the problem now. I will try running the scanner again after giving the guest more RAM.
>> However, it would be better to have the reason why we can't connect there.
That would be great. If possible, can we reduce the memory usage of the openscap scanning system? If not, can we figure out the "tests" which require more RAM?
(In reply to Dhiru Kholia from comment #6) > Daneil, > > I see the problem now. I will try running the scanner again after giving the > guest more RAM. > > >> However, it would be better to have the reason why we can't connect there. > > That would be great. If possible, can we reduce the memory usage of the > openscap scanning system? If not, can we figure out the "tests" which > require more RAM? I think there's still room for optimizations. There's also the option to scan an image of the virtual host in the offline mode: https://www.redhat.com/archives/open-scap-list/2013-May/msg00007.html Some optimizations can be done on the side of the content, i.e. some objects in OVAL can be rewritten to require less memory if you know a little bit about how things are implemented in the interpreter. Created attachment 772569 [details]
OpenSCAP AVCs
So this is most probably an issue of openscap-selinux package. It seems to work in SELinux permissive mode. We will address this in some future release. Here is my work-around, 1) Keep SELinux in enforcing mode (as it should be). 2) Do *not* install the openscap-selinux package (installing this seems to break stuff). 3) Have >= 1GB of RAM and finally, 4) Run the scanner as usual. I doubt it the openscap-selinux package and the AVC denials are related. The oscap_t domain is permissive. It should not break the probes. Let's keep this bz open and focused on the memory allocation issue. This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle. Changing version to '22'. More information and reason for this action is here: https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22 This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component. OpenSCAP-SELinux package has been dropped in the latest OpenSCAP upstream release. |