Syncing users to environments
When making any kind of user or group-related changes, an automatic user sync is performed to FreeIPA.
- Creating machine users
- Deleting users and machine users
- Assigning Cloudera roles or environment-level resource roles to users
- Creating a group, assigning group membership, and deleting a group
- Setting workload password
- Managing user SSH keys
The automated user sync applies these changes to each available environment. In case of an unavailable environment, for example when an environment is being created, deleted, stopped, or started, the users are synced when the environment becomes available again.
- All control plane actors (users and machine users) with the correct environment accesses and rights are synced to FreeIPA.
- All groups are synced to the FreeIPA.
- All users with PowerUser role are synchronized to all environments.
Checking user sync status for an environment
- EnvironmentAdmin, EnvironmentUser, and DataSteward can check the user sync status for a single environment.
- PowerUser can check user sync status for all environments.
Steps
- Navigate to a specific environment in Cloudera Management Console.
- Check the status of the user sync using one of the following actions:
-
- Click on .
- Navigate to .
- Click on , and then click the Synchronize Users button in the top right corner.
-
- The Sync State of the environment is shown.
The status will be one of the following values:
- Unknown: The user sync state is not known. This usually indicates that user sync has not been run for a new environment.
- Up to date: All changes have been synced into this environment and the environment is up to date.
- Synchronizing: There are outstanding changes that need to be synced into this environment.
- Synchronization halted: User sync has been halted
for this environment because the environment is not
AVAILABLE. User sync will resume once the environment becomesAVAILABLE. - Environment is quarantined: User sync has consistently failed multiple times in a row. User sync will be retried once daily to see if the failure persists. Environments can be unquarantined by manually requesting user sync. If the failure consistently recurs, then the environment will be quarantined again.
cdp environments get-automated-sync-environment-status --environment-name [***ENVIRONMENT NAME***]--environment-name [***ENVIRONMENT NAME***].The status will be one of the following values:
UNKNOWN: The user sync state is not known. This usually indicates that user sync has not been run for a new environment.SYNCED: All changes have been synced into this environment and the environment is up to date.SYNC_PENDING: There are outstanding changes that need to be synced into this environment.SYNC_HALTED: User sync has been halted for this environment because the environment is notAVAILABLE. User sync will resume once the environment becomesAVAILABLE.QUARANTINED: User sync has consistently failed multiple times in a row. User sync will be retried once daily to see if the failure persists. Environments can be unquarantined by manually requesting user sync. If the failure consistently recurs, then the environment will be quarantined again.
Requesting user sync to all environments
Required role: PowerUser
Steps
- From the Cloudera web interface, you can perform user sync from the .
- Click on .
- Click Synchronize Users.
- Status is shown Running, then Completed.
cdp environments sync-all-userscdp environments sync-userYou can use it if
you are making changes to your own user, but you cannot use it to sync other users for
the environment.What to do next
Depending on how many users you have in Cloudera, it may take a few minutes for the user sync to complete. The sync operation times out after 30 minutes.
Requesting user sync to a selected environments
Required role: EnvironmentAdmin and DataSteward can perform user sync for a single environment. PowerUser can perform user sync for all environments.
Steps
- Navigate to a specific environment in Cloudera Management Console.
- Check the status of the user sync using one of the following actions:
-
- Click on .
- Navigate to .
- Click on , and then click the Synchronize Users button in the top right corner.
- Status is shown Running, then Completed.
-
cdp environments sync-all-users --environment-names [***ENVIRONMENT NAME***]--environment-names [***ENVIRONMENT NAME***].What to do next
Depending on how many users you have in Cloudera, it may take a few minutes for the user sync to complete.
User synchronization error
- New group name conflicts with an existing workload username.
If a group is synced first (this also occurs if both user and group exist in CDP before the first sync), then user creation will fail because the private group cannot be created.
You will see an error similar to
ipa: ERROR: Unable to create private group. A group '<username>' already exists. - New workload username conflicts with an existing group name.
If a user is synced first, then FreeIPA also creates a private group with the same name as the user. Group creation will fail because a group with that name already exists.
