yum repo don't work in CentOS 6.4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-ceph |
Fix Released
|
Undecided
|
Group_5 |
Bug Description
0. I test puppet-ceph module, I write site.pp in puppet master host.
zhu@dev:
node 'test0.way' {
notify {"hello world": }
->
class { 'ceph::repo':
release => 'dumpling',
}
->
class { 'ceph':
fsid => 'a4807c9a-
mon_host => $::ipaddress_eth0,
}
->
ceph::mon { 'a':
public_addr => $::ipaddress_eth0,
key => 'AQCztJdSyNb0NB
}
}
zhu@dev:
1. I run puppet agent in agent host.
[root@test0 yum.repos.d]#puppet agent --test
......
Notice: Finished catalog run in 0.54 seconds
2. I run "yum update", it cannot work, because ext-epel-6.8.repo is wrong.
[root@test0 yum.repos.d]# yum update
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink | 6.0 kB 00:00
ext-epel-
Could not parse metalink https:/
No repomd file
Error: File /var/cache/
[root@test0 yum.repos.d]#
3. I check the repo file.
[root@test0 yum.repos.d]# ll /etc/yum.
-rw-r--r--. 1 root root 184 10月 15 21:17 /etc/yum.
-rw-r--r--. 1 root root 184 10月 15 22:18 /etc/yum.
-rw-r--r--. 1 root root 132 10月 15 22:14 /etc/yum.
[root@test0 yum.repos.d]# cat ext-epel-6.8.repo
[ext-epel-6.8]
name=External EPEL 6.8
mirrorlist=https:/
gpgcheck=0
[root@test0 yum.repos.d]# cat ext-ceph-
[ext-ceph-dumpling]
name=External Ceph dumpling
baseurl=http://
gpgcheck=1
gpgkey=https:/
[root@test0 yum.repos.d]#
4. I modify repo files , after change '${basearch}' to '${basearch}', it is ok.
[root@test0 yum.repos.d]# vim ext-epel-6.8.repo
[root@test0 yum.repos.d]# vim ext-ceph-
[root@test0 yum.repos.d]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
ext-epel-
* ext-epel-6.8: mirrors.yun-idc.com
ext-ceph-dumpling | 951 B 00:00
ext-ceph-
.......
5. I think we need change '{basearch}' to 'basearch' in puppet-
Changed in puppet-ceph: | |
assignee: | nobody → David Gurtner (aldavud) |
Changed in puppet-ceph: | |
assignee: | David Gurtner (aldavud) → Santhosh (santhoshsk12695) |
Changed in puppet-ceph: | |
status: | Fix Committed → Fix Released |
more detail:
[root@test0 yum.repos.d]# yum update 6.8/metalink | 27 kB 00:00 /mirrors. fedoraproject. org/metalink? repo=epel- 6&arch= ${basearch} error was ceph.com/ rpm-dumpling/ el6/%24% 7Bbasearch% 7D/repodata/ repomd. xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" ceph.com/ rpm-dumpling/ el6/%24% 7Bbasearch% 7D/repodata/ primary. xml.gz: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" primary. xml.gz from ext-ceph-dumpling: [Errno 256] No more mirrors to try.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
ext-epel-
Could not parse metalink https:/
No repomd file
* ext-epel-6.8: mirrors.yun-idc.com
http://
Trying other mirror.
http://
Trying other mirror.
Error: failure: repodata/
[root@test0 yum.repos.d]#