Clean the OVN-Kubernetes data

Reset OVN-Kubernetes (OVN-K) network configurations by running the microshift-cleanup-data script.

When you run the script with the --ovn argument, you perform the following clean up actions:

  • Stop all MicroShift services

  • Delete all MicroShift pods

  • Delete the OVN-K networking configuration

Prerequisites
  • You are logged into MicroShift.

  • You have filed a support case.

Procedure
  1. Clean up the OVN-K data by running the microshift-cleanup-data script with the --ovn argument, by entering the following command:

    $ sudo microshift-cleanup-data --ovn
    Example output
    Stopping MicroShift services
    Removing MicroShift pods
    Killing conmon, pause and OVN processes
    Removing OVN configuration
    MicroShift service was stopped
    Cleanup succeeded
    Important

    The microshift-cleanup-data script stops the MicroShift service.

  2. Restart the MicroShift service by running the following command:

    $ sudo systemctl start microshift