I've inherited a CentOS 6 environment where custom repos are kept locally.
Now when I try to update a host, I get the following error:
Quote:
[root@myhost yum.repos.d]# yum install ansible -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* centosplus: centos4.zswap.net
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.6.4-1.el6 will be installed
--> Processing Dependency: sshpass for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-six for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-simplejson for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-setuptools for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-keyczar for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-jinja2-26 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto2.6 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: PyYAML for package: ansible-2.6.4-1.el6.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed
---> Package python-crypto2.6.x86_64 0:2.6.1-2.el6 will be installed
---> Package python-httplib2.noarch 0:0.7.7-1.el6 will be installed
---> Package python-jinja2-26.noarch 0:2.6-3.el6 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-26-2.6-3.el6.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-26-2.6-3.el6.noarch
---> Package python-keyczar.noarch 0:0.71c-1.el6 will be installed
--> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-1.el6.noarch
---> Package python-paramiko.noarch 0:1.7.5-2.1.el6 will be installed
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
---> Package python-simplejson.x86_64 0:2.0.9-3.1.el6 will be installed
---> Package python-six.noarch 0:1.9.0-2.el6 will be installed
---> Package sshpass.x86_64 0:1.06-1.el6 will be installed
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
---> Package python-markupsafe.x86_64 0:0.9.2-4.el6 will be installed
---> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Siz
===================================================================================================
Installing:
ansible noarch 2.6.4-1.el6 epel 10
Installing for dependencies:
PyYAML x86_64 3.10-3.1.el6 centos-base 157
libyaml x86_64 0.1.3-4.el6_6 centos-base 52
python-babel noarch 0.9.4-5.1.el6 centos-base 1.4
python-crypto x86_64 2.0.1-22.el6 centos-base 159
python-crypto2.6 x86_64 2.6.1-2.el6 epel 513
python-httplib2 noarch 0.7.7-1.el6 epel 70
python-jinja2-26 noarch 2.6-3.el6 epel 527
python-keyczar noarch 0.71c-1.el6 epel 219
python-markupsafe x86_64 0.9.2-4.el6 centos-base 22
python-paramiko noarch 1.7.5-2.1.el6 centos-base 728
python-pyasn1 noarch 0.0.12a-1.el6 centos-base 70
python-setuptools noarch 0.6.10-3.el6 centos-base 336
python-simplejson x86_64 2.0.9-3.1.el6 centos-base 126
python-six noarch 1.9.0-2.el6 centos-base 28
sshpass x86_64 1.06-1.el6 epel 20
Transaction Summary
===================================================================================================
Install 16 Package(s)
Total download size: 15 M
Installed size: 74 M
Downloading Packages:
(1/16): PyYAML-3.10-3.1.el6.x86_64.rpm | 157 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.noarch.rpm: [Errno 14] PYRL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.
(3/16): libyaml-0.1.3-4.el6_6.x86_64.rpm | 52 kB 00:00
(4/16): python-babel-0.9.4-5.1.el6.noarch.rpm | 1.4 MB 00:00
(5/16): python-crypto-2.0.1-22.el6.x86_64.rpm | 159 kB 00:00
(6/16): python-crypto2.6-2.6.1-2.el6.x86_64.rpm | 513 kB 00:00
(7/16): python-httplib2-0.7.7-1.el6.noarch.rpm | 70 kB 00:00
(8/16): python-jinja2-26-2.6-3.el6.noarch.rpm | 527 kB 00:00
(9/16): python-keyczar-0.71c-1.el6.noarch.rpm | 219 kB 00:00
(10/16): python-markupsafe-0.9.2-4.el6.x86_64.rpm | 22 kB 00:00
(11/16): python-paramiko-1.7.5-2.1.el6.noarch.rpm | 728 kB 00:00
(12/16): python-pyasn1-0.0.12a-1.el6.noarch.rpm | 70 kB 00:00
(13/16): python-setuptools-0.6.10-3.el6.noarch.rpm | 336 kB 00:00
(14/16): python-simplejson-2.0.9-3.1.el6.x86_64.rpm | 126 kB 00:00
(15/16): python-six-1.9.0-2.el6.noarch.rpm | 28 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.x86_64.rpm: [Errno 14] PYCL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.
Error Downloading Packages:
ansible-2.6.4-1.el6.noarch: failure: Packages/a/ansible-2.6.4-1.el6.noarch.rpm from epel: [Errno 6] No more mirrors to try.
sshpass-1.06-1.el6.x86_64: failure: Packages/s/sshpass-1.06-1.el6.x86_64.rpm from epel: [Errno 25 No more mirrors to try.
[root@myhost yum.repos.d]# [root@myhost yum.repos.d]# yum install ansible -y
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* centosplus: centos4.zswap.net
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.6.4-1.el6 will be installed
--> Processing Dependency: sshpass for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-six for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-simplejson for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-setuptools for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-keyczar for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-jinja2-26 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto2.6 for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: python-crypto for package: ansible-2.6.4-1.el6.noarch
--> Processing Dependency: PyYAML for package: ansible-2.6.4-1.el6.noarch
--> Running transaction check
---> Package PyYAML.x86_64 0:3.10-3.1.el6 will be installed
--> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-3.1.el6.x86_64
---> Package python-crypto.x86_64 0:2.0.1-22.el6 will be installed
---> Package python-crypto2.6.x86_64 0:2.6.1-2.el6 will be installed
---> Package python-httplib2.noarch 0:0.7.7-1.el6 will be installed
---> Package python-jinja2-26.noarch 0:2.6-3.el6 will be installed
--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-26-2.6-3.el6.noarch
--> Processing Dependency: python-markupsafe for package: python-jinja2-26-2.6-3.el6.noarch
---> Package python-keyczar.noarch 0:0.71c-1.el6 will be installed
--> Processing Dependency: python-pyasn1 for package: python-keyczar-0.71c-1.el6.noarch
---> Package python-paramiko.noarch 0:1.7.5-2.1.el6 will be installed
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
---> Package python-simplejson.x86_64 0:2.0.9-3.1.el6 will be installed
---> Package python-six.noarch 0:1.9.0-2.el6 will be installed
---> Package sshpass.x86_64 0:1.06-1.el6 will be installed
--> Running transaction check
---> Package libyaml.x86_64 0:0.1.3-4.el6_6 will be installed
---> Package python-babel.noarch 0:0.9.4-5.1.el6 will be installed
---> Package python-markupsafe.x86_64 0:0.9.2-4.el6 will be installed
---> Package python-pyasn1.noarch 0:0.0.12a-1.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Siz
===================================================================================================
Installing:
ansible noarch 2.6.4-1.el6 epel 10
Installing for dependencies:
PyYAML x86_64 3.10-3.1.el6 centos-base 157
libyaml x86_64 0.1.3-4.el6_6 centos-base 52
python-babel noarch 0.9.4-5.1.el6 centos-base 1.4
python-crypto x86_64 2.0.1-22.el6 centos-base 159
python-crypto2.6 x86_64 2.6.1-2.el6 epel 513
python-httplib2 noarch 0.7.7-1.el6 epel 70
python-jinja2-26 noarch 2.6-3.el6 epel 527
python-keyczar noarch 0.71c-1.el6 epel 219
python-markupsafe x86_64 0.9.2-4.el6 centos-base 22
python-paramiko noarch 1.7.5-2.1.el6 centos-base 728
python-pyasn1 noarch 0.0.12a-1.el6 centos-base 70
python-setuptools noarch 0.6.10-3.el6 centos-base 336
python-simplejson x86_64 2.0.9-3.1.el6 centos-base 126
python-six noarch 1.9.0-2.el6 centos-base 28
sshpass x86_64 1.06-1.el6 epel 20
Transaction Summary
===================================================================================================
Install 16 Package(s)
Total download size: 15 M
Installed size: 74 M
Downloading Packages:
(1/16): PyYAML-3.10-3.1.el6.x86_64.rpm | 157 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.noarch.rpm: [Errno 14] PYRL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.
(3/16): libyaml-0.1.3-4.el6_6.x86_64.rpm | 52 kB 00:00
(4/16): python-babel-0.9.4-5.1.el6.noarch.rpm | 1.4 MB 00:00
(5/16): python-crypto-2.0.1-22.el6.x86_64.rpm | 159 kB 00:00
(6/16): python-crypto2.6-2.6.1-2.el6.x86_64.rpm | 513 kB 00:00
(7/16): python-httplib2-0.7.7-1.el6.noarch.rpm | 70 kB 00:00
(8/16): python-jinja2-26-2.6-3.el6.noarch.rpm | 527 kB 00:00
(9/16): python-keyczar-0.71c-1.el6.noarch.rpm | 219 kB 00:00
(10/16): python-markupsafe-0.9.2-4.el6.x86_64.rpm | 22 kB 00:00
(11/16): python-paramiko-1.7.5-2.1.el6.noarch.rpm | 728 kB 00:00
(12/16): python-pyasn1-0.0.12a-1.el6.noarch.rpm | 70 kB 00:00
(13/16): python-setuptools-0.6.10-3.el6.noarch.rpm | 336 kB 00:00
(14/16): python-simplejson-2.0.9-3.1.el6.x86_64.rpm | 126 kB 00:00
(15/16): python-six-1.9.0-2.el6.noarch.rpm | 28 kB 00:00
http://yum.mydomain.lan:8080/centos/...l6.x86_64.rpm: [Errno 14] PYCL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
Trying other mirror.
Error Downloading Packages:
ansible-2.6.4-1.el6.noarch: failure: Packages/a/ansible-2.6.4-1.el6.noarch.rpm from epel: [Errno 6] No more mirrors to try.
sshpass-1.06-1.el6.x86_64: failure: Packages/s/sshpass-1.06-1.el6.x86_64.rpm from epel: [Errno 25 No more mirrors to try.
[root@myhost yum.repos.d]#
|
So the local repo needs updating. I get that far. I found the repo data on my host at the following:
Code:
[root@myhost repodata]# pwd
/data/nginx/repo/centos/67_2/epel/repodata
[root@myhost repodata]# ls
2560ae79bf0cf8ca178c3c0d0ae34457e7b84403cf1aba3e492745b3b56f57f2-comps-Everything.x86_64.xml
55a73bffdf44e8dfdb2066488144e71e23c8a5d7f72738e8f935b2a6aa57764d-comps-Everything.x86_64.xml.gz
5b74563d8a374c8232d13c53fc0515e1f3221e3bbeafaec8be8c97ae9a1b5ce6-primary.xml.gz
5cf327ba7b188ae1e90cc15252731d7782ae05c0c9951fed8a7c8dda02cc2b95-filelists.xml.gz
703e3b28cb8e70b977801f86ee64526f09b9b41db34c262bc13eaac050288e58-other.xml.gz
b527f9bf61b76003880221dbf4d4880e61ba745c72ee7686e33550eb7528b172-prestodelta.xml.gz
dbf2965f86b5f0b4d89109ad9b21d9e42b815e5ed303f1b7d1507b743def9ef5-updateinfo.xml.bz2
repomd.xml
[root@umyhost repodata]#
My question is, where do I get this data from from?
And once I get it, is it a straight replace process?
Thanks in advance.