Red Hat Bugzilla – Bug 1301917
TripleO Install from ISO fails with "An unknown error has occurred" (OSCAP)
Last modified: 2016-04-29 12:23:59 EDT
Description of problem:
Booting Triple O ISO results in "An unknown error has occurred" popup window.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Boot from specific Triple O ISO
anaconda 19.31.123-1 exception report
Traceback (most recent call first):
File "/usr/share/anaconda/addons/org_fedora_oscap/common.py", line 216, in run_oscap_remediate
File "/usr/share/anaconda/addons/org_fedora_oscap/ks/oscap.py", line 386, in execute self.postinst-tailoring_path, chroot=ROOT_PATH)
File "/usr/lib64/python2.7/site-packages/pyanaconda/addons.py", line 84, in execute[...]
OSCAPaddonError: Content evaluation and remediation with the oscap tool failed: I/O error: /root/openscap_data:1: parser error: Document is empty
/root/openscap_data:1: parser_error: Start tag expected, '<' not found
"/mnt/sysimage/root/openscap_data" is an empty directory.
Issue is that the 'oscap-anaconda-addon' package was being installed, this was causing a breakage near %post of the ISO install. (unsure on why breakage occurred).
OpenSCAP add-on in Anaconda, is something new in RHEL 7.2 more info below:
The reason for why 'oscap-anaconda-addon' was being installed on RCM ISOs but not on our engineering ISOs we believe is related to a line in Lorax.
The RCM version had this line: installpkg oscap-anaconda-addon
Our Engineering Build machine does not have this line.
More output from discussion with jboggs:
<jboggs> -bash-4.2$ diff -Naur /usr/share/lorax/runtime-install.tmpl /tmp/1
<jboggs> --- /usr/share/lorax/runtime-install.tmpl 2015-09-02 20:07:37.000000000 -0400
<jboggs> +++ /tmp/1 2016-01-26 21:29:52.717077151 -0500
<jboggs> @@ -149,7 +149,6 @@
<jboggs> ## addons
<jboggs> installpkg kexec-tools-anaconda-addon
<jboggs> -installpkg oscap-anaconda-addon
<jboggs> ## actually install all the requested packages
I'm not seeing it with newest build, marking as verified.