You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Attempt of removing inactive sonic image by firmware's remove plugin fails.
In syslog it claims that image is not specified but it has been specified in ztp config file.
Steps to reproduce the issue
Install two images on the switch.
Boot sonic with ZTP enabled feature
Specify in the remove section the name of currently inactive image to be removed.
sonic_installer list
Current: SONiC-OS-HEAD.0-f6a8678d
Next: SONiC-OS-HEAD.0-f6a8678d
Available:
SONiC-OS-HEAD.0-f6a8678d
SONiC-OS-HEAD.0-fffee7e3 <==this image is supposed to be removed
Announce DHCP option 67 pointing to ztp_config.json (see at the bottom)
Initiate ZTP one more time
ztp erase
ztp run
Describe the results you received
Remove subtask fails with error:
Sep 4 08:07:26.460584 DUT-1 INFO sonic-ztp[20620]: Processing configuration section 01-firmware at 2020-09-04 08:07:26 UTC.
Sep 4 08:07:27.384968 DUT-1 ERR sonic-ztp[626]: firmware: Error [Version of image to be removed is not provided] encountered while processing.
Sep 4 08:07:27.402007 DUT-1 INFO sonic-ztp[20620]: Processed Configuration section 01-firmware with result FAILED, exit code (1) at 2020-09-04 08:07:26 UTC.
Sep 4 08:07:27.403739 DUT-1 INFO sonic-ztp[20620]: Checking configuration section 01-firmware result: FAILED, ignore-result: False.
Sep 4 08:07:27.404560 DUT-1 INFO sonic-ztp[20620]: ZTP failed at 2020-09-04 08:07:27 UTC as configuration section 01-firmware FAILED.
Although SONiC's image is specified in ztp config file:
Describe the results you expected
Specified in ztp config file image has to be removed.
Output of show version
SONiC Software Version: SONiC.HEAD.0-f6a8678d
Distribution: Debian 9.13
Kernel: 4.9.0-11-2-amd64
Build commit: f6a8678d
Build date: Mon Aug 17 14:01:06 UTC 2020
Built by: ezrada@l-csi-0241l
Platform: x86_64-mlnx_msn2700-r0
HwSKU: Mellanox-SN2700
ASIC: mellanox
Serial Number: MT1646X05282
Uptime: 08:08:51 up 26 min, 2 users, load average: 0.07, 0.55, 0.85
Description
Attempt of removing inactive sonic image by firmware's remove plugin fails.
In syslog it claims that image is not specified but it has been specified in ztp config file.
Steps to reproduce the issue
Describe the results you received
Remove subtask fails with error:
Although SONiC's image is specified in ztp config file:
Describe the results you expected
Specified in ztp config file image has to be removed.
Output of
show version
sonic_dump_DUT-1_20200904_080850.tar.gz
ZTP config file:
The text was updated successfully, but these errors were encountered: