Ask Your Question
0

Puppet::Error: Unsupported data type: 'Symbol' on node xxxxxxx

asked 2016-01-26 05:00:56 -0600

Felix Barbeira gravatar image

Im trying to pass the rspec tests to a puppet module but all of them fail with the same error. This are the steps I'm following, please tell me if I'm doing something wrong or if I miss some step:

root@ec0d50ff56dc:/# git clone https://github.com/puppetlabs/puppetlabs-haproxy`
Cloning into 'puppetlabs-haproxy'...
remote: Counting objects: 1493, done.
remote: Total 1493 (delta 0), reused 0 (delta 0), pack-reused 1493
Receiving objects: 100% (1493/1493), 361.25 KiB | 562.00 KiB/s, done.
Resolving deltas: 100% (772/772), done.
Checking connectivity... done.
root@ec0d50ff56dc:/# root@ec0d50ff56dc:/# cd puppetlabs-haproxy/
root@ec0d50ff56dc:/puppetlabs-haproxy# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies......
Installing rake 10.5.0
Installing CFPropertyList 2.2.8
Installing i18n 0.7.0
Installing json 1.8.3 with native extensions
Installing minitest 5.8.4
Installing thread_safe 0.3.5
Installing addressable 2.4.0
Installing mini_portile2 2.0.0
Installing require_all 1.3.3
Installing stringify-hash 0.0.2
Installing excon 0.45.4
Installing builder 3.2.2
Installing formatador 0.2.5
Installing multi_json 1.11.2
Installing ipaddress 0.8.2
Installing inflecto 0.0.2
Installing multipart-post 2.0.0
Installing jwt 1.5.2
Installing little-plugger 1.1.4
Installing memoist 0.14.0
Installing os 0.9.6
Installing httpclient 2.7.1
Installing hurley 0.2
Installing mime-types 2.99
Installing uber 0.0.15
Installing retriable 2.1.0
Installing thor 0.19.1
Installing hocon 0.9.3
Installing inifile 2.0.2
Installing net-ssh 2.9.2
Installing open_uri_redirections 0.2.1
Installing trollop 2.1.2
Installing rsync 1.0.9
Installing unf_ext 0.0.7.1 with native extensions
Installing rspec-support 3.1.2
Installing diff-lcs 1.2.5
Installing net-telnet 0.1.1
Installing sfl 2.2
Installing docile 1.1.5
Installing facter 2.4.5
Installing json_pure 1.8.3
Installing metaclass 0.0.4
Installing puppet-lint 1.1.0
Installing puppet_facts 0.2.1
Installing simplecov-html 0.10.0
Using bundler 1.11.2
Installing puppet-syntax 2.1.0
Installing fission 0.5.0
Installing tzinfo 1.2.2
Installing nokogiri 1.6.7.2 with native extensions
Installing beaker-answers 0.3.2
Installing beaker-hiera 0.1.1
Installing docker-api 1.26.0
Installing fog-core 1.35.0
Installing faraday 0.9.2
Installing logging 2.0.0
Installing representable 2.3.0
Installing net-scp 1.2.1
Installing unf 0.1.4
Installing rspec-core 3.1.7
Installing rspec-mocks 3.1.3
Installing rspec-expectations 3.1.2
Installing hiera 3.0.6
Installing mocha 1.1.0
Installing simplecov 0.11.1
Installing activesupport 4.2.5.1
Installing aws-sdk-v1 1.66.0
Installing rbvmomi 1.8.2 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-26 09:25:06 -0600

updated 2016-01-26 09:35:34 -0600

Yeah, it's a bug. I've just managed to reproduce the same on my laptop. I'll have a quick look to see if I can figure out what's wrong. Otherwise, raise a bug against the project.

UPDATE It's a bug in rspec-puppet 2.3.1 that was released a few days ago. I'll raise a bug for you. In the meantime you can workaround this by doing the following:

$ rm -f Gemfile.lock
$ vim Gemfile
...
gem 'rspec-puppet', '2.3.0'

(Add that at the bottom.)

Then

$ bundle install
$ bundle exec rake spec
edit flag offensive delete link more

Comments

Alex Harvey gravatar imageAlex Harvey ( 2016-01-26 09:46:15 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-01-26 05:00:56 -0600

Seen: 176 times

Last updated: Jan 26 '16