Description of problem:
oscap-docker has been ported to python2 and several reusable functions are now exposed as a python package . These are used by OpenSCAP-daemon which is used by atomic scan. For atomic scan to work with packaged components we need to either rebase OpenSCAP to version 1.2.6 or add a downstream patch with the new oscap-docker to the 1.2.5 version.
Atomic scan bug that requires this: https://bugzilla.redhat.com/show_bug.cgi?id=1272037
See also https://bugzilla.redhat.com/show_bug.cgi?id=1202868
Version-Release number of selected component (if applicable):
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see email@example.com with any questions
I have found issue in oscap-docker utility. Due to [possible] bug in RHEL-shipped python2, the argparse library behaves differently (parser defaults takes precedence to subparser defaults), preventing any use of the utility.
As a workaround, it is necessary to remove line 68:
I have filed python bug bz1340036, for workaround-related discussion use bz1333812 for now, thanks :)
Upstream commit https://github.com/OpenSCAP/openscap/commit/fa334865b1eb24c6eabfe4c80a339c84ffc2d250 fixes the issue.
Returning, due to bug #1344762
This rebase passed regression suite, also bugs reported ( bz1340036 and bz1344762 ) are verified to be fixed in version openscap-1.2.10-2.el7
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.