Bug 1625169
| Summary: | foreman-maintain service restart failed with undefined method `[]' for nil:NilClass | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Nikhil Kathole <nkathole> |
| Component: | Satellite Maintain | Assignee: | Martin Bacovsky <mbacovsk> |
| Status: | CLOSED ERRATA | QA Contact: | Nikhil Kathole <nkathole> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.4 | CC: | apatel, inecas, kgaikwad, mbacovsk, pcreech |
| Target Milestone: | 6.4.0 | Keywords: | Regression, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | rubygem-foreman_maintain-0.2.10-1 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-16 15:16:57 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
2018-09-04 10:12:42 UTC
Related to only capsule (on satellite works fine) Thanks for the update Nikhil. I'm linking this with upstream issue adding more details and suggests possible solution. I believe this issue will be fixed as part of https://github.com/theforeman/foreman_maintain/pull/210/files This issue is primarily caused by hammer unable to check the connection due to httpd missing or being down. The PR #210 fixed it for capsule but on the server it is still present. It is possible to reproduce with following steps: - rm /etc/foreman-maintain/foreman-maintain-hammer.yaml to make sure hammer was not setup - systemctl stop httpd - foreman-maintain health check *** Bug 1626651 has been marked as a duplicate of this bug. *** Please ignore comment #6 where I stated wrong information about this issue. The real cause is that foreman-maintain is trying to fetch admin password from installer answers on a machine where no Foreman is installed and the options are missing in the answers file. The issue was fixed by PR linked in c#5 What was stated in c#6 pays for BZ#1626651 and is not related to this BZ. Sorry for confusion. Links and statuses between upstream tracker, Github and BZ were corrected. snap 23, not 63 VERIFIED Version tested: # rpm -qa | grep maintain rubygem-foreman_maintain-0.2.10-1.el7sat.noarch # foreman-maintain service restart Running Restart Services ================================================================================ Check if command is run as root user: [OK] -------------------------------------------------------------------------------- Restart applicable services: Stopping the following service(s): mongod, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, goferd, httpd, foreman-proxy | stopping foreman-proxy Redirecting to /bin/systemctl stop foreman-proxy.service | stopping httpd Redirecting to /bin/systemctl stop httpd.service / stopping goferd Redirecting to /bin/systemctl stop goferd.service / stopping pulp_workers Redirecting to /bin/systemctl stop pulp_workers.service / stopping pulp_streamer Redirecting to /bin/systemctl stop pulp_streamer.service - stopping pulp_resource_manager Redirecting to /bin/systemctl stop pulp_resource_manager.service - stopping pulp_celerybeat Redirecting to /bin/systemctl stop pulp_celerybeat.service \ stopping squid Redirecting to /bin/systemctl stop squid.service \ stopping qpidd Redirecting to /bin/systemctl stop qpidd.service | stopping qdrouterd Redirecting to /bin/systemctl stop qdrouterd.service | stopping mongod Redirecting to /bin/systemctl stop mongod.service | All services stopped Starting the following service(s): mongod, qdrouterd, qpidd, squid, pulp_celerybeat, pulp_resource_manager, pulp_streamer, pulp_workers, goferd, httpd, foreman-proxy | starting mongod Redirecting to /bin/systemctl start mongod.service / starting qdrouterd Redirecting to /bin/systemctl start qdrouterd.service / starting qpidd Redirecting to /bin/systemctl start qpidd.service - starting squid Redirecting to /bin/systemctl start squid.service - starting pulp_celerybeat Redirecting to /bin/systemctl start pulp_celerybeat.service \ starting pulp_resource_manager Redirecting to /bin/systemctl start pulp_resource_manager.service \ starting pulp_streamer Redirecting to /bin/systemctl start pulp_streamer.service - starting pulp_workers Redirecting to /bin/systemctl start pulp_workers.service \ starting goferd Redirecting to /bin/systemctl start goferd.service \ starting httpd Redirecting to /bin/systemctl start httpd.service | starting foreman-proxy Redirecting to /bin/systemctl start foreman-proxy.service / All services started [OK] -------------------------------------------------------------------------------- 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. https://access.redhat.com/errata/RHBA-2018:2926 |