Description

This article defines a state when an old Job for ZTP of a Spoke is stuck in on-progress state and a new deployment fails due to the old Job stuck status.
A procedure is also available to clear the old job from the queue and proceed with the new ZTP.

Symptoms

One of two Dual CPE nodes, encounters ZTP job stuck in progress.  The following example CPE1 node of Dual CPE site J1203-5509 is in-progress state:
 
Job Id : 4aa65fef-6d6a-4279-83e9-1165322b6245
Job Name : Zero Touch Provisioning J1203-5509_cpe0
 
Status : Failed
Created Date : Apr 27, 2022, 2:44:01 PM
End Date : Apr 27, 2022, 2:45:05 PM

Job Id : 3f18f107-e60b-4e60-a51f-e635c562c3b7
Job Name: Zero Touch Provisioning J1203-5509_cpe1
Status : In Progress
Created Date : Apr 27, 2022, 2:44:11 PM
End Date : Apr 27, 2022, 4:27:42 PM

 
Then user deleted the site and tried to activate the site again. However, ZTP job of CPE1 which was in progress earlier, is not triggered due to the activation of Dual CPE site failure.
 
Job Id: cf4cbcf0-8e38-405f-b497-6b6014f7c0e5
Job Name : Delete Site J1203-5509
State : Passed
Created Date: Apr 27, 2022, 2:46:31 PM
End Date: Apr 27, 2022, 2:48:20 PM
 
Job Id: b45ef5ef-c8f3-4fe8-af59-85fe0c1f4327
Job Name : Configure Spoke Site J1203-5509
State: Passed
Created Date: Apr 27, 2022, 2:49:19 PM
End Date: Apr 27, 2022, 2:51:02 PM
 
Job Id: 2d86d18e-b2f5-46ef-b3fb-35bb8210eba3
Job Name: Zero Touch Provisioning J1203-5509_cpe0
State: Failed
Created Date: Apr 27, 2022, 3:35:38 PM
End Date: Apr 27, 2022, 4:02:00 PM

 

Solution

Update the in-progress state of CPE1 job to fail through Rest API. Refer to Example: How to execute CSO HTTP Restful APIs using Postman API Client
 
Method: Post
URL: https://CSO-Portal-IP-ADDRESS or CSO-Portal--DNS-NAME/job-service/update-job-results
 
Body:
{
"input": {
"status": "failed",
"results": "complete",
"job_id": "3f18f107-e60b-4e60-a51f-e635c562c3b7",
"detailed_results": null
}
}

 
  • Delete the site from CSO portal.
  • Zeroize both CPE nodes and pre-stage them with right configuration.
  • Configure the Dual CPE site and activate the site again through CSO portal.

Modification History

2022-09-26: KB created.