Open sngx13 opened 1 year ago
Hi, It's been a while, have you managed to reproduce this?
DUT-C1111-4P#
2022-12-19 10:55:23,421: %UNICON-INFO: Learned hostname(s): 'DUT-C1111-4P'.
2022-12-19 10:55:23,485: %UNICON-INFO: +++ DUT-C1111-4P with via 'console': enable +++
2022-12-19 10:55:23,550: %UNICON-INFO: +++ DUT-C1111-4P with via 'console': executing command 'write erase' +++
write erase
************************************************************************************************************
Erasing Nvram will not clear license trust code.
************************************************************************************************************
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
DUT-C1111-4P#
2022-12-19 10:55:25,929: %UNICON-INFO: +++ DUT-C1111-4P with via 'console': reload +++
2022-12-19 10:55:25,994: %UNICON-INFO: +++ reloading DUT-C1111-4P with reload_command 'reload' and timeout is 300 seconds +++
reload
System configuration has been modified. Save? [yes/no]: n
WARNING:
Boot variable either does not exist or buffer is too small
This may impact autoboot of the router. Proceed with caution
Do you wish to proceed with reload anyway[confirm]
2022-12-19 11:00:26,003: %UNICON-WARNING: Timeout of 300 seconds has been reached.
Prompt Recovery has commenced. Total timeout occurs in 100 seconds.
2022-12-19 11:00:26,007: %UNICON-INFO: Sending prompt recovery command: b'\r'
Proceed with reload? [confirm]
2022-12-19 11:00:36,027: %UNICON-INFO: Sending prompt recovery command: b'\x15'
Getting stuck at [confirm] prompt until recovery kicks in.
One interesting observation though. when the following line appears in syslog, reload is always 100% successful: _%IOSXE_RP_CFG_NOT-3-BOOT_VAR_NOTSET: Either the boot variable does not exist or the buffer is too small.Keep it blank.
2022-12-19 12:27:22,902: %UNICON-INFO: Executing post credential command: sendline()
DUT-C1111-4P#
2022-12-19 12:27:23,195: %UNICON-INFO: Learned hostname(s): 'DUT-C1111-4P'.
2022-12-19 12:27:23,259: %UNICON-INFO: +++ DUT-C1111-4P with via 'console': enable +++
2022-12-19 12:27:23,833: %UNICON-INFO: +++ DUT-C1111-4P with via 'console': executing command 'write erase' +++
write erase
************************************************************************************************************
Erasing Nvram will not clear license trust code.
************************************************************************************************************
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
DUT-C1111-4P#
2022-12-19 12:27:26,241: %UNICON-INFO: +++ DUT-C1111-4P with via 'console': reload +++
2022-12-19 12:27:26,306: %UNICON-INFO: +++ reloading DUT-C1111-4P with reload_command 'reload' and timeout is 400 seconds +++
reload
WARNING:
Boot variable either does not exist or buffer is too small
This may impact autoboot of the router. Proceed with caution
Do you wish to proceed with reload anyway[confirm]
*Dec 19 12:27:25.919: %SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
Proceed with reload? [confirm]
*Dec 19 12:27:27.783: %IOSXE_RP_CFG_NOT-3-BOOT_VAR_NOT_SET: Either the boot variable does not exist or the buffer is too small.Keep it blank.
*Dec 19 12:27:31.050: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.Rom image verified correctly
Hi,
can you handle the Dialog the right way?
above link will help you
thanks
Hi, I'm using defaults, shouldn't those work? Thanks
On Mon, 19 Dec 2022, 17:40 ketul, @.***> wrote:
Hi,
can you handle the Dialog the right way?
above link will help you
thanks
— Reply to this email directly, view it on GitHub https://github.com/CiscoTestAutomation/unicon.plugins/issues/72#issuecomment-1358014022, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2CGUE3ROWXXGJWJEGI3QLWOCMYDANCNFSM6AAAAAASNIZTZE . You are receiving this because you authored the thread.Message ID: @.***>
Where can i find dialog handling? At least the default ones?
2022-12-20 11:01:10,419: %UNICON-INFO: +++ DUT-C1111-4P with via 'console': reload +++
2022-12-20 11:01:10,482: %UNICON-INFO: +++ reloading DUT-C1111-4P with reload_command 'reload' and timeout is 420 seconds +++
reload
System configuration has been modified. Save? [yes/no]: n
WARNING:
Boot variable either does not exist or buffer is too small
This may impact autoboot of the router. Proceed with caution
Do you wish to proceed with reload anyway[confirm]
This may be down to the fact that default dialog does not expect the warning message and isn't handling this properly:
WARNING: Boot variable either does not exist or buffer is too small This may impact autoboot of the router. Proceed with caution
Could this be added to next release?
Update Just confirmed my theory, when boot system bootflash:xxxx is added, problem goes away i.e WARNING message no longer appears and Unicon handles it properly. Can we handle this by default as there are instances when people are not setting boot vars but instead delete the old IOS?
Sending e.g device.reload() doesn't always produce expected result. It's sitting and waiting for something at the reload confirm prompt and eventually timeouts and prompt recovery kicks in which effectively sends a new line and allows for reload to proceed.
YAML:
LOG output: