Add "Reboot Failed" as terminal job state for 14G

In the 14G iDRAC 9, "Reboot Failed" has been added as a terminal job
state.  This patch updates the job filter query in list_jobs so that
jobs with a status of "Reboot Failed" will now be considered a finished
job.

Change-Id: Icffb22da37f99f8b24fcab405be196eace436785
Closes-Bug: #1707911
This commit is contained in:
Christopher Dearborn 2017-08-01 13:44:32 -04:00
parent bcfe996deb
commit 8e49089db3
2 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,7 @@ class JobManagement(object):
filter_query = ('select * from DCIM_LifecycleJob '
'where Name != "CLEARALL" and '
'JobStatus != "Reboot Completed" and '
'JobStatus != "Reboot Failed" and '
'JobStatus != "Completed" and '
'JobStatus != "Completed with Errors" and '
'JobStatus != "Failed"')

View File

@ -50,6 +50,7 @@ class ClientJobManagementTestCase(base.BaseTest):
expected_filter_query = ('select * from DCIM_LifecycleJob '
'where Name != "CLEARALL" and '
'JobStatus != "Reboot Completed" and '
'JobStatus != "Reboot Failed" and '
'JobStatus != "Completed" and '
'JobStatus != "Completed with Errors" and '
'JobStatus != "Failed"')