example42 / puppet-yum

Puppet module for Yum
Other
43 stars 116 forks source link

Cannot retrieve repository metadata (repomd.xml) for repository: repoforge #120

Closed felipe1982 closed 6 years ago

felipe1982 commented 9 years ago
# site.pp
node 'freshasp.local' {
  class { 'yum':
    extrarepo => [ 'repoforgeextras', 'puppetlabs' ],
  }
}

rpmforge does not give errors, but both repoforge and repoforgeextras gives errors.

Then I run puppet agent --test and get these errors

/usr/lib/ruby/site_ruby/1.8/puppet/defaults.rb:214: warning: Insecure world writable dir /var/log/. in PATH, mode 040777
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Loading facts
Info: Caching catalog for freshasp.local
Info: Applying configuration version '1439268350'
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list yum-priorities' returned 1: Error: Cannot retrieve repository metadata (repomd.xml) for repository: repoforge. Please verify its path and try again
Error: /Stage[main]/Yum::Prerequisites/Yum::Plugin[priorities]/Package[yum-priorities]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list yum-priorities' returned 1: Error: Cannot retrieve repository metadata (repomd.xml) for repository: repoforge. Please verify its path and try again
Notice: Finished catalog run in 4.33 seconds
[root(app2)@FreshASP log]# yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * epel: fedora.uberglobalmirror.com
 * rpmforge: mirror-fpt-telecom.fpt.net
 * rpmforge-extras: mirror.as24220.net
http://apt.sw.be/redhat/el5Server/en/x86_64/rpmforge/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: repoforge. Please verify its path and try again
alvagante commented 9 years ago

Do you have updated urls for the relevant repos?

felipe1982 commented 9 years ago

Shouldn't the module take care of all of that for me? I added them using this module

alvagante commented 9 years ago

Yes it should, it contains old data which should be updated, that's why I asked for the urls in order to fix it... will check them later anyway.

alvagante commented 9 years ago

Please let me know if the referenced commit fixes your issue with RHEL 5