You can remove Apigee mTLS at any time. This section describes how to remove it and to verify that it has been removed.
To roll back the Apigee mTLS installation:
- Log in to a node in your cluster. The order in which you do this does not matter.
- Stop all components on the node, as the following example shows:
/opt/apigee/apigee-service/bin/apigee-all stop
- Uninstall the
apigee-mtls
service by executing the following command:/opt/apigee/apigee-service/bin/apigee-service apigee-mtls uninstall
- Start all components on the node in the
start order, as the
following example shows:
/opt/apigee/apigee-service/bin/apigee-service component_name start
- Repeat this process for each node in the cluster.
To verify that the uninstallation was successful, you can do the following (in any order):
- On each node that is running ZooKeeper, check that the Consul services are not in the
/usr/lib/systemd/system
directory:- Change to the
/usr/lib/systemd/system
directory:cd /usr/lib/systemd/system
- Ensure that the following files are not in that directory:
consul_egress.service
consul_server.service
- If either of these files is in the
/usr/lib/systemd/system
directory, delete it.
- Change to the
- On each node that is running ZooKeeper, check to see if the
apigee-mtls
andapigee-mtls-consul
directories exist:- Change to the Apigee root directory:
cd ${APIGEE_ROOT:-/opt/apigee}
- Check the contents of the directory:
ls
- Ensure that the following directories do not exist in this directory:
apigee-mtls-version
apigee-mtls-consul-version
- If either of these directories exist, delete them.
- Change to the Apigee root directory:
- In the same directory, ensure that symlinks to the following have been removed:
apigee-mtls
apigee-mtls-consul
To do this, use the find
-L
option, as the following example shows:find -L ./
If symbolic links to these directories remain, you can remove them with either the
rm
orunlink
commands. - On each node that is running ZooKeeper, check that Consul has been removed by using the
which
command:which consul
This command should respond with a message similar to the following:
"/usr/bin/which: no consul in (...:/opt/apigee/apigee-adminapi-version/bin:...)"
- Execute the following command as root or with sudo:
iptables -t nat -L OUTPUT
This command should display column headings but no data in the columns, as the following example shows:
target prot opt source destination
- Use
yum
to determine if the Apigee mTLS packages are installed:yum list installed
This command should not display any packages matching the following:
apigee-mtls-version
apigee-mtls-consul-version