12-20-2018 07:36 AM - edited 03-01-2019 04:15 AM
Does anyone know how to stop an NSO running process?
Examples:
-Perform sync-from on 100 devices (ssh keys not yet fetched, so each starts to fail sync-from), I ctrl+C, but sync-from is still running
-A action to scp a device image to a device (notice it is incorrect, want to kill process then send correct image)
We have had to try and use ps and kill processes that way because ctrl+C inside of NSO brings you back to the terminal but does not stop the process. I understand it may not want to stop the process because of atomicity, however is there a clean and/or dirty way to kill processes inside of NSO? Such as the action that pushes an image we would be fine killing, a partial image would get pushed, and we wouldn't care too much. For killing something like sync-from would be fine because it isn't touching device configuration.
It gets questionable if you try to kill a commit or something, but we would like to be able to make use of process tracking or killing for the given examples.
We've looked at 'show jobs', however something like a sync-from or a action do not show up under jobs, jobs are more for something like to monitor.
Any thoughts?
12-20-2018 03:53 PM
12-21-2018 06:36 AM
Here is an scp-to example:
Here's a way to see the issue for yourself:
We encountered the same thing when initially onboarding devices, where we did not fetch the ssh host keys and ran connect, of course every device was failing. We ctrl+C out of the connect, however it still attempted every device.
01-06-2019 09:20 PM
I accidentally forgot about this discussion... I would say open a TAC case to further investigate. Simply provide your observations/evidence and let's see if TAC can assist you further.
Thank you!
01-07-2019 06:19 AM
Thanks Joey, we have a TAC case open, I thought I would check if anyone on Dev Hub had other ideas or work arounds.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide