Commit Graph

486 Commits (b4e70cc0ec0b24b040fe0dfbf68c560dc6c0f736)

Author SHA1 Message Date
Megan Marsh d6d4eb2087 fix some tests and some config behavior to prevent null dereference errors and incorrect precedence between iso checksum and iso checksum url
7 years ago
Megan Marsh 998ef4053f parse checksum file so that we can use the checksums inside in the vmware-esxi builder stepuploadiso
7 years ago
Megan Marsh 88d589cc88 enable smb share double backslash pathing too
7 years ago
Megan Marsh 12471a8b06 use file getter for smb shares
7 years ago
Megan Marsh 8d25cc578f
Merge pull request #7746 from hashicorp/fix_7671
7 years ago
Megan Marsh 2e821da84b check to make sure a vm-name isn't already in use before trying to launch a vm with said name.
7 years ago
Adrien Delorme ca33f8bc5c Revert "Backoff.Linear: panic when InitialBackoff > MaxBackoff"
7 years ago
Adrien Delorme 39cfacd5fa Backoff.Linear: panic when InitialBackoff > MaxBackoff
7 years ago
Adrien Delorme 36e4eaff99 document retry.Backoff better
7 years ago
Radek Simko 8519da6ce9
common/net: Cleanup cache of used port after closing
7 years ago
Adrien Delorme b329073e54 remove trying port log as retry code will show errors
7 years ago
Adrien Delorme 38f789eedc add error types to test for
7 years ago
Adrien Delorme 14f2d1c132 ListenRangeConfig:Listen: use the retry pkg to wait a bit in between opens
7 years ago
Adrien Delorme e14d1b8b0b add a timeout trying to open a random port
7 years ago
Adrien Delorme 2fd7adffc4 add tests for ListenRangeConfig.Listen
7 years ago
Adrien Delorme d9e5145de9 Shadow the flock pkg & add a noop filelock so that at least the solaris binary can be built
7 years ago
Adrien Delorme 5d9d43c01d add tests for ListenRangeConfig.Listen
7 years ago
Adrien Delorme fd63ec9a6c ListenRangeConfig.Listen: move trying port log after fslock trylock for less logs
7 years ago
Adrien Delorme 79ae62801f ListenRangeConfig: default network ( protocol ) to tcp
7 years ago
Adrien Delorme 65be2be38b step_download: force copy of local files only on windows
7 years ago
Adrien Delorme 200e26ea85 Step download: always copy local files
7 years ago
Adrien Delorme 9f1136db77 retry: encapsulate & return the last seen error in a RetryExhaustedError
7 years ago
Megan Marsh e69d95eb37 when retries were exhausted in the retry Run, we were returning nil instead of an error.
7 years ago
Adrien Delorme 5f0259fe89 step download: don't fail when checksum_type is not set
7 years ago
Adrien Delorme 4dc12701d3 step_download: display clearer error messages, also when the checksum is not set
7 years ago
Megan Marsh 78cf1405ab
Merge pull request #7480 from BobSilent/fix-hyperv-multiple-hostadapter-same-switch
7 years ago
Adrien Delorme 9ac8d8aed8 step download: ovf files usually point to a file in the same directory, using them in place is the only way
7 years ago
Adrien Delorme 63f5bbbc73 use our own copy of iochan.LineReader
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
BobSilent 5b289f67fe Update hyperv.go
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
7 years ago
Megan Marsh 3e72e65a6c
Merge pull request #7456 from hashicorp/do_5770
7 years ago
Megan Marsh 217a93fc30 fix build_test.go on windows. This code needs to not be run in parallel, or else there can be race conditions with the post-processors all trying to access the same file at once. Additionally, I changed the test template itself so that it is valid code on either bash or cmd. Finally, I found and fixed a small bug in naming the file extensions in shell local inline scripts.
7 years ago
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Adrien Delorme 82c4b76639 [Builder|Build|PostProcessor|Provisioner|Hook]Server: context cancel using a RPC cancel method
7 years ago
Adrien Delorme 14048b1e11 Revert "WIP: go towards context cancelled rpc pkg"
7 years ago
Adrien Delorme 9e3a179c0d WIP: go towards context cancelled rpc pkg
7 years ago
Adrien Delorme 829851fc8a change hooks to be passed a context for cancellation
7 years ago
Adrien Delorme 9836dad0c9 introduce the clean_resource_name to clean image names and deprecate the old ones
7 years ago
Adrien Delorme 91cc7e1091 net.ListenRangeConfig.Listen: don't swap ports if max < min
7 years ago
Adrien Delorme a4a83be2b9 net.ListenRangeConfig.Listen: allow to have a port rage of zero
7 years ago
Adrien Delorme cd39aa9988 net.ListenRangeConfig.Listen: log tried ports a bit earlier in the process
7 years ago
Adrien Delorme 5a6dffde9a use port as ints
7 years ago
Adrien Delorme c214f6735b make everything a uint
7 years ago
Adrien Delorme 51294287fa StepHTTPServer: display error if we could not connect
7 years ago
Adrien Delorme 6df4128517 StepHTTPServer: use the common/net pkg
7 years ago
Adrien Delorme 1685a1c4c0 add common/net package that can listen on a random port in a range
7 years ago
Adrien Delorme 6ab28ba89c
Update common/shell/shell.go
7 years ago
Adrien Delorme b4ec6e2ed2 Create exit_code_test.go
7 years ago