Skip to content

Prevent runaway command line execs#7

Open
FabianPonce wants to merge 2 commits intoCiscoDevNet:masterfrom
FabianPonce:fix/infinite-loop
Open

Prevent runaway command line execs#7
FabianPonce wants to merge 2 commits intoCiscoDevNet:masterfrom
FabianPonce:fix/infinite-loop

Conversation

@FabianPonce
Copy link
Copy Markdown

@FabianPonce FabianPonce commented Jul 8, 2022

We recently installed these scripts on an virtualized CSR 1000V and that was correlated with some new failures that the devices started to experience. We haven't nailed down the precise root cause, but we do believe that the error handling here could've made the problem worse by not eventually failing.

This pull request changes the calls to cli.execute such that a failure to return a CLI response for any reason will no longer retry in an infinite loop. I wasn't sure whether or not the retry logic had been added to address some transient failures that were normal in IOS world, so I just capped the limit for retries at 3.

@FabianPonce FabianPonce changed the title Prevent runaway command line execs from overwhelming the system Prevent runaway command line execs Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant