You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
salt-cloud --parallel gets stuck in neverending loop trying to ssh #9742
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.
Ok, I think that 028d25adoes 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.
Activity
techhat commentedon Jan 14, 2014
Thanks for filing this @erjohnso.
JasonSwindle commentedon Jan 14, 2014
My issue is VERY close, but the SSH to the minion just get's spammed nearly all at once and then fails.
#9587
abemusic commentedon Jan 14, 2014
Using parallel and map files, I also get the SSH issues. Not using the parallel flag works as expected.
techhat commentedon Jan 14, 2014
This may not be an issue going back to f5810fd. Checking.
techhat commentedon Jan 14, 2014
Verified that it works that far back. That should make it easier to track down.
techhat commentedon Jan 14, 2014
@erjohnso would you mind rolling back to 028d25a and testing?
s0undt3ch commentedon Jan 14, 2014
tagging myself to on this issue to follow it(@s0undt3ch)
erjohnso commentedon Jan 14, 2014
Different error but at least it's not looping forever.
http://pastebin.com/1xvU9Mg4
erjohnso commentedon Jan 14, 2014
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
s0undt3ch commentedon Jan 15, 2014
This is the culprit commit 257a9c7...
Digging....
s0undt3ch commentedon Jan 15, 2014
Ok, the quick and dirty workaround, comment out the setwinsize line.
techhat commentedon Jan 15, 2014
@s0undt3ch confirmed to work on my end.
Don't fail badly on setting VT screen size. Refs saltstack#9742.
Merge pull request #9757 from s0undt3ch/develop
1 remaining item
abemusic commentedon Jan 15, 2014
Confirmed the fix works when not using a map file:
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 InstanceDon't fail badly on setting VT screen size. Refs saltstack#9742.
s0undt3ch commentedon Jan 16, 2014
@abemusic I'm able to trigger this issue.... investigating.
Check for boolean values first. Fixes saltstack#9742.
Check for boolean values first. Fixes saltstack#9742.
Don't fail badly on setting VT screen size. Refs saltstack#9742.
Check for boolean values first. Fixes saltstack#9742.
erjohnso commentedon Jan 16, 2014
Thanks @s0undt3ch, @cro, @techhat! Just ran more tests and it's working great!
abemusic commentedon Jan 16, 2014
Working for me too!!! Thanks guys!