Open grbesicb opened 2 years ago
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!
Description On first run Salt proxy napalm connection is set up successfully. After switch temporarily loses connectivity,
is_alive
is set to False andstatus.proxy_reconnect
gets called. During reconnect Salt does not passoptional_args: secret
to ConnectHandler and reconnect fails.Setup Pillar for proxy:
Steps to Reproduce the behavior
is_alive
to False because it can't reach switchstatus.proxy_reconnect
gets called but does not passoptional_args: secret
to ConnectHandleroptional_args: secret
was not passed to ConnectHandlerExpected behavior Reconnect should be successful with switch when
status.proxy_reconnect
gets called.Versions Report
Workaround We are able to workaround this by adding
opts["proxy"]["optional_args"]["secret"] = opts["pillar"]["proxy"]["optional_args"]["secret"]
inside if not is_alive statement in/opt/saltstack/salt/run/salt/modules/status.py
.Complete part of this code with workaround: