Search code examples
mariadbetcdibm-cloud-private

ICp 2.1.0.1: Installation failed with error TASK [master: Waiting for MariaDB service to start]


I am installing ICp 2.1.0.1 and I received an error at the TASK

[master: Waiting for MariaDB service to start] msg: The MariaDB component failed to start.

After this msg the installation completed with failed status. We are installing ICp with 3 Masters, 3 Proxies and 2 Workers. We have 1 IP for VIP master and 1 for VIP proxy. I tried to install multiple times and all installations got the same error.


Solution

  • The error was solved by following the steps below.

    Check whether kubelet is running:

    • Log in to your master node.
    • Run the following command to check kubelet status:

      systemctl status kubelet

    • If kubelet is not running, run the following command to get the logs:

      journalctl -u kubelet &> kubelet.log

    We found the error in the kubelet.log log:

    Error: failed to run Kubelet: Running with swap on is not supported, please disable swap! or set --fail-swap-on flag to false.

    We found this troubleshoot in this link, and the solution at the ICP issue 4651.

    https://www.ibm.com/support/knowledgecenter/en/SSBS6K_2.1.0/troubleshoot/etcd_fails.html

    https://github.ibm.com/IBMPrivateCloud/roadmap/issues/4651