I'm running ztpserver 2.0.0 using a Python 3.8 venv and Apache. The install_image script fails after the image is downloaded. It looks like the script is attempting to pull the file twice from different URLs: http://{ztpserver}:8080/files/images/EOS-4.29.3M.swi and http://{ztpserver}:8080/meta/files/images/EOS-4.29.3M.swi before it fails.
Sanitized output from the Arista switch:
bash-4.2# python zt-download
...
{serial}: Downloading action install_image
{serial}: GET http://{ztpserver}:8080/actions/install_image
{serial}: Server response to GET request: status=200
{serial}: Writing /tmp/install_image...
{serial}: Executing action install_image
{serial}: STREAM http://{ztpserver}:8080/files/images/EOS-4.29.3M.swi - /mnt/flash/EOS-4.29.3M.swi
{serial}: Server response to GET request: status=200
{serial}: GET http://{ztpserver}:8080/meta/files/images/EOS-4.29.3M.swi
ERROR: {serial}: Bootstrap process failed: executing action failed (install_image): Expecting value: line 1 column 1 (char 0)
I'm running ztpserver 2.0.0 using a Python 3.8 venv and Apache. The
install_image
script fails after the image is downloaded. It looks like the script is attempting to pull the file twice from different URLs:http://{ztpserver}:8080/files/images/EOS-4.29.3M.swi
andhttp://{ztpserver}:8080/meta/files/images/EOS-4.29.3M.swi
before it fails.Sanitized output from the Arista switch:
Sanitized definition file:
Troubleshooting steps I have tried:
files/images/
meta/files/images/
and copied the same EOS image to that locationztps --validate
to validate YAML definition file