Description of problem: with openscap version older then openscap-1.2.8-2.el6.x86_64, the result.html is not generated Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Hi, I'm very confused from this bug and packages caused this problem. When I have installed openscap-1.2.8-2.el6.x86_64 (version of solved problem), I receive mentioned error: preupg: error: [Errno 2] No such file or directory: u'/root/preupgrade/result.html' If I install older openscap (openscap-1.0.10-3.el6.x86_64), it works. Why? ===================================================== Reproduced in: openscap-1.2.8-2.el6.x86_64 preupgrade-assistant-2.0.3-8.el6.x86_64 preupgrade-assistant-contents-0.6.32-1.el6.noarch FAIL ===================================================== # preupg ... 131/132 ...done (NIS server MAXUID and MAXGID limits check) 132/132 ...done (NIS server config file back-up) Assessment finished (time 02:59s) I/O warning : failed to load external entity "/usr/share/openscap/xsl/security-guide.xsl" compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 40 element import xsl:import : unable to load /usr/share/openscap/xsl/security-guide.xsl I/O warning : failed to load external entity "/usr/share/openscap/xsl/oval-report.xsl" compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 41 element import xsl:import : unable to load /usr/share/openscap/xsl/oval-report.xsl I/O warning : failed to load external entity "/usr/share/openscap/xsl/sce-report.xsl" compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 42 element import xsl:import : unable to load /usr/share/openscap/xsl/sce-report.xsl OpenSCAP Error:: Could not parse XSLT file '/usr/share/preupgrade/xsl/preup.xsl' [xslt.c:146] I/O warning : failed to load external entity "/usr/share/openscap/xsl/security-guide.xsl" compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 40 element import xsl:import : unable to load /usr/share/openscap/xsl/security-guide.xsl I/O warning : failed to load external entity "/usr/share/openscap/xsl/oval-report.xsl" compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 41 element import xsl:import : unable to load /usr/share/openscap/xsl/oval-report.xsl I/O warning : failed to load external entity "/usr/share/openscap/xsl/sce-report.xsl" compilation error: file /usr/share/preupgrade/xsl/preup.xsl line 42 element import xsl:import : unable to load /usr/share/openscap/xsl/sce-report.xsl OpenSCAP Error:: Could not parse XSLT file '/usr/share/preupgrade/xsl/preup.xsl' [xslt.c:146] Usage: preupg [options] preupg: error: [Errno 2] No such file or directory: u'/root/preupgrade/result.html' >> File result.html was not generated -> FAIL
If I run it in current packages, it works. ===================================================== Verified in: openscap-1.2.13-1.el6.x86_64 preupgrade-assistant-2.3.0-1.el6.noarch preupgrade-assistant-el6toel7-0.6.66-1.el6.noarch PASS ===================================================== # preupg ... |Enabled and disabled services in Red Hat Enterprise Linux 6 |needs_action | |Modification of /etc/rc.local and /etc/rc.d/rc.local files |needs_action | -------------------------------------------------------------------------------------------------- The tarball with results is stored in '/root/preupgrade-results/preupg_results-170130025950.tar.gz' . The latest assessment is stored in the '/root/preupgrade' directory. Summary information: We found some potential in-place upgrade risks. Read the full report file '/root/preupgrade/result.html' for more details. Read the admin report file /root/preupgrade/result-admin.html for more details. Upload results to UI by the command: e.g. preupg -u http://example.com:8099/submit/ -r /root/preupgrade-results/preupg_results-170130025950.tar.gz . >> File result.html was generated -> PASS >> When I have installed older openscap, dependency for newer version of openscap caused that new packages will be installed during installation of preupgrade-assistant* packages.
Yes, the problem you described in Comment 5 is resolved in the latest version (2.3.0-1.el6). Preupgrade Assistant does not depend on the contents of /usr/share/openscap/xsl folder anymore, so it should work even with openscap-1.2.8-2.el6.