I've been switching my modules from rspec-system to beaker-rspec and am having some issues running any tests using the centos-510-x64 and centos-59-x64 puppetlabs vagrant boxes. Every test fails to install ntpdate due to "Temporary failure in name resolution". I do not have this issue with the centos-65-x65 box.
I found that if I run my test with RS_DESTROY=no and then log into the centos-510-x64 box and execute 'sudo /sbin/service network restart', name resolution works. The contents of /etc/resolv.conf are not updated by dhcp on the EL5 boxes. Contents of /etc/resolv.conf on EL5 box: $ cat /etc/resolv.conf nameserver 10.16.22.10 nameserver 10.16.22.11 Contents of /etc/resolv.conf on EL5 after restarting network service: $ cat /etc/resolv.conf ; generated by /sbin/dhclient-script search tamu.edu nameserver 10.0.2.3 Contents of /etc/resolv.conf on EL6 box: $ cat /etc/resolv.conf ; generated by /sbin/dhclient-script search tamu.edu nameserver 10.0.2.3 Output from failed beaker-rspec run is at the end of the post. Any suggestions on what can be done to remedy this or is this a bug with the EL5 boxes? Thanks - Trey centos-510-x64 14:46:37$ which ntpdate which: no ntpdate in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin) centos-510-x64 executed in 0.01 seconds Exited: 1 centos-510-x64 14:46:37$ yum -y install ntpdate Loaded plugins: fastestmirror, security Determining fastest mirrors Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=os error was [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=extras error was [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=x86_64&repo=updates error was [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> * base: centos-distro.cavecreek.net * extras: ftp.wallawalla.edu * updates: mirror.nandomedia.com http://centos-distro.cavecreek.net/centos/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://centos.mirror.nac.net/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://centos.unmeteredvps.net/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://linux.mirrors.es.net/centos/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirror.dattobackup.com/CentOS/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirror.sanctuaryhost.com/centos/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors-pa.sioru.com/centos/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.adams.net/centos/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.easynews.com//linux/centos/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.maine.edu/CentOS/5.10/os/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. ftp://ftp.wallawalla.edu/pub/mirrors/centos/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')> Trying other mirror. http://centos.gravityfish.com/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://ftp.osuosl.org/pub/centos/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.advancedhosters.com/centos/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.einstein.yu.edu/centos/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.loosefoot.com/centos/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.maine.edu/CentOS/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.sonic.net/centos/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://yum.phx.singlehop.com/centos/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://yum.singlehop.com/CentOS/5.10/extras/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. ftp://mirror.nandomedia.com/pub/CentOS/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')> Trying other mirror. http://bay.uchicago.edu/centos/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://centos.aol.com/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://centos.mirrors.hoobly.com/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirror.chpc.utah.edu/pub/centos/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirror.cs.uwp.edu/pub/centos/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirror.es.its.nyu.edu/centos/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirror.oss.ou.edu/centos/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.advancedhosters.com/centos/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. http://mirrors.usc.edu/pub/linux/distributions/centos/5.10/updates/x86_64/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Trying other mirror. Setting up Install Process No package ntpdate available. Nothing to do centos-510-x64 executed in 4800.41 seconds centos-510-x64 16:06:38$ rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm error: skipping http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm - transfer failed - Unknown or unexpected error Retrieving http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm centos-510-x64 executed in 80.01 seconds Exited: 1 /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/beaker-1.9.1/lib/beaker/host.rb:183:in `exec': Host 'centos-510-x64' exited with 1 running: (Beaker::Host::CommandFailure) rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm Last 10 lines of output were: error: skipping http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm - transfer failed - Unknown or unexpected error Retrieving http://yum.puppetlabs.com/puppetlabs-release-el-5.noarch.rpm from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/beaker-1.9.1/lib/beaker/dsl/helpers.rb:85:in `on' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/beaker-1.9.1/lib/beaker/dsl/install_utils.rb:445:in `install_puppet' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/beaker-1.9.1/lib/beaker/dsl/install_utils.rb:442:in `each' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/beaker-1.9.1/lib/beaker/dsl/install_utils.rb:442:in `install_puppet' from /Users/treydock/puppet/modules/repo_centos/spec/spec_helper_acceptance.rb:6 from /Users/treydock/puppet/modules/repo_centos/spec/spec_helper_acceptance.rb:4:in `each' from /Users/treydock/puppet/modules/repo_centos/spec/spec_helper_acceptance.rb:4 from /Users/treydock/puppet/modules/repo_centos/spec/acceptance/01_repo_centos_spec.rb:1:in `require' from /Users/treydock/puppet/modules/repo_centos/spec/acceptance/01_repo_centos_spec.rb:1 from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load_spec_files' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `each' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/rspec-core-2.14.8/lib/rspec/core/configuration.rb:896:in `load_spec_files' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:22:in `run' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `autorun' from /Users/treydock/.rvm/gems/ruby-1.8.7-p371@puppet_dev/bin/rspec:23 /Users/treydock/.rvm/rubies/ruby-1.8.7-p371/bin/ruby -S rspec spec/acceptance failed -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/7805de01-6fd7-4e8b-840a-96afd764f0b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
