When openstack is installed on the dashboard, the following error occurs: [Errno 256] No more mirrors to try.
Simple:
1. yum clean metadata
2. yum clean all
Done!
So far, almost all components of openstack are normal. Next, I want to run a vyos (the computer is really a little hold ).
Next I will write a higher-quality article "How vRouter live in a cloud ?"
YUM installation experience: [Errno 256] No more mirrors to try
After YUM is configured, the following error occurs during installation using the yum command:
Downloading Packages:
Ftp: // 192.168.220.46/RHEL6.2/x64/Server/libaio-devel-0.3.107-10.el6.x86_64.rpm: [Errno 14] pycurl error 19-"Given file does not exist"
Trying other mirror.
Error Downloading Packages:
Libaio-devel-0.3.107-10.el6.x86_64: failure: libaio-devel-0.3.107-10.el6.x86_64.rpm from RHEL6.2-Server-X64: [Errno 256] No more mirrors to try.
In the beginning, it was thought that the yum source of the client had a cache configuration problem. The same error still occurred after the yum clean all command was cleared.
Finally, I found that my RHEL6.2 operating system does not have the default ftp tool installed! There is no way to install the ftp tool from the CD:
[Root @ instsvr1 Packages] # rpm-ivh ftp-0.17-51.1.el6.x86_64.rpm
Warning: ftp-0.17-51.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ######################################## ### [100%]
1: ftp ####################################### #### [100%]
By the way, telnet tools and services are also installed:
[Root @ instsvr1 Packages] # rpm-ivh telnet -*
Warning: telnet-0.17-47.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ######################################## ### [100%]
1: telnet-server ##################################### ###### [50%]
2: telnet ####################################### #### [100%]
After installing the tool, the system still reports an error. After a long time, it was found that the "Given file does not exist" information was correct, the directory RHEL6.2/x64/Server does not have the libaio-devel-0.3.107-10.el6.x86_64.rpm file, the original when creating the repodata specified RPM package directory is RHEL6.2/x64/Packages, the yum tool looks for the installation package directly from the RHEL6.2/x64/Server/directory, so you can link the corresponding file in the Packages package under the RHEL6.2/x64/Server/directory.
Careless !!!!!!!!
Configure the YUM source of RHEL6.2
Server:
1. yum installation supports three protocols: file: //, ftp: //, and http: //. Therefore, if you use a local file as the source, you can directly use file: \ protocol. Otherwise, you must prepare the ftp or http service. In this test, the ftp source is used. Therefore, you must configure the ftp service and configure the ftp service as anonymous logon. In addition, you must place the rpm package under the root directory of ftp anonymous logon. Configure anonymous Vsftp logon as follows:
Anonymous_enable = YES
Anon_root =/share (this is the root directory for anonymous vsftp logon, and its attribute cannot be the user configured in the/etc/vsftp/ftpusers,/etc/vsftp/user_list file, otherwise, you cannot log on anonymously)
If you do not configure anonymous logon or do not set the root directory for anonymous logon, the following error occurs:
[Root @ srcbdc yum. repos. d] # yum list
Loaded plugins: aliases, rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Ftp: // yumserver/RHEL/Server/repodata/repomd. xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd. xml) for repository: RHEL-Server. Please verify its path and try again
2. Check whether yum has been installed. If not, install yum on the CD.
[Root @ srcbdc ~] # Rpm-qa | grep yum
Yum-security-1.1.16-13.el5
Yum-rhn-plugin-0.5.4-13.el5
Yum-metadata-parser-1.1.2-3.el5
Yum-updatesd-0.9-2.el5
Yum-aliases-1.1.16-13.el5
Yum-3.2.22-20.el5
3. Install another package for yum, createrepo
[Root @ srcbdc Server] # rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm
Warning: createrepo-0.4.11-3.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ######################################## ### [100%]
1: createrepo ####################################### #### [100%]
This tool is mainly used to produce the database of the installation package relationship required by yum.
4. Copy the Server directory and VT directory in the system disk to the new directory. My files are copied from the ISO file.
First mount the ISO file
[Root @ srcbdc ~] # Mount-o loop/instsvr/ISO/rhel-server-6.2-x86_64-dvd.iso/mnt
Copy files
[Root @ srcbdc ~] # Mkdir-p/instsvr/RHEL6.2/x64
[Root @ srcbdc ~] # Cp-r/mnt // instsvr/RHEL6.2/x64
5. Create an rpm relational database
[Root @ srcbdc ~] # Createrepo-g/instsvr/RHEL6.2/x64/Server/repodata/* comps-rhel6-Server.xml-o/instsvr/RHEL6.2/x64/Server-I/instsvr/RHEL6.2/x64/Server/listing/ instsvr/RHEL6.2/x64/Packages/
[Root @ srcbdc ~] # Createrepo-g/instsvr/RHEL6.2/x64/HighAvailability/repodata/* comps-rhel6-HighAvailability.xml-o/instsvr/RHEL6.2/x64/HighAvailability-I/instsvr/RHEL6.2/x64/HighAvailability/listing/ instsvr/RHEL6.2/x64/Packages/
[Root @ srcbdc ~] # Createrepo-g/instsvr/RHEL6.2/x64/LoadBalancer/repodata/* comps-rhel6-LoadBalancer.xml-o/instsvr/RHEL6.2/x64/LoadBalancer-I/instsvr/RHEL6.2/x64/LoadBalancer/listing/ instsvr/RHEL6.2/x64/Packages/
[Root @ srcbdc ~] # Createrepo-g/instsvr/RHEL6.2/x64/ResilientStorage/repodata/* comps-rhel6-ResilientStorage.xml-o/instsvr/RHEL6.2/x64/ResilientStorage-I/instsvr/RHEL6.2/x64/ResilientStorage/listing/ instsvr/RHEL6.2/x64/Packages/
[Root @ srcbdc ~] # Createrepo-g/instsvr/RHEL6.2/x64/ScalableFileSystem/repodata/* comps-rhel6-ScalableFileSystem.xml-o/instsvr/RHEL6.2/x64/ScalableFileSystem-I/instsvr/RHEL6.2/x64/ScalableFileSystem/listing/ instsvr/RHEL6.2/x64/Packages/
Create the link file of the rpm Package:
[Root @ srcbdc ~] # Cd/instsvr/RHEL6.2/x64/Server
[Root @ srcbdc ScalableFileSystem] # for I in 'cat listing'; do ln-s ../Packages/$ I; done
[Root @ srcbdc ~] # Cd/instsvr/RHEL6.2/x64/HighAvailability
[Root @ srcbdc ScalableFileSystem] # for I in 'cat listing'; do ln-s ../Packages/$ I; done
[Root @ srcbdc ~] # Cd/instsvr/RHEL6.2/x64/LoadBalancer
[Root @ srcbdc ScalableFileSystem] # for I in 'cat listing'; do ln-s ../Packages/$ I; done
[Root @ srcbdc ~] # Cd/instsvr/RHEL6.2/x64/ResilientStorage
[Root @ srcbdc ScalableFileSystem] # for I in 'cat listing'; do ln-s ../Packages/$ I; done
[Root @ srcbdc ~] # Cd/instsvr/RHEL6.2/x64/ScalableFileSystem
[Root @ srcbdc ScalableFileSystem] # for I in 'cat listing'; do ln-s ../Packages/$ I; done
6. Clear yum cache information
[Root @ srcbdc yum. repos. d] # yum clean all
Loaded plugins: aliases, rhnplugin, security
Cleaning up Everything
7. Use the yum list name to view the rpm Package. Normally, all the rpm packages will be listed.
Client:
The client configuration is better. You only need to add the local yum source configuration file in the/etc/yum. d. repo/directory.
[Root @ instsvr1 yum. repos. d] # cat rhel6.2-x64.repo
[RHEL6.2-Server-X64]
Name = Red Hat Enterprise Linux Install Server
Baseurl = ftp: // 192.168.220.46/RHEL6.2/x64/Server
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release
[RHEL6.2-HighAvailability-X64]
Name = Red Hat Enterprise Linux Install Server
Baseurl = ftp: // 192.168.220.46/RHEL6.2/x64/HighAvailability/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[RHEL6.2-LoadBalancer-X64]
Name = Red Hat Enterprise Linux Install Server
Baseurl = ftp: // 192.168.220.46/RHEL6.2/x64/LoadBalancer/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[RHEL6.2-ResilientStorage-X64]
Name = Red Hat Enterprise Linux Install Server
Baseurl = ftp: // 192.168.220.46/RHEL6.2/x64/ResilientStorage/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[RHEL6.2-ScalableFileSystem-X64]
Name = Red Hat Enterprise Linux Install Server
Baseurl = ftp: // 192.168.220.46/RHEL6.2/x64/ScalableFileSystem/
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
RHEL-RPMS
Name = Red Hat Enterprise Linux Install Server
Baseurl = ftp: // 192.168.220.46/rpms
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release