-
Bug
-
Resolution: Done
-
Major
-
2.4 CR1
-
- Create new tenant
- Login to the new tenant
- Go to the audience -> listing
- Default developer is not present
When creating new tenant It is created without the default account (john).
It looks like the sidekiq is not able to find the the `tenant provider account` so it throws an exception.
Exception -- Couldn't find Account with 'id'=269 [WHERE `accounts`.`provider` = ?] 2018-11-22T08:15:10.111Z 1 TID-ovnfselpo SignupWorker::ImportSimpleLayoutWorker JID-07e9a3a28f18c1b7f11b01e1 BID-JRKIZ1FMLQkATA INFO: fail: 0.005 sec 2018-11-22T08:15:10.112Z 1 TID-ovnfselpo WARN: {"context":"Job raised exception","job":{"class":"SignupWorker::ImportSimpleLayoutWorker","args":[269],"retry":true,"queue":"critical","jid":"07e9a3a28f18c1b7f11b01e1","created_at":1542874510.1064005,"bid":"JRKIZ1FMLQkATA","enqueued_at":1542874510.106437,"error_message":"Couldn't find Account with 'id'=269 [WHERE `accounts`.`provider` = ?]","error_class":"ActiveRecord::RecordNotFound","failed_at":1542874510.1117568,"retry_count":0},"jobstr":"{\"class\":\"SignupWorker::ImportSimpleLayoutWorker\",\"args\":[269],\"retry\":true,\"queue\":\"critical\",\"jid\":\"07e9a3a28f18c1b7f11b01e1\",\"created_at\":1542874510.1064005,\"bid\":\"JRKIZ1FMLQkATA\",\"enqueued_at\":1542874510.106437}"} 2018-11-22T08:15:10.112Z 1 TID-ovnfselpo WARN: ActiveRecord::RecordNotFound: Couldn't find Account with 'id'=269 [WHERE `accounts`.`provider` = ?]
Log: http://pastebin.test.redhat.com/672213
Steps to reproduce:
- stop sidekiq
- create a tenant in master
- impersonate this created tenant
- start sidekiq
Result: The sample data are not created, i.e. user john, default plans
Expected result:
The sample data are created after sidekiq has finished all jobs.