[Mellanox] Extend the time to wait for EEPROM VPD file creation (#18146)

- Why I did it
The creation of system EEPROM VPD file "/var/run/hw-management/eeprom/vpd_info" is triggered by the udev event during the system boot up, in case the CPU is busy during the bootup, the udev event handling can be delayed, and need to wait for some more time for the file creation.

- How I did it
Extend the waiting time from 10s to 20s to overcome some extreme case.

- How to verify it
continuously run reboot case and verify whether still can see error msg "ERR decode-syseeprom: Nowhere to read syseeprom from! No symlink found"

Signed-off-by: Kebo Liu <kebol@nvidia.com>
This commit is contained in:
Kebo Liu 2024-02-29 21:46:49 +08:00 committed by mssonicbld
parent 7d44c6b00b
commit 865d2ba44b

View File

@ -1,5 +1,5 @@
# #
# Copyright (c) 2019-2023 NVIDIA CORPORATION & AFFILIATES. # Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES.
# Apache-2.0 # Apache-2.0
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
@ -51,7 +51,7 @@ if platform_name and 'simx' in platform_name and '4700' not in platform_name:
os.makedirs(os.path.dirname(EEPROM_SYMLINK)) os.makedirs(os.path.dirname(EEPROM_SYMLINK))
subprocess.check_call(['/usr/bin/xxd', '-r', '-p', 'syseeprom.hex', EEPROM_SYMLINK], cwd=platform_path) subprocess.check_call(['/usr/bin/xxd', '-r', '-p', 'syseeprom.hex', EEPROM_SYMLINK], cwd=platform_path)
WAIT_EEPROM_READY_SEC = 10 WAIT_EEPROM_READY_SEC = 20
class Eeprom(eeprom_tlvinfo.TlvInfoDecoder): class Eeprom(eeprom_tlvinfo.TlvInfoDecoder):