Problem
There are some firebase accounts that are not valid in terms of a new configuration requirements. Therefore they are not possible to be easily migrated from one slave cluster to another. It needs to be done manually.
7c08a5b7-c956-427b-ab72-7f923feeb9da цього з ca01 на bts01
8f864427-65bb-40c8-8427-17555c564f8e цього з ca02 на bts01
607f857e-b88c-4a03-8d1b-ef9063ef9b32 цього з de01 на bts01
Howto
- Attaching to the manager API and running django shell from there
- Execute
from apps.firebase.models import FirebaseCredentials, FirebaseGroup
source_group = FirebaseGroup.objects.get(slug='admin-can-1')
target_group = FirebaseGroup.objects.get(slug='admin-bts-01')
creds = FirebaseCredentials.objects.get(uuid='7c08a5b7-c956-427b-ab72-7f923feeb9da')
if creds.group_id != source_group.id:
raise ValueError('Credentials are not in the source group')
creds.group_id = target_group.id
creds.save()