6 Uninstalling SEPP

This chapter provides information about uninstalling Oracle Communications Cloud Native Core, Security Edge Protection Proxy (SEPP).

Note:

kubectl commands might vary based on the platform deployment. Replace kubectl with Kubernetes environment-specific command line tool to configure Kubernetes resources through kube-api server. The instructions provided in this document are as per the Oracle Communications Cloud Native Environment (CNE) version of kube-api server.

Caution:

User, computer and applications, and character encoding settings may cause an issue when copy-pasting commands or any content from PDF. PDF reader version also affects the copy-pasting functionality. It is recommended to verify the pasted content especially when the hyphens or any special characters are part of the copied content.

6.1 Uninstalling SEPP Using Helm

To uninstall SEPP, run the following command:

  1. Run the following command to uninstall SEPP deployment:
    helm uninstall <helm-release> --namespace <ocsepp kubernetes namespace> 

    Where,

    helm-release is a name provided by the user to identify the helm deployment.

    release-namespace is a name provided by the user to identify the namespace of SEPP deployment.

    Example:
    helm uninstall ocsepp --namespace seppsvc
  2. Helm keeps a record of its releases, so you can still reactivate the release after uninstalling it.

    To completely remove a release from the cluster, add the --purge parameter to helm delete command:

    helm delete --purge release_name

    For example:

    helm delete --purge seppsvc

6.2 Verifying Uninstallation

This section describes how to verify SEPP uninstallation.
  1. Run the following command to verify the SEPP uninstallation:
    $ kubectl get all -n <release-namespace>
  2. Run the following command to delete all the objects:
    • To delete all the configmaps, run the following command:
      kubectl delete all --all -n <release-namespace>
    • To delete all the configmaps, run the following command::
      
      kubectl delete cm --all -n <release-namespace>

    Caution:

    The command deletes all the Kubernetes objects of the specified namespace. In case you have created the RBAC resources and service accounts before the helm installation in the same namespace and these resources are required, then do not delete them.
  3. Run the following command to delete specific resources:
    kubectl delete <resource-type> <resource-name> -n <release-namespace>
  4. Run the following command to delete the Kubernetes namespace:
    kubectl delete namespace <release-namespace>
  5. Run the following command to verify the uninstallation:
    kubectl get namespace

    No SEPP namespace must be displayed in the command output. In case of any failure, contact My Oracle Support .

In case of successful uninstallation, no SEPP resource is displayed in the command output.

6.3 Removing Database Users

This section describes how to remove MySQL users.

Run the following command to remove MySQL users while uninstalling SEPP:

DROP USER IF EXISTS <OCSEPP User Name>;
Example:
DROP USER IF EXISTS seppUsr;

Note:

Removal of users must be done on all the SQL nodes for all SEPP sites.

6.4 Cleaning up Database

This section describes the steps to completely remove MySQL database and username in the following scenarios.

Note:

  • SEPP is not going to be installed on that cluster.
  • User is configuring the MySQL database name or MySQL user name.
  1. Log in to the machine which has permission to access the SQL nodes of NDB cluster.
  2. Connect to the SQL node of NDB cluster successively.
  3. Log in to the MySQL prompt using root permission or user, which has permission to drop the tables. For example:
    mysql -h 127.0.0.1 -uroot -p

    Note:

    This command may vary from system to system, path for MySQL binary, root user and root password. After running this command, the user must enter the password specific to the user mentioned in the command.
  4. Run the following commands to remove SEPP database and backup database:
    1. Run the following command to remove SEPP database:

      $ DROP DATABASE if exists <SEPP database>;

      Example:

      $ DROP DATABASE if exists seppDB;
    2. Run the following command to remove SEPP backup database:

      $ DROP DATABASE if exists <SEPP backup database>;

      Example:

      $ DROP DATABASE if exists seppbackupdb;

    Caution:

    Removal of MySQL Users must be done on all the SQL nodes from the SEPP site.
  5. Exit from MySQL prompt and SQL node.