Check LCStatus instead of MessageID to determine if an iDRAC is ready
We are currently checking the MessageID to determine if an iDRAC
is ready. This patch is to check the value of LCStatus instead of
MessageID. If the value of LCStatus is "0", then the iDRAC is
considered ready.
Change-Id: I3426c226c4bb3cdcc95b98e9b203f100bb6777d5
(cherry picked from commit bcce3bdc6b
)
This commit is contained in:
parent
6c113d2919
commit
6b35e31ba7
|
@ -33,7 +33,7 @@ from dracclient.resources import uris
|
||||||
from dracclient import utils
|
from dracclient import utils
|
||||||
from dracclient import wsman
|
from dracclient import wsman
|
||||||
|
|
||||||
IDRAC_IS_READY = "LC061"
|
IDRAC_IS_READY = "0"
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1247,11 +1247,11 @@ class WSManClient(wsman.Client):
|
||||||
expected_return_value=utils.RET_SUCCESS,
|
expected_return_value=utils.RET_SUCCESS,
|
||||||
wait_for_idrac=False)
|
wait_for_idrac=False)
|
||||||
|
|
||||||
message_id = utils.find_xml(result,
|
lc_status = utils.find_xml(result,
|
||||||
'MessageID',
|
'LCStatus',
|
||||||
uris.DCIM_LCService).text
|
uris.DCIM_LCService).text
|
||||||
|
|
||||||
return message_id == IDRAC_IS_READY
|
return lc_status == IDRAC_IS_READY
|
||||||
|
|
||||||
def wait_until_idrac_is_ready(self, retries=None, retry_delay=None):
|
def wait_until_idrac_is_ready(self, retries=None, retry_delay=None):
|
||||||
"""Waits until the iDRAC is in a ready state
|
"""Waits until the iDRAC is in a ready state
|
||||||
|
|
Loading…
Reference in New Issue