When using Podman, aardvark-dns error message occurs

If you are using Podman, an error message that refers to the aardvark-dns process can occur in the following situations: 1) during the installation of Z Resource Discovery Data Service, or 2) when you start the software containers after the deployment of Z Resource Discovery Data Service is complete.

Symptom

A message is shown that is similar to the following message, where uid is the numeric ID of the user under which the deployment process is run:

ERROR netavark::dns::aardvark] aardvark-dns runs in a different netns, dns will not work for this container. 
To resolve please stop all containers, kill the aardvark-dns process, 
remove the /run/user/<uid>/containers/networks/aardvark-dns directory and then start the containers again

This message can cause one or more installation steps to fail.

Solution

If this problem occurs during deployment, cancel the installation process, and complete the following steps:
  1. Stop the aardvark-dns process by running the following commands:
    1. Run the following command to get the process number:
      ps -aux | grep aardvark-dns
    2. Run the following command to stop the process:
      kill process-number
  2. Remove the aardvark-dns working directory by running the following command:
    rm -rf /run/user/uid/containers/networks/aardvark-dns
  3. Restart the deployment process by running the following command:
    ./podmanDeployZoa.sh --install