Hi,
Trying to create a ZTP setup for EX2300s (initially, later other models will follow), but I'm stuck at the image upgrade.
The device gets it's IP, hostname etc. and correctly downloads the image via FTP and starts to upgrade, but subsequently fails without much information.
The error is the same if I do a manual upgrade using the already downloaded image file.
I've found other posts/KBs (pointing at possible storage space issues):
https://forums.juniper.net/t5/forums/v3_1/forumtopicpage/board-id/switch/thread-id/16459),
but even though I *might* be impacted by this, the error message does not indicate storage issues:
root@xxxxx> request system software add /var/tmp/junos-install-media-net-arm-32-15.1X53-D591.1.tgz no-copy force
usage: /usr/sbin/pkg add <pkg> ...
where <pkg> is a compressed tar file
ERROR: Failed to add junos-install-media-net-arm-32-15.1X53-D591.1.tgz
Initially I tried upgrading to 18.1 but after the first few failures I thought it might be because it was not possible without several upgrade cycles (the device is currently on 15.1X53-D58.3), hence I tried 15.1X53-D591, but perhaps this is also too new?
Here's the output from image_load_log (anonymized):
root@mastest1-cph3> show log image_load_log
[Thu Jan 1 00:06:47 UTC 1970] Creating /var/run/image_load.pid with 7707
[Thu Jan 1 00:06:47 UTC 1970] /usr/sbin/image_load -G <IP-OF-FTP-SERVER> -I irb -O install_reboot -D /var/tmp -W 3 -F junos-install-media-net-arm-32-15.1X53-D591.1.tgz -T ftp -R <DEFAULT GW>
[Thu Jan 1 00:06:56 UTC 1970] Directory to store image is valid /var/tmp
[Thu Jan 1 00:06:56 UTC 1970] Auto Image Upgrade: Interface:: "irb"
Auto Image Upgrade: FTP-SERVER:: "<IP-OF-FTP-SERVER>"
Auto Image Upgrade: Image File:: "junos-install-media-net-arm-32-15.1X53-D591.1.tgz"
Auto Image Upgrade: FTP-SERVER File:: "NOT SPECIFIED"
Auto Image Upgrade: Gateway:: "<DEFAULT GW>"
Auto Image Upgrade: Protocol:: "ftp"
[Thu Jan 1 00:06:56 UTC 1970] Delete default route, attempt [0]
[Thu Jan 1 00:06:56 UTC 1970] Default Route delete ret: delete default: Operation not permitted
[Thu Jan 1 00:06:59 UTC 1970] Add default route, attempt [0]
[Thu Jan 1 00:06:59 UTC 1970] Default Route add ret: add default: gateway <DEFAULT GW>
[Thu Jan 1 00:06:59 UTC 1970] Default route added successfully <DEFAULT GW>
[Thu Jan 1 00:06:59 UTC 1970] ftp ftp://<IP-OF-FTP-SERVER>/junos-install-media-net-arm-32-15.1X53-D591.1.tgz
[Thu Jan 1 00:07:01 UTC 1970] PING <IP-OF-FTP-SERVER> (<IP-OF-FTP-SERVER>): 56 data bytes
64 bytes from <IP-OF-FTP-SERVER>: icmp_seq=0 ttl=58 time=14.787 ms
--- <IP-OF-FTP-SERVER> ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 14.787/14.787/14.787/0.000 ms
irb: encaps: ether; framing: ether
flags=0x3/0x8000 <PRESENT|RUNNING>
curr media: i802 c0:3:80:f5:57:90
irb.0: flags=0x400c000 <UP|MULTICAST>
inet primary mtu 1500 local=<IP-OF-SWITCH> dest=<SUBNET>.0/24 bcast=<SUBNET>.255
[Thu Jan 1 00:07:01 UTC 1970] Auto Image Upgrade: Start fetching junos-install-media-net-arm-32-15.1X53-D591.1.tgz file from FTP-SERVER <IP-OF-FTP-SERVER> through irb using ftp
[Thu Jan 1 00:07:14 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:07:32 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:07:50 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:08:08 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:08:26 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:08:44 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:09:02 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:09:21 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:09:39 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:09:57 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:10:15 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:10:33 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:10:51 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:11:10 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:11:28 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:11:46 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:12:04 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:12:22 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:12:40 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:12:58 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:13:17 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:13:35 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:13:42 UTC 1970]
[Thu Jan 1 00:13:42 UTC 1970] Retry attempt count 0, fetch ret value 0
[Thu Jan 1 00:13:42 UTC 1970] Auto Image Upgrade: File junos-install-media-net-arm-32-15.1X53-D591.1.tgz fetched from FTP-SERVER <IP-OF-FTP-SERVER> through irb
[Thu Jan 1 00:13:42 UTC 1970] Absolute path is /var/tmp/junos-install-media-net-arm-32-15.1X53-D591.1.tgz
[Thu Jan 1 00:13:53 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:13:54 UTC 1970] pkg version local version 20180204.044726_builder_junos_151_x53_d58
[Thu Jan 1 00:14:02 UTC 1970] Package name
[Thu Jan 1 00:14:02 UTC 1970] Auto Image Upgrade: To install /var/tmp/junos-install-media-net-arm-32-15.1X53-D591.1.tgz image fetched from FTP-SERVER <IP-OF-FTP-SERVER> through irb
[Thu Jan 1 00:14:02 UTC 1970] WARNING!!! On successful image installation, system will reboot automatically
[Thu Jan 1 00:14:02 UTC 1970] request system software add /var/tmp/junos-install-media-net-arm-32-15.1X53-D591.1.tgz no-validate force
[Thu Jan 1 00:14:11 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:14:32 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:14:55 UTC 1970] image_load exists with pid 7707: /bin/sh/usr/sbin/image_load-G<IP-OF-FTP-SERVER>-Iirb-Oinstall_reboot-D/var/tmp-W3-Fjunos-install-media-net-arm-32-15.1X53-D591.1.tgz-Tftp-R<DEFAULT GW>
[Thu Jan 1 00:14:56 UTC 1970] usage: /usr/sbin/pkg add <pkg> ...
where <pkg> is a compressed tar file
ERROR: Failed to add junos-install-media-net-arm-32-15.1X53-D591.1.tgz
[Thu Jan 1 00:14:56 UTC 1970] Auto Image Upgrade: Installation of /var/tmp/junos-install-media-net-arm-32-15.1X53-D591.1.tgz image fetched from FTP-SERVER <IP-OF-FTP-SERVER> through irb is done, proceeding for reboot of system
[Thu Jan 1 00:14:56 UTC 1970] Removing aiu
[Thu Jan 1 00:15:03 UTC 1970] image_load PID:7707
[Thu Jan 1 00:15:03 UTC 1970] PID 7707
[Thu Jan 1 00:15:03 UTC 1970] PID 7707 exists, Retrieving child processes list
[Thu Jan 1 00:15:03 UTC 1970] Applying reboot operation on system
[Thu Jan 1 00:15:03 UTC 1970] Child processes list 8697
7707
[Thu Jan 1 00:15:03 UTC 1970] PID val 8697
[Thu Jan 1 00:15:03 UTC 1970] Terminating child process 8697
[Thu Jan 1 00:15:03 UTC 1970] Termination result 1
[Thu Jan 1 00:15:03 UTC 1970] PID val 7707
[Thu Jan 1 00:15:03 UTC 1970] Terminating image_load [7707] process
[Thu Jan 1 00:15:04 UTC 1970] Shutdown at Thu Jan 1 00:16:04 1970.
[pid 8769]
[Thu Jan 1 00:15:06 UTC 1970] cleanup 1, pid value 7707
[Thu Jan 1 00:15:06 UTC 1970] Removing /var/run/image_load.pid
[Thu Jan 1 00:15:06 UTC 1970] unlink /var/run/image_load.pid ret 0
[Thu Jan 1 00:15:06 UTC 1970] cleanup finished
[Thu Jan 1 00:15:19 UTC 1970] Termination result 1
Any help is appreciated and please bear with me if I'm missing the obvious as I'm very new to JunOS, coming from a Cisco and Arista background.
Cheers,
Niels
#upgrade#EX2300