Closed mgdevstack closed 8 years ago
It looks like mixlib-shellout has a default option for timing out of 600 seconds. I haven't looked through this code in a long time, but perhaps Spiceweasel needs to expose passing options to mixlib-shellout so we could change the timeout to something much larger.
https://github.com/chef/mixlib-shellout/blob/master/lib/mixlib/shellout.rb#L29
Problem is resolved with {{ -T time_out_in_minute }} attribute in spiceweasel command. But this should be default to 0 ~infinite.. unless not explicitly mentioned, as most of cookbook may require 1+ hr bootstrap time (10-12 min to aws instance sshd, package installations, configurations, data syncing from other servers etc).
chef exec spiceweasel -T 3600 -e path_to_infrastructure_json_file
Is there any configuration option to increase this connection timeout parameter ?
This is breaking server bootstrap process .. I tried with below configuraiton
But keeping this session timeout as 10 minute will cause failure if few package installation take more time than this and I want to put this in knife.rb configuraiton
In knife.rb configuraiton
This is allowing me to wait for ssh connection to establish with aws instance. but breaking server creation and bootstrap it time exceeds 300 sec with top declared shell error.
Issue:
Nodes with naming ServerCountNumber-21 , ServerCountNumber-22, ServerCountNumber-23 should be launched.