Disable fast fail on parallel sigul 23/12523/1 v0.17.1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 10 Sep 2018 19:29:04 +0000 (12:29 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 10 Sep 2018 19:29:04 +0000 (12:29 -0700)
Sigul bridges seem to possibly have an issue with a lot of in parallel
signing requests. This is either an issue with the bridge, the server,
or a disconnected across the network VPN backhaul between the server and
bridge. Instead of having the signing just outright fail on the first
problem, we should try a few times.

Change-Id: I98a5c8adeb25e892899a221dc2078a9fc779f74e
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
shell/sign

index ceff491..d572560 100755 (executable)
@@ -103,7 +103,7 @@ sign_dir() {
             sigul )
                 # We need to wordsplit ${files_to_sign[*]} so disable quoting check
                 # shellcheck disable=SC2086
-                parallel --no-notice --jobs 200% --halt now,fail=1 \
+                parallel --no-notice --jobs 200% --retries 3 \
                     "sigul --batch -c $SIGUL_CONFIG sign-data -a -o {}.asc \
                     $SIGUL_KEY {} < $SIGUL_PASSWORD" ::: ${files_to_sign[*]}
                 ;;