Fixed
Details
Assignee
Alf-Rune SiqvelandAlf-Rune SiqvelandReporter
Alf-Rune SiqvelandAlf-Rune SiqvelandLabels
Story Points
2Priority
LowDays in progress
0Fix versions
Backlog
yes
Details
Details
Assignee
Alf-Rune Siqveland
Alf-Rune SiqvelandReporter
Alf-Rune Siqveland
Alf-Rune SiqvelandLabels
Story Points
2
Priority
Days in progress
0
Fix versions
Backlog
yes
Zendesk Support
Zendesk Support
Zendesk Support
Checklist
Checklist
Checklist
Created July 7, 2021 at 10:56 AM
Updated October 11, 2021 at 7:29 AM
Resolved October 11, 2021 at 7:29 AM
There is a race condition when running the demo script where deployments service may not be ready when the script creates the initial user. As a consequence the "create_organization" workflow fails on all retries because the service is not reachable and the end result is a data inconsistency (you won't be able to create the user because it already (partially) exists, but only in tenantadm database).
Relevant logs from workflows-worker:
time="2021-07-07T10:20:11Z" level=info msg="Message bus: New job (60e57fdb70b095adeb68ecfe) with workflow create_organization" file=entry.go func="logrus.(*Entry).Infof" line=351 time="2021-07-07T10:20:11Z" level=info msg="Worker: processing job 60e57fdb70b095adeb68ecfe workflow create_organization" file=entry.go func="logrus.(*Entry).Infof" line=351 time="2021-07-07T10:20:11Z" level=info msg="60e57fdb70b095adeb68ecfe: started, create_organization" file=entry.go func="logrus.(*Entry).Infof" line=351 time="2021-07-07T10:20:11Z" level=info msg="60e57fdb70b095adeb68ecfe: started, create_organization task :create_tenant" file=entry.go func="logrus.(*Entry).Infof" line=351 time="2021-07-07T10:20:11Z" level=info msg="processTask: calling http task: POST http://mender-device-auth:8080/api/internal/v1/devauth/tenants" file=entry.go func="logrus.(*Entry).Infof" line=351 time="2021-07-07T10:20:12Z" level=info msg="60e57fdb70b095adeb68ecfe: started, create_organization task :create_tenant_deployments" file=entry.go func="logrus.(*Entry).Infof" line=351 time="2021-07-07T10:20:12Z" level=info msg="processTask: calling http task: POST http://mender-deployments:8080/api/internal/v1/deployments/tenants" file=entry.go func="logrus.(*Entry).Infof" line=351 time="2021-07-07T10:20:12Z" level=error msg="error: Post \"http://mender-deployments:8080/api/internal/v1/deployments/tenants\": dial tcp 172.19.0.16:8080: connect: connection refused" file=entry.go func="logrus.(*Entry).Errorf" line=367