Bug 1457222
Summary: | power management get status fails on python IndexError or cobbler exception | ||
---|---|---|---|
Product: | Red Hat Satellite 5 | Reporter: | Ales Dujicek <adujicek> |
Component: | Provisioning | Assignee: | Jan Dobes <jdobes> |
Status: | CLOSED ERRATA | QA Contact: | Pavel Studeník <pstudeni> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 580 | CC: | jdostal, lhellebr, pstudeni, tlestach |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | cobbler-2.0.7-72 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-05 13:57:18 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1450111 |
Description
Ales Dujicek
2017-05-31 11:25:17 UTC
This is a regression introduced by spacewalk.git(master): 4569ac912cf597273ca7a75d6e51a15ecdd45817 in 1169741 First indexing error fixed in spacewalk.git(master): ec89a3eb61f6f567fdec3ea20359201910191492 it now extracts the value from both output string types - e.g. "Status: ON" and "Chassis power is on" - however I don't know how to get the second output text when using default type ipmilan. Second failure when "Status: OFF" is not understood is caused by return code 2 of fence_ipmilan command while cobbler code expects return code 0 to evaluate command as successful, fixed (workarounded) in spacewalk.git(master): 694dc8060060ef82402ad5b7c52109368ed3543f It doesn't work cobbler-2.0.7-71.el6sat.noarch Thu Jan 18 05:58:25 2018 - INFO | received: Thu Jan 18 05:58:27 2018 - INFO | Exception Info: File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1762, in _dispatch return method_handle(*params) File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1719, in power_system rc=self.api.power_status(obj, user=None, password=None, logger=logger) File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 825, in power_status return action_power.PowerTool(self._config, system, self, user, password, logger = logger).power("status") File "/usr/lib/python2.6/site-packages/cobbler/action_power.py", line 129, in power utils.die(self.logger,"command failed (rc=%s), please validate the physical setup and cobbler config" % rc) File "/usr/lib/python2.6/site-packages/cobbler/utils.py", line 131, in die raise CX(msg) Verified with cobbler-2.0.7-72.el6sat.noarch 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:0274 |