Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install_config times out on longer commit checks #85

Closed
AlpineScrewdriver opened this issue Jan 3, 2019 · 2 comments · Fixed by saltstack/salt#55824
Closed

install_config times out on longer commit checks #85

AlpineScrewdriver opened this issue Jan 3, 2019 · 2 comments · Fixed by saltstack/salt#55824

Comments

@AlpineScrewdriver
Copy link

AlpineScrewdriver commented Jan 3, 2019

Using new timeoutdecorator still doesn't fix install_config for me when commit_check takes 30+ seconds as well. Looks like timeout is set temporarily for certain tasks but not the commit check.

The only way I can get longer device commits to work (that take +30 seconds to commit check as well) is to modify the device.py itself to hard code the timeout property to 300, then restarting the proxy-minion.

I would recommend testing anything timeout related with an SRX300. You can use a state with a configuration group of ~10 items (doesn't need to be enormous) and applying that group. You will want to make sure a commit check on the device itself takes longer than 30 seconds for what the state is trying to apply.

10 security address objects or 10 dhcp bindings should do the trick.

A better approach to this in general would be to start the proxy minion with an RPC timeout option to override the default of 30.
Something like:
"salt-proxy --proxyid=SLOWSRX -d -t 300"

If commit checks are timing out these might show up in install_config as unlockerrors or rpctimeouts from my testing.

edit: timeout support would make more sense in proxy data in the pillar
timeout: 300 (would be amazing)

@rsmekala
Copy link

@Zapotomous Could you please provide the following details.

  • What branch of the repository are you currently using ??
    Example :
git branch
* 2018.3.3
  develop
  updated_develop
  • What is the salt command you are trying to run ??
    Example:
    salt 'device_name' junos.install_config 'salt://config.set' dev_timeout=300

@AlpineScrewdriver
Copy link
Author

I pulled down the updated_develop branch again and can't reproduce the issue I was having before where dev_timeout would not work. I've tested passing dev_timeout to rollback and install_config several times with no issues now.

Thanks for opening a task for pillar option timeout.

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 a pull request may close this issue.

2 participants