Closed LahiruLS closed 3 years ago
The following approach is discussed to solve this issue:
The advantages of this approach are :
It would be better if we can do tenant migration without user-store migration. The reason is that, it is presently difficult to do traffic routing based on tenant, as tenant qualified URL support is being added on recent versions only.
There will be two steps.
During the migration to the WSO2 IS 5.10.0 we have the component for user id migration. In the user-id migration, we can migrate the secondary user stores as well. But it was noticed that the migration client does not migrate the secondary user stores even though the necessary configurations are set.
After debugging the migration-client, we identified that when migrating the secondary user stores, the client will get the user store managers from the UserRealm[1]. But at the time of migration execution, the secondary user stores are not deployed. Therefore the user store manager relevant to the secondary user store is not retrieved. It throws the following exception and skips the migration.
We need to fix this and all other places where we use similar logic in the migration client apart from the UserIDMigrator.
IMO it is better to migrate only the PRIMARY user store during the migration with an option and migrate the other secondary user stores as a post-migration task via some external tool etc. The reasons are,
[1] https://github.com/wso2-extensions/identity-migration-resources/blob/master/components/org.wso2.is.migration/migration-service/src/main/java/org/wso2/carbon/is/migration/service/v5100/migrator/UserIDMigrator.java#L178