Skip to content

Commit

Permalink
workflows: Debug info for key rotations
Browse files Browse the repository at this point in the history
During the key rotations, we compare the number of keys to the expected
number to know where we are in the process (started the rotation or
finished it). The expected number of keys depends on the configuration
so let's print it in the logs to help debug.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
  • Loading branch information
pchaigno committed Mar 27, 2024
1 parent 60e7212 commit 820aa07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/ipsec-key-rotate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ runs:
if [[ $keys_in_use == $exp_nb_keys ]]; then
break
fi
echo "Waiting until key rotation starts (seeing $keys_in_use keys)"
echo "Waiting until key rotation starts (seeing $keys_in_use keys, expected $exp_nb_keys)"
sleep 30s
done
Expand All @@ -75,6 +75,6 @@ runs:
if [[ $keys_in_use == $exp_nb_keys ]]; then
break
fi
echo "Waiting until key rotation completes (seeing $keys_in_use keys)"
echo "Waiting until key rotation completes (seeing $keys_in_use keys, expected $exp_nb_keys)"
sleep 30s
done

0 comments on commit 820aa07

Please sign in to comment.