If you receiving below error while connecting with cloudlinux server, follow below steps.
yum clean all
Command rhn_check exited with code zero. That usually means that registration is not needed. Use --force to override
Error: Failed to download metadata for repo 'cl-ea4': Cannot download repomd.xml : Cannot download repodata/repomd.xml: All mirrors were tried
Solution:
Check if your server is communicating with cloudlinux repo.
curl -I https://repo.cloudlinux.com/
curl: (7) Failed to connect to repo.cloudlinux.com port 443: Connection refused.
It means repo.cloudlinux.com ip is blocked in your server firewall.
You need to ping the server host to get IP and unblock it in your firewall and whitelist IP to avoid issues in future.
ping repo.cloudlinux.com
37.27.120.227
In my case above cloudlinux IP were blocked in the server which is now added in whitelist and issue is resolved.