Cannot retrieve repository matadata (repomd.xml)

Latest response

when i want to yum install rhevm there is error

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
[Errno -5] No address associated with hostname
https://cdn.redhat.com/content/eus/rhel/server/6/6server/x86_64/os/repodata/repomd.xml: [Errno 14] Peer cert cannot be erified or peer cert invalid
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-6-server-eus-rpms. Please verify its path and try again

can anyone please help me

Responses

It appears you have an issue with the DNS settings of your RHEV Manager. Either they are wrong, or you are unable to reach a nameserver.

  • review your resolv.conf
  • make sure that nsswitch.conf is configured to use DNS
  • try doing a dig of cdn.redhat.com using the nameservers you have defined in /etc/resolv.conf
  • ping google to see if your default route is correct (this may not work on your network though)
cat /etc/resolv.conf
grep ^hosts /etc/nsswitch.conf
for HOST in `grep ^nameserver /etc/resolv.conf | awk '{ print $2 }'`; do dig @${HOST} cdn.redhat.com; done
ping -c3 8.8.8.8

thats solved but now there is other problem
when i command yum install rhevm
there are error

no package rhevm available
Error: Nothing to do

what should i do

If DNS was previously having issues, you likely were not able to subscribe to the correct channels for RHEV.

Make sure that your host is registered to RHN (or your Satellite). Then..
Look in your installation guide for the section that describe which channels you need for RHEV, similar to the following:

rhn-channel --add --channel=rhel-x86_64-server-6-rhevm-3.3

i restart the rhel and then ping to google.com success but when i ping redhat.com there is error unknow host redhat.com
and also when i use yum install rhevm and the error

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
[Errno -5] No address associated with hostname
https://cdn.redhat.com/content/eus/rhel/server/6/6server/x86_64/os/repodata/repomd.xml: [Errno 14] Peer cert cannot be erified or peer cert invalid
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-6-server-eus-rpms. Please verify its path and try again

show again, why is that happening and how to solved it

i turn off my iptables and now i can ping redhat.com but there is still error

Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
[Errno -5] No address associated with hostname
https://cdn.redhat.com/content/eus/rhel/server/6/6server/x86_64/os/repodata/repomd.xml: [Errno 14] Peer cert cannot be erified or peer cert invalid
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-6-server-eus-rpms. Please verify its path and try again

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.