[state-driver] check driver daemons startup status through sentinel file - #2727
Conversation
531948c to
48b5707
Compare
|
looks good to me! |
48b5707 to
d1c42d6
Compare
|
One quick question: what will happen if the user started with newer operator and newer driver image, then driver image wrote NotReady to that status file and fails to start the daemons correctly. If the user has to switch to an older image say which is working fine, will the operator be able to proceed in that case as the status file still exists on node with NotReady state? Or, will it be able to clear it and continue. |
|
It's a valid concern. I am thinking that it may be best to clear the |
Can we add it here? |
I guess initially your PR was adding it under |
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
d1c42d6 to
3b79308
Compare
Done |
This change is accompanied by the driver-container PR NVIDIA/gpu-driver-container#913.
We introduce a new sentinel file called
.driver-daemons-statuswhich will help the driver container ensure that the Fabric Manager and other daemons are all fully up and running before the driver container goes into theRunningstate.For reasons of backward compatibility, we only enforce this check if the
.driver-daemons-statusfile is present. This way, the operator will continue to work with other driver containers that don't have this capability