This article describes steps which can be performed to troubleshoot the vSRX loading with the factory default configuration instead of configuration used in Cloud-Init in OpenStack and AWS environments.
A few different issues may occur when initialization of the vSRX instances is automated using Cloud-Init. Three cases where the the vSRX loads with the factory default are listed below.
Note: The cloud-init log file is located in AWS EC2 syslog at: /var/log/cloud-init.log[ Refer : Amazon Documentation at https://docs.aws.amazon.com/managedservices/latest/userguide/access-to-logs-ec2.html ]
/var/log/cloud-init.log
Case 1: Error reported in boot up log: ERROR: Failed to commit user data configuration!
ERROR: Failed to commit user data configuration!
# ERROR: Failed to commit user data configuration! # Using the factory default configuration
Case 2: Error reported in boot up log: #junos-config is missing in user-data is reported
#junos-config is missing in user-data
#junos-config is missing in user-data
Case 3 : No errors reported in boot up log, but vSRX loads with factory default configuration.
#junos-config
/config/juniper_user_data.conf
load override <juniper_user_data.conf>
#junos-config
Case 3: No errors reported in boot up log, but vSRX loads with factory default configuration. This indicates that the configuration had some errors and it failed to load leading vSRX to fallback to factory-default.
For more details, refer to the following technical documentation links:
2019-09-20: Added links to technical documentation for more information.2023-08-30:
Added another commonly encountered failure scenario in Case-3.