Updating the database configuration of an existing Engineering Lifecycle Management instance by using Red Hat OpenShift CLI

When your database server is moved to a different host or when database credentials are updated, you must update the database configuration of the Engineering Lifecycle Management instance. You can do it using the Red Hat® OpenShift® CLI method.

Before you begin

Procedure

  1. Update the database details in the Engineering Lifecycle Management instance. If you are using multiple database servers, update the details of the specific databases that were changed. For more information, see Configuring separate database instances for the Engineering Lifecycle Management instance.
  2. Fetch the ELM YAML file and save it to your local system.
    oc get elm -n <namespace_name>
    oc get elm/<elm_instance_name> -n <namespace_name> -o yaml > ELM-CR.yaml
  3. Update the details of the new database server in the YAML file. See Example of ELM instance YAML file.
    database: 
      dbHostname: <value>
      dbPort: <value>
      dbType: <value>
      dbUserName: <value>
  4. Apply the changes to the deployment in the cluster.
    oc apply --from-file=<your-directory-path>/ELM-CR.yaml
  5. Update the existing elm-auth-secret secret for the Engineering Lifecycle Management instance. Follow the steps:
    1. Fetch the elm-auth-secret
      oc get secret elm-auth-secret -n  <namespace> -o yaml > elm-auth-secret.yaml
    2. Modify the secret in the yaml file and update it in the cluster
      oc apply –from-file=<your-directory-path>/elm-auth-secret.yaml
  6. Stop and start the application pods that are having database configuration changes by using the ELMOperation instance. For more information, see Stopping and starting Engineering Lifecycle Management application pods by using ELM Operation instance. Alternatively, you can delete the application pods.
    oc delete pod <pod-name> -n <namespace>

    oc delete pods  -l app.kubernetes.io/instance=ELM  -n <namespace>
  7. Verify the status of the Engineering Lifecycle Management application. View the applications status section by using command
    oc describe elm/<elm_instance_name> -n <namespace_name>
  8. Verify access to the Engineering Lifecycle Management application by using the updated database configuration. Get the route of applications by using the following command
    oc get routes -n <namespace>
echo "$(oc get route <route-name> -n my-namespace -o jsonpath='{.spec.host}{.spec.path}')"
    View the particular URL in the browser and log in to the JAS application by using your user ID and password. The Engineering Lifecycle Management application opens.