Engine settings revert after manual changes

Anywhere Cloud manages the Kubernetes resources of Cloudera Migration Assistant and reapplies them, so changes that you make to them directly are undone. Change settings in the engine configuration or on the Feature Flags page instead.

Symptoms

You change a ConfigMap, a Secret, a deployment, or another Kubernetes resource of a Cloudera Migration Assistant engine instance, for example, by using kubectl. After some time, or after a pod restarts, the old value is back.

Cause

Anywhere Cloud manages the engines and their Kubernetes resources. It reapplies the resources of each engine instance from the engine configuration, and reverts changes that you make to them in another way.

Solution

  1. Find where you can change the setting.
    See Settings and environment variables you can use.
  2. Make the change in one of these places:
    • The engine configuration of the instance, on the Apps page of the Anywhere Cloud Console. See Engine configuration: Cloudera Migration Assistant and Engine configuration: Cloudera Migration Assistant Agent.
    • The Settings > Feature Flags page of the Cloudera Migration Assistant web interface, for the features that it lists. See Turning features on and off.

    Anywhere Cloud stores passwords and keys in Kubernetes Secrets that it creates from the engine configuration. See How secrets are stored.

    The engine configuration of the Cloudera Migration Assistant Agent engine has these fields:

    Table 1. Cloudera Migration Assistant Agent engine fields
    Field Required Default Description
    Enable AWC Secret Manager (awcSecretManagerEnabled) No Off Stores the connection credentials of the agent in Anywhere Cloud Secret Service instead of in the internal keystore of the agent. Turn it on only when the Secret Service is set up with an external vault.
    Internal Keystore Password (internalKeystorePassword) No Generated The password of the internal TLS keystore of the agent. It is independent of the internal keystore password of the Cloudera Migration Assistant engine, which Cloudera Migration Assistant generates automatically.

    The Feature Flags tab has these features:

    Table 2. Feature flags
    Feature Key Default What is displayed when it is on
    CWO auto-discovery cma.cwo-auto-discovery-enabled Off Cloudera Migration Assistant discovers Cloudera Workflow Orchestrator services automatically. This feature is in Technical Preview. If automatic discovery does not work, register Cloudera Workflow Orchestrator manually. See Features in Technical Preview.
  3. If the setting is not in either place, you cannot change it on Anywhere Cloud.