yum repo don't work in CentOS 6.4

Bug #1264959 reported by Rongze Zhu
12
This bug affects 2 people
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:~/git/stackforge/puppet-ceph$ cat /etc/puppet/manifests/site.pp
node 'test0.way' {
  notify {"hello world": }
  ->
  class { 'ceph::repo':
    release => 'dumpling',
  }
  ->
  class { 'ceph':
    fsid => 'a4807c9a-e76f-4666-a297-6d6cbc922e3a',
    mon_host => $::ipaddress_eth0,
  }
  ->
  ceph::mon { 'a':
    public_addr => $::ipaddress_eth0,
    key => 'AQCztJdSyNb0NBAASA2yPZPuwXeIQnDJ9O8gVw==',
  }
}
zhu@dev:~/git/stackforge/puppet-ceph$

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-6.8/metalink | 27 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=${basearch} error was
No repomd file
Error: File /var/cache/yum/x86_64/6/ext-epel-6.8/metalink.xml does not exist
[root@test0 yum.repos.d]#

3. I check the repo file.

[root@test0 yum.repos.d]# ll /etc/yum.repos.d/ext-*
-rw-r--r--. 1 root root 184 10月 15 21:17 /etc/yum.repos.d/ext-ceph-dumpling-noarch.repo
-rw-r--r--. 1 root root 184 10月 15 22:18 /etc/yum.repos.d/ext-ceph-dumpling.repo
-rw-r--r--. 1 root root 132 10月 15 22:14 /etc/yum.repos.d/ext-epel-6.8.repo
[root@test0 yum.repos.d]# cat ext-epel-6.8.repo
[ext-epel-6.8]
name=External EPEL 6.8
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=${basearch}
gpgcheck=0
[root@test0 yum.repos.d]# cat ext-ceph-dumpling.repo
[ext-ceph-dumpling]
name=External Ceph dumpling
baseurl=http://ceph.com/rpm-dumpling/el6/${basearch}
gpgcheck=1
gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
[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-dumpling.repo
[root@test0 yum.repos.d]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
ext-epel-6.8/metalink | 6.0 kB 00:00
 * ext-epel-6.8: mirrors.yun-idc.com
ext-ceph-dumpling | 951 B 00:00
ext-ceph-dumpling/primary 59% [=============================- ] 3.0 kB/s | 12 kB 00:02 ETA
.......

5. I think we need change '{basearch}' to 'basearch' in puppet-ceph/manifests/repo.pp

Revision history for this message
Rongze Zhu (zrzhit) wrote :

more detail:

[root@test0 yum.repos.d]# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
ext-epel-6.8/metalink | 27 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=${basearch} error was
No repomd file
 * ext-epel-6.8: mirrors.yun-idc.com
http://ceph.com/rpm-dumpling/el6/%24%7Bbasearch%7D/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
http://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"
Trying other mirror.
Error: failure: repodata/primary.xml.gz from ext-ceph-dumpling: [Errno 256] No more mirrors to try.
[root@test0 yum.repos.d]#

David Gurtner (aldavud)
Changed in puppet-ceph:
assignee: nobody → David Gurtner (aldavud)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-ceph (master)

Fix proposed to branch: master
Review: https://review.openstack.org/95391

Changed in puppet-ceph:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-ceph (master)

Reviewed: https://review.openstack.org/95390
Committed: https://git.openstack.org/cgit/stackforge/puppet-ceph/commit/?id=3bd524541f6b29f4ee8f46460db65e630bda96b2
Submitter: Jenkins
Branch: master

commit 3bd524541f6b29f4ee8f46460db65e630bda96b2
Author: David Gurtner <email address hidden>
Date: Sun May 25 18:07:36 2014 +0200

    Create rspec-system tests for RedHat family

    Provides the necessary nodset configurations and examples
    on how to run the tests on RedHat family systems.

    Using CentOS 6.4 as a representative for RedHat family systems,
    as there is a box available from the puppetlabs Vagrant boxes
    repository with the same Virtualbox version requirements as the
    existing Ubuntu Precise one:

    http://puppet-vagrant-boxes.puppetlabs.com

    This is needed to test solutions for bugs 1264959 and 1264916.

    There is a circular dependency issue between those bugs and this:
    Cannot test the solutions to those bugs without this patch, but without
    solutions to those tests the rspec-system tests for RedHat family
    systems won't run. To have only running code committed, this should
    only be merged together with the other patches.

    Change-Id: I2093635034ca78b7fb6dbfd950cf35af8a03bc6f
    Closes-Bug: 1253211
    Related-Bug: 1264959
    Related-Bug: 1264916

Changed in puppet-ceph:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-ceph (master)

Reviewed: https://review.openstack.org/95391
Committed: https://git.openstack.org/cgit/stackforge/puppet-ceph/commit/?id=ab782949442a136c46d74449d207fe61211fdf67
Submitter: Jenkins
Branch: master

commit ab782949442a136c46d74449d207fe61211fdf67
Author: David Gurtner <email address hidden>
Date: Sun May 25 18:24:24 2014 +0200

    Fixes Bug: "yum repo don't work in CentOS 6.4"

    Removing curly braces around the the basearch parameter which
    lead to parsing issues.

    Fixing additional issues with yum repo configuration and
    adapting the CI test.

    Locally verified this with RS_SET=two-centos-64-x64.
    While it would be preferable to verify it via gerritexec,
    all of the CI except ceph_repo_spec.pp fail.
    This will be handled with subsquent patches.

    Change-Id: Ia99e20dab8c496cc3becec77acbe38003c6d7779
    Closes-Bug: 1264959
    Partially-Bug: 1264916

Changed in puppet-ceph:
assignee: David Gurtner (aldavud) → Santhosh (santhoshsk12695)
Changed in puppet-ceph:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.