Skip to content

[BUG] salt.util.cloud connections hang indefinitely.  #60216

Closed

Description

@dwoz

Description

If a host or network goes away during a cloud deployment ssh connections to the box can be left in a hung state indefinitely.

Steps to Reproduce the behavior

Run 50+ deployments using the saltify cloud provider when some of the hosts might go away before the deployment finishes.

Expected behavior

We should add ServerAliveInterval and ServerAliveCountMax options to all connections in salt.utils.cloud. Add these options anywhere we are setting the StrictHostKeyChecking option.

Values of these options can be something like ServerAliveInterval=10 and ServerAliveCountMax=3 which will detect network failures and timeout after 30 seconds.

We can make these values configurable but we should at least have some sane defaults for them. Making them configurable is not necessary to close this issue.

Screenshots
If applicable, add screenshots to help explain your problem.

Versions Report

Observed on 3002.5

This issue came from debugging #59903

Activity

  1. added
    bug
    Silicon v3004.0
    severity-high
    and removed on May 19, 2021
  2. added this to the Silicon milestone on May 19, 2021
  3. added
    bugfix-bckport
    on Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Salt-Cloudbugbugfix-bckportseverity-high

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions