[INFO][2023-11-15 06:19:23][XXXXXXXXXXXX.vmware.cba] Synced upgrade data with node: xxxxxxxxxx.vmware.cba
[INFO][2023-11-15 06:19:24][xxxxxxxxxx.vmware.cba] Deployment of infrastructure and application services started.
[WARNING][2023-11-15 07:22:27][xxxxxxxxxx.vmware.cba][Exit Code: 123] Error while deploying infrastructure and application services.
[INFO][2023-11-15 07:22:27][xxxxxxxxxx.vmware.cba] Shutting down application services...
DELETE FROM project_principals WHERE id IN ( -- entries that are 1:1 copies (both have user_id/group_id or both do not have ids) SELECT fst.id FROM project_principals fst JOIN project_principals snd ON fst.id > snd.id AND fst.principal_id = snd.principal_id AND fst.project_id = snd.project_id AND fst.role = snd.role WHERE fst.user_id = snd.user_id OR fst.group_id = snd.group_id OR (fst.user_id IS NULL AND fst.group_id IS NULL AND snd.user_id IS NULL AND snd.group_id IS NULL) UNION -- entries that differ in having user_id/group_id - the one that does not have id is chosen to be deleted SELECT fst.id FROM project_principals fst JOIN project_principals snd ON fst.id != snd.id AND fst.principal_id = snd.principal_id AND fst.project_id = snd.project_id AND fst.role = snd.role WHERE fst.user_id IS NULL AND fst.group_id IS NULL AND (snd.user_id IS NOT NULL OR snd.group_id IS NOT NULL) );