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.
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?
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
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
Trying other mirror.
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 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)
Last 10 lines of output were:
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