Gather debug information from CI environment
Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
parent
64a61ef544
commit
014e78d7f6
1 changed files with 14 additions and 4 deletions
|
@ -48,21 +48,31 @@ jobs:
|
|||
run: |-
|
||||
podman-service.sh
|
||||
podman info
|
||||
|
||||
|
||||
mkdir /config
|
||||
printf "[TestFrostFS]\ntype = frostfs\nendpoint = localhost:8080\nwallet = /config/wallet.json\nplacement_policy = REP 1\nrequest_timeout = 20s\nconnection_timeout = 21s" > /config/rclone.conf
|
||||
|
||||
|
||||
echo "run frostfs aio container"
|
||||
docker run -d --net=none --name aio $AIO_IMAGE:$AIO_VERSION --restart always -p 8080:8080
|
||||
docker logs -f aio &
|
||||
|
||||
echo "issue creds"
|
||||
docker exec aio /usr/bin/issue-creds.sh native
|
||||
echo "copy wallet"
|
||||
docker cp aio:/config/user-wallet.json /config/wallet.json
|
||||
|
||||
|
||||
echo "wait for frostfs to start"
|
||||
until docker exec aio curl --fail http://localhost:8083 > /dev/null 2>&1; do sleep 0.2; done;
|
||||
|
||||
|
||||
go test -v github.com/rclone/rclone/backend/frostfs
|
||||
docker remove aio --force
|
||||
docker remove aio --force
|
||||
|
||||
- name: Gather debug information
|
||||
if: failure()
|
||||
shell: /bin/bash -x "{0}"
|
||||
run: |-
|
||||
apt update; apt install -y iproute2
|
||||
ss -tnlp
|
||||
docker ps -a
|
||||
docker inspect aio
|
||||
|
|
Loading…
Add table
Reference in a new issue