Auto Deploy service crashed, causing the vCenter to fail patching or trigger a "Connection Reset" boot error on Host.
search cancel

Auto Deploy service crashed, causing the vCenter to fail patching or trigger a "Connection Reset" boot error on Host.

book

Article ID: 437370

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • ESXi hosts fail to initiate boot via Auto Deploy.
  • The boot process loops or halts with the error: "Could not boot: Connection reset".

  • Network errors are encountered during the PXE/iPXE phase of the boot process
  • /var/log/vmware/rbd/rbd-cache.log will report that the path "/var/lib/rbd/cache/vital" is missing

YYYY:MM:DDTHH:MM:SS.Z [10882]ERROR:logutil:IOLogger : FileNotFoundError
YYYY:MM:DDTHH:MM:SS.Z [10882]ERROR:logutil:IOLogger : :
YYYY:MM:DDTHH:MM:SS.Z [10882]ERROR:logutil:IOLogger : [Errno 2] No such file or directory: '/var/lib/rbd/cache/vital'
YYYY:MM:DDTHH:MM:SS.Z [10882]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]INFO:vc_extension:Using the default linux install config file path
YYYY:MM:DDTHH:MM:SS.Z [11243]INFO:vc_extension:Could not find a valid vcAddress in the config file, using the db
YYYY:MM:DDTHH:MM:SS.Z [11243]INFO:dbsetup:installed DB connection <sqlite3.Connection object at 0x7ff007bc79d0> for thread <_MainThread(MainThread, started 140668942231360)>
YYYY:MM:DDTHH:MM:SS.Z [11243]INFO:networkutil:The configured address: [email protected]
YYYY:MM:DDTHH:MM:SS.Z [11243]INFO:vc_extension:Service Address (WAITER_ADDRESS) : 1##.##.##.##
YYYY:MM:DDTHH:MM:SS.Z [11243]INFO:cacher:BEGIN validating cache contents
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:rbd-cached:Program exiting due to unknown exception
Traceback (most recent call last):
  File "/usr/bin/rbd-cached", line 160, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/rbd-cached", line 25, in main
    return rbd_cached.main(args)
  File "/var/lib/rbd/bin/rbd_cached.py", line 31, in main
    cache1 = cacher.Cacher(cacheDir, cacheSize)
  File "bora/install/vmvisor/autodeploy/site-packages/vmware/rbd/waiter/cacher.py", line 332, in __init__
  File "bora/install/vmvisor/autodeploy/site-packages/vmware/rbd/waiter/cacher.py", line 380, in validateCache
  File "bora/install/vmvisor/autodeploy/site-packages/vmware/rbd/waiter/cacher.py", line 567, in _ensureDirectoriesExist
  File "/usr/lib/python3.7/os.py", line 221, in makedirs
    mkdir(name, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/rbd/cache/vital'
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : Traceback (most recent call last):
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :   File "/usr/bin/rbd-cached", line 160, in <module>
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : sys.exit(main(sys.argv))
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :   File "/usr/bin/rbd-cached", line 25, in main
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : return rbd_cached.main(args)
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :   File "/var/lib/rbd/bin/rbd_cached.py", line 31, in main
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : cache1 = cacher.Cacher(cacheDir, cacheSize)
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :   File "bora/install/vmvisor/autodeploy/site-packages/vmware/rbd/waiter/cacher.py", line 332, in __init__
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :   File "bora/install/vmvisor/autodeploy/site-packages/vmware/rbd/waiter/cacher.py", line 380, in validateCache
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :   File "bora/install/vmvisor/autodeploy/site-packages/vmware/rbd/waiter/cacher.py", line 567, in _ensureDirectoriesExist
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :   File "/usr/lib/python3.7/os.py", line 221, in makedirs
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : mkdir(name, mode)
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : FileNotFoundError
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : :
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : [Errno 2] No such file or directory: '/var/lib/rbd/cache/vital'
YYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger :
YYYY:MM:DDTHH:MM:SS.Z [12184]INFO:vc_extension:Using the default linux install config file path
YYYY:MM:DDTHH:MM:SS.Z [12184]INFO:vc_extension:Could not find a valid vcAddress in the config file, using the db
YYYY:MM:DDTHH:MM:SS.Z [12184]INFO:dbsetup:installed DB connection <sqlite3.Connection object at 0x7fbf8ad409d0> for thread <_MainThread(MainThread, started 140460688193344)>
YYYY:MM:DDTHH:MM:SS.Z [12184]INFO:networkutil:The configured address: [email protected]
YYYY:MM:DDTHH:MM:SS.Z [12184]INFO:vc_extension:Service Address (WAITER_ADDRESS) : 1##.##.##.##
YYYY:MM:DDTHH:MM:SS.Z [12184]INFO:cacher:BEGIN validating cache contents
YYYY:MM:DDTHH:MM:SS.Z [12184]ERROR:rbd-cached:Program exiting due to unknown exception

  • Patching vCenter Server 8.0 fails during the precheck phase with error "Internal error occurs during execution of update process".

  • From /var/log/vmware/applmgmt/PatchRunner.log, we will observe similar event                                                                                                                                                                                                                                                                                                                                                                                                                          Error: autodeploy:ComponentDiscovry ERROR vmware_b2b.patching.executor.hook_executor Patch hook 'autodeploy:ComponentDiscovery' failed. FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/rbd/cache'
  • The vmware-rbd-watchdog service fail to start with the error: Service name "rbd" is invalid.

Environment

vCenter Server 8.x

ESXI  Host 8.x

 

Cause

The symbolic link /var/lib/rbd/cache pointing to the /storage partition is missing or broken. Additionally, the vital subdirectory within the Auto Deploy cache may be missing, causing discovery hooks to fail.

 

Resolution

To resolve this issue, the missing directory structure and symbolic links must be manually restored on the vCenter Server Appliance.

  1. Access the VCSA: Log into the vCenter Server via SSH as root.
  2. Check the status of the rbd (Remote Boot Daemon) directory: ls -ltrh /var/lib/rbd
  3. If the cache link is missing or broken, recreate it pointing to the persistent storage partition: ln -s /storage/autodeploy/cache /var/lib/rbd/cache
  4. Create the specific directory required by the rbd-cached service: mkdir /storage/autodeploy/cache/vital
  5. Ensure the deploy user has ownership of the new directory:
    chmod 770 /storage/autodeploy/cache/vital
    chown deploy:deploy /storage/autodeploy/cache/vital
  6. Restart Service: Restart the Auto Deploy watchdog service to initialize the cache:
    service-control --restart vmware-rbd-watchdog