scylladb / scylla-machine-image

Apache License 2.0
18 stars 25 forks source link

packer: increase pause_before value and add ssh_read_write_timeout #461

Closed benipeled closed 1 year ago

benipeled commented 1 year ago

After adding the pause_before param on db75e41 I saw that we have SSH connection issues, so in this PR I'm increasing the pause to 20s and adding the ssh_read_write_timeout param

Example failure:

10:08:16  ==> aws: Pausing 10s before the next provisioner...
10:08:27  ==> aws: Uploading files/ => /home/ubuntu/
10:08:30  ==> aws: Upload failed: dial tcp 54.198.229.78:22: connect: connection refused
10:08:30  ==> aws: Provisioning step had errors: Running the cleanup provisioner, if present...
10:08:30  ==> aws: Terminating the source AWS instance...
10:09:36  ==> aws: Cleaning up any extra volumes...
10:09:36  ==> aws: No volumes to clean up, skipping
10:09:36  ==> aws: Deleting temporary keypair...
10:09:36  Build 'aws' errored after 2 minutes 23 seconds: dial tcp 54.198.229.78:22: connect: connection refused
10:09:36  
10:09:36  ==> Wait completed after 2 minutes 23 seconds
10:09:36  
10:09:36  ==> Some builds didn't complete successfully and had errors:
10:09:36  --> aws: dial tcp 54.198.229.78:22: connect: connection refused
10:09:36  
10:09:36  ==> Builds finished but no artifacts were created.
benipeled commented 1 year ago

Verified twice

12:37:42  ==> gce: Pausing 20s before the next provisioner...
12:38:02  ==> gce: Uploading files/ => /home/ubuntu/
12:38:02  ==> gce: Uploading scylla_install_image => /home/ubuntu/
12:38:03  ==> gce: Provisioning with shell script: /tmp/packer-shell1237633713
12:38:04      gce:
12:38:04      gce: status: done
12:40:30  ==> azure: Pausing 20s before the next provisioner...
12:40:42  ==> azure: Uploading files/ => /home/azureuser/
12:40:42  ==> azure: Uploading scylla_install_image => /home/azureuser/
12:40:42  ==> azure: Provisioning with shell script: /tmp/packer-shell235878628
12:40:43      azure:
12:40:43      azure: status: done
12:39:09  ==> aws: Pausing 20s before the next provisioner...
12:39:26  ==> aws: Uploading files/ => /home/ubuntu/
12:39:26  ==> aws: Uploading scylla_install_image => /home/ubuntu/
12:39:27  ==> aws: Provisioning with shell script: /tmp/packer-shell2228372284
12:39:28      aws:
12:39:28      aws: status: done