Bug 1769901 - Harden Appliance Using SCAP Config: `add_next_sibling' for nil:NilClass
Summary: Harden Appliance Using SCAP Config: `add_next_sibling' for nil:NilClass
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance
Version: 5.11.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: GA
: 5.12.0
Assignee: Nick Carboni
QA Contact: juwatts
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks: 1784556
TreeView+ depends on / blocked
 
Reported: 2019-11-07 16:46 UTC by juwatts
Modified: 2020-10-26 16:26 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1784556 (view as bug list)
Environment:
Last Closed: 2020-10-26 16:26:00 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:
mfeifer: mirror+


Attachments (Terms of Use)

Description juwatts 2019-11-07 16:46:12 UTC
Description of problem:
When a user is attempting to harden appliance using SCAP configuration, the configuration fails with:

Configuration failed: undefined method `add_next_sibling' for nil:NilClass


Version-Release number of selected component (if applicable):
5.11.0.28.20191105164247_d9cf38b

How reproducible:
100%

Steps to Reproduce:
1. SSH to the appliance and run "ap"
2. Hit enter and then 15

Actual results:

Harden Appliance Using SCAP Configuration

Locking down the appliance for SCAP...
Configuration failed: undefined method `add_next_sibling' for nil:NilClass

Press any key to continue.


Expected results:
Harden Appliance Using SCAP Configuration

Locking down the appliance for SCAP...
Complete

Press any key to continue.


Additional info:
Last worked in 5.10.12.3.20191029180220_f883bde

Comment 5 CFME Bot 2019-12-12 19:20:21 UTC
New commit detected on ManageIQ/linux_admin/master:

https://github.com/ManageIQ/linux_admin/commit/87289ec4d8dae9a84d43744bd2bf99d9bdf10d19
commit 87289ec4d8dae9a84d43744bd2bf99d9bdf10d19
Author:     Nick Carboni <ncarboni>
AuthorDate: Thu Dec 12 13:36:45 2019 -0500
Commit:     Nick Carboni <ncarboni>
CommitDate: Thu Dec 12 13:36:45 2019 -0500

    Update the search for the xml element we use for SCAP

    The format of the xml file has changed so the existing search was
    not finding any results.

    This search works as of scap-security-guide version 0.1.46

    https://bugzilla.redhat.com/show_bug.cgi?id=1769901

 lib/linux_admin/scap.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 6 CFME Bot 2019-12-12 21:18:22 UTC
New commits detected on ManageIQ/manageiq-appliance_console/master:

https://github.com/ManageIQ/manageiq-appliance_console/commit/fc19f875839092ba112d91c8d0c3aec629439d9c
commit fc19f875839092ba112d91c8d0c3aec629439d9c
Author:     Nick Carboni <ncarboni>
AuthorDate: Thu Dec 12 13:39:29 2019 -0500
Commit:     Nick Carboni <ncarboni>
CommitDate: Thu Dec 12 13:39:29 2019 -0500

    Use the rhel8 platform for SCAP remediation

    https://bugzilla.redhat.com/show_bug.cgi?id=1769901

 lib/manageiq/appliance_console/scap.rb | 4 +-
 1 file changed, 2 insertions(+), 2 deletions(-)


https://github.com/ManageIQ/manageiq-appliance_console/commit/657dc0e45c0fcb070e457539cc23748b4f7bd3a6
commit 657dc0e45c0fcb070e457539cc23748b4f7bd3a6
Author:     Nick Carboni <ncarboni>
AuthorDate: Thu Dec 12 14:43:51 2019 -0500
Commit:     Nick Carboni <ncarboni>
CommitDate: Thu Dec 12 14:43:51 2019 -0500

    Use version 2.0.0 of linux admin

    This contains a fix to the XML searching for SCAP which is needed
    to fix:

    https://bugzilla.redhat.com/show_bug.cgi?id=1769901

 manageiq-appliance_console.gemspec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 8 CFME Bot 2019-12-12 22:10:38 UTC
New commit detected on ManageIQ/manageiq-appliance/master:

https://github.com/ManageIQ/manageiq-appliance/commit/4f0f8152603e4c0fdcbc86884f52af2cd1b2c536
commit 4f0f8152603e4c0fdcbc86884f52af2cd1b2c536
Author:     Nick Carboni <ncarboni>
AuthorDate: Thu Dec 12 16:50:15 2019 -0500
Commit:     Nick Carboni <ncarboni>
CommitDate: Thu Dec 12 16:50:15 2019 -0500

    Update manageiq-appliance_console to v5.3.0

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1769901
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1759859

 manageiq-appliance-dependencies.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Note You need to log in before you can comment on or make changes to this bug.