Bug 1506106

Summary: Check for verifying syntax for ISP DHCP configurations failed with error undefined method `strip' for nil:NilClass
Product: Red Hat Satellite Reporter: Nikhil Kathole <nkathole>
Component: Satellite MaintainAssignee: Anurag Patel <apatel>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: apatel, inecas, kgaikwad, sabnave
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-10-25 07:59:29 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:

Description Nikhil Kathole 2017-10-25 07:13:09 UTC
Description of problem: When katello-services are stopped and Check for verifying syntax for ISP DHCP configuration is performed, it fails with error showing undefined method `strip' for nil:NilClass.

Version-Release number of selected component (if applicable): foreman-maintain snap 3

 # rpm -q rubygem-foreman_maintain
rubygem-foreman_maintain-0.0.10-1.el7sat.noarch

How reproducible: always


Steps to Reproduce:
1. katello-service stop
2. foreman-maintain health check --label foreman-proxy-verify-dhcp-config-syntax
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check for verifying syntax for ISP DHCP configurations:               [FAIL]
undefined method `strip' for nil:NilClass
--------------------------------------------------------------------------------
Scenario [ForemanMaintain::Scenario::FilteredScenario] failed.

The following steps ended up in failing state:

  [foreman-proxy-verify-dhcp-config-syntax]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="foreman-proxy-verify-dhcp-config-syntax"

Actual results:
Displayed error undefined method `strip' for nil:NilClass

Expected results: Error should get handled.


Additional info: When katello-services are stopped and user performed check for verifying syntax for ISP DHCP configuration, can we add interaction for user like hammer-ping?

Continue with step [katello-service restart]?, [y(yes), n(no), q(quit)]

Comment 1 Nikhil Kathole 2017-10-25 07:59:29 UTC

*** This bug has been marked as a duplicate of bug 1506107 ***