Init S3 Credentials failed #67

Closed
opened 2023-03-23 11:31:05 +00:00 by anikeev-yadro · 1 comment
Member

Init S3 Credentials in all autotests failed with error:

RuntimeError: Failed to init s3 credentials because of error
Could not find AWS credentials in output:
Enter password for /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.vMqltvMpGz/frostfs-testcases/TemporaryDir/11a6cc71-51ad-457d-8e97-54f90722f078.json > 
2023-03-23T03:06:49.137Z	DEBUG	s3-authmate/main.go:687	prepare connection pool
2023-03-23T03:06:49.172Z	INFO	authmate/authmate.go:236	check container or create	{"cid": "11111111111111111111111111111111", "friendly_name": "68036383-5538-4eba-a17f-1d985a3e163b", "placement_policy": "REP 2 IN X CBF 3 SELECT 2 FROM * AS X"}
failed to issue secret: check container: create container in FrostFS: save container via connection pool: wait container presence on client: context deadline exceeded

But in logs I cannot see any errors in the same time:
az

Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.676Z        info        s3-gw/app.go:353        application started        {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"}
Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.676Z        info        s3-gw/app.go:373        fetch domains, prepare to use API        {"domains": []}
Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.677Z        info        s3-gw/service.go:21        service is running        {"service": "Pprof", "endpoint": "localhost:8085"}
Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.677Z        info        s3-gw/service.go:21        service is running        {"service": "Prometheus", "endpoint": "localhost:8086"}
Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.677Z        info        s3-gw/app.go:386        starting server        {"address": "172.26.160.33:8084"}
Mar 23 03:46:00 az frostfs-s3-gw[7246]: 2023-03-23T03:46:00.064Z        debug        pool/pool.go:1679        health has changed        {"address": "172.26.160.164:8080", "healthy": false}
Mar 23 03:46:55 az frostfs-s3-gw[7246]: 2023-03-23T03:46:55.071Z        debug        pool/pool.go:1679        health has changed        {"address": "172.26.160.164:8080", "healthy": true}

buki

Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.924Z        info        s3-gw/app.go:353        application started        {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"}
Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.924Z        info        s3-gw/app.go:373        fetch domains, prepare to use API        {"domains": []}
Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.925Z        info        s3-gw/service.go:21        service is running        {"service": "Prometheus", "endpoint": "localhost:8086"}
Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.926Z        info        s3-gw/app.go:386        starting server        {"address": "172.26.160.164:8084"}
Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.926Z        info        s3-gw/service.go:21        service is running        {"service": "Pprof", "endpoint": "localhost:8085"}
Mar 23 03:46:00 buky frostfs-s3-gw[6234]: 2023-03-23T03:46:00.304Z        debug        pool/pool.go:1679        health has changed        {"address": "localhost:8080", "healthy": false}
Mar 23 03:46:55 buky frostfs-s3-gw[6234]: 2023-03-23T03:46:55.311Z        debug        pool/pool.go:1679        health has changed        {"address": "localhost:8080", "healthy": true}

Vedi

Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.660Z        info        s3-gw/app.go:353        application started        {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"}
Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.660Z        info        s3-gw/app.go:373        fetch domains, prepare to use API        {"domains": []}
Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.661Z        info        s3-gw/service.go:21        service is running        {"service": "Prometheus", "endpoint": "localhost:8086"}
Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.661Z        info        s3-gw/app.go:386        starting server        {"address": "172.26.160.121:8084"}
Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.661Z        info        s3-gw/service.go:21        service is running        {"service": "Pprof", "endpoint": "localhost:8085"}
Mar 23 03:45:59 vedi frostfs-s3-gw[6295]: 2023-03-23T03:45:59.052Z        debug        pool/pool.go:1679        health has changed        {"address": "172.26.160.164:8080", "healthy": false}
Mar 23 03:46:54 vedi frostfs-s3-gw[6295]: 2023-03-23T03:46:54.060Z        debug        pool/pool.go:1679        health has changed        {"address": "172.26.160.164:8080", "healthy": true}

glagoli

Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.176Z        info        s3-gw/app.go:353        application started        {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"}
Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.176Z        info        s3-gw/app.go:373        fetch domains, prepare to use API        {"domains": []}
Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.177Z        info        s3-gw/service.go:21        service is running        {"service": "Pprof", "endpoint": "localhost:8085"}
Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.177Z        info        s3-gw/service.go:21        service is running        {"service": "Prometheus", "endpoint": "localhost:8086"}
Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.177Z        info        s3-gw/app.go:386        starting server        {"address": "172.26.160.12:8084"}
Mar 23 03:45:59 glagoli frostfs-s3-gw[6359]: 2023-03-23T03:45:59.569Z        debug        pool/pool.go:1679        health has changed        {"address": "172.26.160.164:8080", "healthy": false}
Mar 23 03:46:54 glagoli frostfs-s3-gw[6359]: 2023-03-23T03:46:54.577Z        debug        pool/pool.go:1679        health has changed        {"address": "172.26.160.164:8080", "healthy": true}

Version:

FrostFS S3 Gateway
Version: v0.0.1-87-ga0937126
GoVersion: go1.18.4

Env

Virtual

Init S3 Credentials in all autotests failed with error: ``` RuntimeError: Failed to init s3 credentials because of error Could not find AWS credentials in output: Enter password for /jenkins/workspace/sbercloud_functional_tests_nightly/tmp.vMqltvMpGz/frostfs-testcases/TemporaryDir/11a6cc71-51ad-457d-8e97-54f90722f078.json > 2023-03-23T03:06:49.137Z DEBUG s3-authmate/main.go:687 prepare connection pool 2023-03-23T03:06:49.172Z INFO authmate/authmate.go:236 check container or create {"cid": "11111111111111111111111111111111", "friendly_name": "68036383-5538-4eba-a17f-1d985a3e163b", "placement_policy": "REP 2 IN X CBF 3 SELECT 2 FROM * AS X"} failed to issue secret: check container: create container in FrostFS: save container via connection pool: wait container presence on client: context deadline exceeded ``` But in logs I cannot see any errors in the same time: az ``` Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.676Z info s3-gw/app.go:353 application started {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"} Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.676Z info s3-gw/app.go:373 fetch domains, prepare to use API {"domains": []} Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.677Z info s3-gw/service.go:21 service is running {"service": "Pprof", "endpoint": "localhost:8085"} Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.677Z info s3-gw/service.go:21 service is running {"service": "Prometheus", "endpoint": "localhost:8086"} Mar 23 01:59:13 az frostfs-s3-gw[7246]: 2023-03-23T01:59:13.677Z info s3-gw/app.go:386 starting server {"address": "172.26.160.33:8084"} Mar 23 03:46:00 az frostfs-s3-gw[7246]: 2023-03-23T03:46:00.064Z debug pool/pool.go:1679 health has changed {"address": "172.26.160.164:8080", "healthy": false} Mar 23 03:46:55 az frostfs-s3-gw[7246]: 2023-03-23T03:46:55.071Z debug pool/pool.go:1679 health has changed {"address": "172.26.160.164:8080", "healthy": true} ``` buki ``` Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.924Z info s3-gw/app.go:353 application started {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"} Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.924Z info s3-gw/app.go:373 fetch domains, prepare to use API {"domains": []} Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.925Z info s3-gw/service.go:21 service is running {"service": "Prometheus", "endpoint": "localhost:8086"} Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.926Z info s3-gw/app.go:386 starting server {"address": "172.26.160.164:8084"} Mar 23 01:59:13 buky frostfs-s3-gw[6234]: 2023-03-23T01:59:13.926Z info s3-gw/service.go:21 service is running {"service": "Pprof", "endpoint": "localhost:8085"} Mar 23 03:46:00 buky frostfs-s3-gw[6234]: 2023-03-23T03:46:00.304Z debug pool/pool.go:1679 health has changed {"address": "localhost:8080", "healthy": false} Mar 23 03:46:55 buky frostfs-s3-gw[6234]: 2023-03-23T03:46:55.311Z debug pool/pool.go:1679 health has changed {"address": "localhost:8080", "healthy": true} ``` Vedi ``` Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.660Z info s3-gw/app.go:353 application started {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"} Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.660Z info s3-gw/app.go:373 fetch domains, prepare to use API {"domains": []} Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.661Z info s3-gw/service.go:21 service is running {"service": "Prometheus", "endpoint": "localhost:8086"} Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.661Z info s3-gw/app.go:386 starting server {"address": "172.26.160.121:8084"} Mar 23 01:59:12 vedi frostfs-s3-gw[6295]: 2023-03-23T01:59:12.661Z info s3-gw/service.go:21 service is running {"service": "Pprof", "endpoint": "localhost:8085"} Mar 23 03:45:59 vedi frostfs-s3-gw[6295]: 2023-03-23T03:45:59.052Z debug pool/pool.go:1679 health has changed {"address": "172.26.160.164:8080", "healthy": false} Mar 23 03:46:54 vedi frostfs-s3-gw[6295]: 2023-03-23T03:46:54.060Z debug pool/pool.go:1679 health has changed {"address": "172.26.160.164:8080", "healthy": true} ``` glagoli ``` Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.176Z info s3-gw/app.go:353 application started {"name": "frostfs-s3-gw", "version": "v0.0.1-87-ga0937126"} Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.176Z info s3-gw/app.go:373 fetch domains, prepare to use API {"domains": []} Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.177Z info s3-gw/service.go:21 service is running {"service": "Pprof", "endpoint": "localhost:8085"} Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.177Z info s3-gw/service.go:21 service is running {"service": "Prometheus", "endpoint": "localhost:8086"} Mar 23 01:59:13 glagoli frostfs-s3-gw[6359]: 2023-03-23T01:59:13.177Z info s3-gw/app.go:386 starting server {"address": "172.26.160.12:8084"} Mar 23 03:45:59 glagoli frostfs-s3-gw[6359]: 2023-03-23T03:45:59.569Z debug pool/pool.go:1679 health has changed {"address": "172.26.160.164:8080", "healthy": false} Mar 23 03:46:54 glagoli frostfs-s3-gw[6359]: 2023-03-23T03:46:54.577Z debug pool/pool.go:1679 health has changed {"address": "172.26.160.164:8080", "healthy": true} ``` ## Version: ``` FrostFS S3 Gateway Version: v0.0.1-87-ga0937126 GoVersion: go1.18.4 ``` ## Env Virtual
realloc added the
P0
label 2023-03-23 11:47:37 +00:00
alexvanin self-assigned this 2023-03-23 11:49:43 +00:00
Owner

Should be fixed after TrueCloudLab/frostfs-node#159

We are going to avoid compatibility issues in future protocol changes, see TrueCloudLab/frostfs-sdk-go#40

Should be fixed after https://git.frostfs.info/TrueCloudLab/frostfs-node/pulls/159 We are going to avoid compatibility issues in future protocol changes, see https://git.frostfs.info/TrueCloudLab/frostfs-sdk-go/issues/40
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#67
No description provided.