Skip to content

salt-cloud --parallel gets stuck in neverending loop trying to ssh #9742

Closed

Description

@erjohnso

Affects current 'develop' branch and at least EC2 and GCE modules.

@techhat was able to repro.

# salt-cloud --parallel -p minion_profile minions{1..3}

The command does create a new instance in the forked process but when getting ready to start bootstrapping salt on the minion, the command goes into a never-ending loop trying to execute 'date' via SSH to determine that the instance is ready for bootstrapping.

The non-parallel version of the command works fine:

# salt-cloud -p minion_profile minions{1..3}

If the cloud profile has 'deploy: False', the the SSH command and bootstrapping are not performed. In this case --parallel works fine as a way to create multiple non-salted cloud instances.

Activity

  1. techhat commented on Jan 14, 2014

    @techhat
    Contributor

    Thanks for filing this @erjohnso.

  2. JasonSwindle commented on Jan 14, 2014

    @JasonSwindle
    Contributor

    My issue is VERY close, but the SSH to the minion just get's spammed nearly all at once and then fails.

    #9587

  3. abemusic commented on Jan 14, 2014

    @abemusic
    Contributor

    Using parallel and map files, I also get the SSH issues. Not using the parallel flag works as expected.

  4. techhat commented on Jan 14, 2014

    @techhat
    Contributor

    This may not be an issue going back to f5810fd. Checking.

  5. techhat commented on Jan 14, 2014

    @techhat
    Contributor

    Verified that it works that far back. That should make it easier to track down.

  6. techhat commented on Jan 14, 2014

    @techhat
    Contributor

    @erjohnso would you mind rolling back to 028d25a and testing?

  7. s0undt3ch commented on Jan 14, 2014

    @s0undt3ch
    Contributor

    tagging myself to on this issue to follow it(@s0undt3ch)

  8. erjohnso commented on Jan 14, 2014

    @erjohnso
    ContributorAuthor

    Ok, I think that 028d25a does work. I cleaned up an old salt install and fixed a typo in the gce.py module (/tmp/deplloy.sh?) and I was able to salt two GCE instances in parallel.

    @techhat, @s0undt3ch

  9. s0undt3ch commented on Jan 15, 2014

    @s0undt3ch
    Contributor

    This is the culprit commit 257a9c7...

    Digging....

  10. s0undt3ch commented on Jan 15, 2014

    @s0undt3ch
    Contributor

    Ok, the quick and dirty workaround, comment out the setwinsize line.

  11. techhat commented on Jan 15, 2014

    @techhat
    Contributor

    @s0undt3ch confirmed to work on my end.

  12. added a commit that references this issue on Jan 15, 2014
  13. 1 remaining item

  14. abemusic commented on Jan 15, 2014

    @abemusic
    Contributor

    Confirmed the fix works when not using a map file:

    salt-cloud --parallel --profile=centos-64 foo bar baz

    but using a map, I continue to have the same SSH issues:

    salt-cloud --parallel --map=/tmp/foo.map
    
    cat /tmp/foo.map
    centos-64:
    - foo-micro-0:
        availability_zone: us-east-1d
        size: Micro Instance
    - foo-micro-1:
        availability_zone: us-east-1d
        size: Micro Instance
    - foo-micro-2:
        availability_zone: us-east-1d
        size: Micro Instance
  15. s0undt3ch commented on Jan 16, 2014

    @s0undt3ch
    Contributor

    @abemusic I'm able to trigger this issue.... investigating.

  16. added 4 commits that reference this issue on Jan 16, 2014
    6daa55c
    b53d815
    6219263
    04bfcff
  17. erjohnso commented on Jan 16, 2014

    @erjohnso
    ContributorAuthor

    Thanks @s0undt3ch, @cro, @techhat! Just ran more tests and it's working great!

  18. abemusic commented on Jan 16, 2014

    @abemusic
    Contributor

    Working for me too!!! Thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions