Description

This KB is applicable to any CSO version. 

This KB details one of the issue which can cause the site onboarding ZTP task to fail with error, "Stage-one configuration apply on device failed".

Symptoms

ZTP task during site onboarding failed with below error:

Mar 14, 2023, 8:59:52 PMReceived activation state: CONFIGURATION_FAILED with activation msg: Stage-one configuration apply on device failed. for: d22773db-c663-4c40-b715-638cf3265e94
Mar 14, 2023, 9:00:40 PMBootstrap: skip message for state transition previous:DEVICE_DETECTED to current:DEVICE_DETECTED. Waiting for next notification.
Mar 14, 2023, 9:02:02 PMReceived activation state: CONFIGURATION_FAILED with activation msg: Stage-one configuration apply on device failed. for: d22773db-c663-4c40-b715-638cf3265e94
Mar 14, 2023, 9:02:52 PMBootstrap: skip message for state transition previous:DEVICE_DETECTED to current:DEVICE_DETECTED. Waiting for next notification.
Mar 14, 2023, 9:04:13 PMbootstrap timedout for activate device !
Mar 14, 2023, 9:04:13 PMBootstrap: FAILED Bootstrap failure: <type 'exceptions.Exception'> bootstrap timedout for activate device !
Mar 14, 2023, 9:04:13 PMBootstrap failure: <type 'exceptions.Exception'> bootstrap timedout for activate device

Solution

This error points to an issue with the device template which was used for the site onboarding. 

In this errored site, the image specified in the device template was wrong. The image version was not supported by CSO. 

Example:

/var/third-party/images/junos-media-srxmr-x86-64-vmdisk-20.4R3-S5.4.qcow2

Due to this, CSO internal micro services failed to compile the stage 1 config which resulted in bootstrap timeout and resulted in the failure. 

After removing the unsupported image from the template, ztp task performed as expected and site onboarding was a success. 

Modification History

2023-05-25: Initial publication