/var/log/vmware/rbd/rbd-cache.log will report that the path "/var/lib/rbd/cache/vital" is missingYYYY:MM:DDTHH:MM:SS.Z [10882]ERROR:logutil:IOLogger : FileNotFoundErrorYYYY: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 pathYYYY:MM:DDTHH:MM:SS.Z [11243]INFO:vc_extension:Could not find a valid vcAddress in the config file, using the dbYYYY: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 contentsYYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:rbd-cached:Program exiting due to unknown exceptionTraceback (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 mainYYYY: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 mainYYYY: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 validateCacheYYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : File "bora/install/vmvisor/autodeploy/site-packages/vmware/rbd/waiter/cacher.py", line 567, in _ensureDirectoriesExistYYYY:MM:DDTHH:MM:SS.Z [11243]ERROR:logutil:IOLogger : File "/usr/lib/python3.7/os.py", line 221, in makedirsYYYY: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 : FileNotFoundErrorYYYY: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 pathYYYY:MM:DDTHH:MM:SS.Z [12184]INFO:vc_extension:Could not find a valid vcAddress in the config file, using the dbYYYY: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 contentsYYYY:MM:DDTHH:MM:SS.Z [12184]ERROR:rbd-cached:Program exiting due to unknown exception
vCenter Server 8.x
ESXI Host 8.x
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.
To resolve this issue, the missing directory structure and symbolic links must be manually restored on the vCenter Server Appliance.
ls -ltrh /var/lib/rbdln -s /storage/autodeploy/cache /var/lib/rbd/cachemkdir /storage/autodeploy/cache/vital chmod 770 /storage/autodeploy/cache/vitalchown deploy:deploy /storage/autodeploy/cache/vitalservice-control --restart vmware-rbd-watchdog