YUM Repos Hosed?

From the docs at: https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html, I've set up yum and tried to do an install:

[[root@esm1 elasticsearch]# yum install elasticsearch
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
 * base: mirror.supremebytes.com
 * epel: fedora-epel.mirror.lstn.net
 * extras: mirror.hostduplex.com
 * updates: mirror.millry.co
No package elasticsearch available.
Error: Nothing to do
[root@esm1 elasticsearch]# cat /etc/yum.repos.d/elasticsearch.repo 
[elasticsearch-1.7]
name=Elasticsearch repository for 1.7.x packages
baseurl=http://packages.elastic.co/elasticsearch/1.7/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
[root@esm1 elasticsearch]# ```

Anyone know what's up? Even if I visit the URL directly in a web browser, I get a "NoSuchKey" error. I wouldn't expect that from yum.

BTW: this is CentOS Linux release 7.0.1406 (Core)

Did you do a yum makecache after adding the repo?

Yup. No effect.

Can you try yum clean all then see if a yum search elasticsearch works?

Did that and no joy as well.

OK ... this is really getting screwy. I successfully fetched the RPM with wget and added it to one of my own repos. yum install still fails, but repoquery finds it. Is there something hosed in that RPM itself?

[root@esm1 7]# yum install  --disablerepo=\* --enablerepo=atlas-legacy-3rdparty elasticsearch
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
No package elasticsearch available.
Error: Nothing to do
[root@esm1 7]# repoquery --disablerepo=\* --enablerepo=atlas-legacy-3rdparty --info  --search elasticsearch  

Name        : elasticsearch
Version     : 1.7.1
Release     : 1
Architecture: noarch
Size        : 31323770
Packager    : Elasticsearch
Group       : Application/Internet
URL         : None
Repository  : atlas-legacy-3rdparty
Summary     : elasticsearch
Source      : elasticsearch-1.7.1-1.src.rpm
Description :
Elasticsearch - Open Source, Distributed, RESTful Search Engine
[root@esm1 7]# 

Are you excluding or pinning the elasticsearch package in your yum config? Is there any errors printed in the yum log file (usually /var/log/yum.log)? I just tested the repo on a fresh, up-to-date CentOS install, no problems, so this looks to be a local problem.

Thanks, Joshua.

Nothing being pinned and no errors in yum.log. However, I'm starting to get suspicious that this is a problem with my CentOS7 VM. This is newly provisioned under Vagrant and I see in other repos some anomalies. I'm going to try the same test with a CentOS6 image and see what happens. Sit tight. :smile:

OK. It's something funky with the CentOS7 image I'm using - CentOS6 worked fine. Thanks for your attention to this.