Cannot retrieve repository matadata (repomd.xml)
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
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
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
