error message when I tried to run puppet and apply changes to the system

120 views
Skip to first unread message

Chris Zou

unread,
May 13, 2015, 5:16:16 PM5/13/15
to puppet...@googlegroups.com
I am new to Puppet, and I am trying to follow Quest Learning Machine from Puppet Lab.
 
However, every time I tried to run 
puppet apply cowsayings/tests/cowsay.pp
 
Error message comes up like this:
 
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
   (at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/package.rb:430:in `block (3 levels) in <module:Puppet>')
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list cowsay' returned 1: Error: Cannot find a valid baseurl for repo: epel
Could not retrieve mirrorlist
http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=i386 error was
14: PYCURL ERROR 7 - "Failed to connect to 2001:4178:2:1269::fed2: Network is unreachable"
Error: /Stage[main]/Cowsayings::Cowsay/Package[cowsay]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list cowsay' returned 1: Error: Cannot find a valid baseurl for repo: epel
Could not retrieve mirrorlist
http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=i386
error was
14: PYCURL ERROR 7 - "Failed to connect to 2001:4178:2:1269::fed2: Network is unreachable"
 
What does "Cannot find a valid baseurl for repo: epel" mean? How can I fix these errors?
 
I really appreciate your help!!

jcbollinger

unread,
May 14, 2015, 9:27:10 AM5/14/15
to puppet...@googlegroups.com


On Wednesday, May 13, 2015 at 4:16:16 PM UTC-5, Chris Zou wrote:
I am new to Puppet, and I am trying to follow Quest Learning Machine from Puppet Lab.
 
However, every time I tried to run 
puppet apply cowsayings/tests/cowsay.pp
 
Error message comes up like this:
 
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
   (at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type/package.rb:430:in `block (3 levels) in <module:Puppet>')


That's a warning, not an error, and it is moreover not directly related to your issue.

 
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y list cowsay' returned 1: Error: Cannot find a valid baseurl for repo: epel
Could not retrieve mirrorlist
http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=i386 error was
14: PYCURL ERROR 7 - "Failed to connect to 2001:4178:2:1269::fed2: Network is unreachable"


That's an error originally encountered by yum, as launched by Puppet to check the latest available version of package 'cowsay'.  "Network is unreachable" seems to speak for itself.  It is not a Puppet issue, though possibly is signals broken network configuration.

 
Error: /Stage[main]/Cowsayings::Cowsay/Package[cowsay]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y list cowsay' returned 1: Error: Cannot find a valid baseurl for repo: epel
Could not retrieve mirrorlist
http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=i386
error was
14: PYCURL ERROR 7 - "Failed to connect to 2001:4178:2:1269::fed2: Network is unreachable"


This one is just a followon from the previous one.
 
 
What does "Cannot find a valid baseurl for repo: epel" mean? How can I fix these errors?
 

The error message is emitted by yum; Puppet is only the messenger.  Nevertheless, the root problem is described in the next lines: "error was [...] Network is unreachable".

It appears that your machine has a physical network connection because it was able to resolve the machine name in the mirrorlist URL to an address.  If it cannot then find a route to that address, as the error message seems to indicate, then that probably means your network configuration requires you to send traffic through a proxy server.  In that case, you should configure yum appropriately to use your network's proxy server via the "proxy" property and maybe the "proxy_user" and "proxy_password" properties in /etc/yum.conf.


John

Reply all
Reply to author
Forward
0 new messages