Open kvaps opened 1 year ago
Hello,
thanks for the suggestions. We will think about the --nolocking
option, which does sound good, but we still need to make sure that it is indeed harmless for pvdisplay
, vgs
, lvs
and similar "read only operations".
Regarding the timeouts: Linstor already has a timeout, otherwise you would not be able to show an ErrorReport of a ChildProcessTimeoutException
:)
Linstor waits by default 45 seconds for the child process, another 15 seconds to try to kill the process after the first 45s passed and yet another 5 seconds to forcibly kill the process if the previous attempt did not work. In sum Linstor waits max 65 seconds if a command does not terminate and does not let itself be killed. In the demo you showed, I guess you simply did not wait long enough?
Hi, I just faced with problem when creating device the creation was stuck. Using strace I found out that it is due to stuck
pvdisplay
command. It creates/run/lock/lvm/V_data
lock, so any other run makes it stuck forever.None of commands like
linstor resource create
linstor storage-pool list
are workingSteps to reproduce:
Possible workaround: to use
--nolocking
for harmless commandsProposed solution: add timeout for commands execution
https://asciinema.org/a/C3nEJltt4ln0dskCbtjIXjKWj