Manish Sapariya
2014-Oct-28 09:10 UTC
[Puppet Users] beaker test fails to resolve "agent" roles, works if role is master/database
Hi,
I have the nodeset definition as follows..
---------- Some of the attributes removed for clarity ----------------------
HOSTS:
kpointvm1.zencite.com:
roles:
- master
hypervisor : vagrant
kpointvm2.zencite.com:
roles:
- agent
hypervisor : vagrant
----------------------
When I run the tests it fails with following stack trace
----------------------
/opt/manish/kpoint_beaker/spec/spec_helper_acceptance.rb:28:in `<top
(required)>': undefined local variable or method `agent' for
main:Object
(NameError)
from
/usr/local/rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
/usr/local/rvm/rubies/ruby-1.9.3-p545/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
/opt/manish/kpoint_beaker/spec/acceptance/001_basic_spec.rb:1:in `<top
(required)>'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/configuration.rb:1105:in
`load'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/configuration.rb:1105:in
`block in load_spec_files'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/configuration.rb:1105:in
`each'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/configuration.rb:1105:in
`load_spec_files'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/runner.rb:96:in
`setup'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/runner.rb:84:in
`run'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/runner.rb:69:in
`run'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib/rspec/core/runner.rb:37:in
`invoke'
from
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/exe/rspec:4:in
`<main>'
/usr/local/rvm/rubies/ruby-1.9.3-p545/bin/ruby
-I/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-support-3.1.0/lib:/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/lib
/usr/local/rvm/gems/ruby-1.9.3-p545/gems/rspec-core-3.1.4/exe/rspec
spec/acceptance --color failed
----------------------
Following is the on call ...
on agent, "mkdir -p /tmp/I-am-the-agent"
Surprisingly, if I change role to either master/dashboard/database it runs
without
any problem.
I thought "agent" may be a reserved word, though documentation uses
it,
I tried with other roles, but that fails too.
My environment is
----------------------
ruby 1.9.3p545 (2014-02-24 revision 45159) [x86_64-linux] (Running in RVM)
beaker (1.19.1)
----------------------
Any idea?
Thanks and Regards,
Manish
--
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 puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/3612d07d-76d7-46f3-bc6e-16a237abe9fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.