ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

It definitely seems like something was unexpected in the hiera (yaml format) config data.

From the error message:

could not find expected ':' while scanning a simple key at line 34 column 1 would indicate a possible location, but it doesn't give a filename and it's possible that the position information refers to an intermediate converged file which is the result of merging the master and common hiera configurations. But I'd look at your configuration files.

To check YAML files, parsing them with the yamllint tool mentioned by @gvdhoorn works. You can also use a language with an interactive interpreter to do a quick check. Ruby supports yaml parsing in the standard library. So checking looks a little like

$ irb irb(main):001:0> require "yaml" => true irb(main):002:0> YAML.load_file "hiera/hieradata/common.yaml" => {"jenkins::slave::ui_user"=>"admin", "jenkins::slave::ui_pass"=>"changeme", "jenkins::slave::masterurl"=>"http://master:8080", "master::ip"=>"172.30.1.145", "repo::ip"=>"172.30.1.69", "ssh_keys"=>{"ssh key comment / title"=>{"key"=>"AAAAB3NzaC1yc2EAAAADAQABAAABAQCXukygCeYbRCHP7IRxCIJpVTKYVtqIXRubANWVjGAQYEM+4FHca0ZCx/k+xOERj49ZIySXMOKdFlWELezYCnpJl6Q1qE2zPR4eSU/nEo9BwaCqbIrKoToND0L65goi4Ya/mKn3NBNkYJbAl+hHW0QQKhgyme5b1JgWZjkKX7b5eqzlkn0ic7hNUmRuj3gjJAvfvvMaVE0VIxnXSuw+SoxE8Q33qno4vtkxo8/6i1MpQgxB26e7UdeVY8xuUukByD0+pUARBMFlpOCu8ycMYcoMdJKiqVSRvn3/kg5lj39qro8kMwqR/m2nrTtZMiEfCNYSEuYNLjLUvRQbBGg8dxgp", "type"=>"ssh-rsa", "user"=>"root"}}, "autoreconfigure"=>false, "autoreconfigure::command"=>"bash -c \"cd /root/buildfarm_deployment_config && git fetch origin standalone-host && git reset --hard origin/standalone-host && ./reconfigure.bash\""}

With pyyaml installed you can do something similar with ipython.

click to hide/show revision 2
No.2 Revision

It definitely seems like something was unexpected in the hiera (yaml format) config data.

From the error message:

 could not find expected ':' while scanning a simple key at line 34 column 1
 

would indicate a possible location, but it doesn't give a filename and it's possible that the position information refers to an intermediate converged file which is the result of merging the master and common hiera configurations. But I'd look at your configuration files.

To check YAML files, parsing them with the yamllint tool mentioned by @gvdhoorn works. works.

You can also use a language with an interactive interpreter to do a quick check. Ruby supports yaml parsing in the standard library. So checking looks a little like

 $ irb
irb(main):001:0> require "yaml"
=> true
irb(main):002:0> YAML.load_file "hiera/hieradata/common.yaml"
=> {"jenkins::slave::ui_user"=>"admin", "jenkins::slave::ui_pass"=>"changeme", "jenkins::slave::masterurl"=>"http://master:8080", "master::ip"=>"172.30.1.145", "repo::ip"=>"172.30.1.69", "ssh_keys"=>{"ssh key comment / title"=>{"key"=>"AAAAB3NzaC1yc2EAAAADAQABAAABAQCXukygCeYbRCHP7IRxCIJpVTKYVtqIXRubANWVjGAQYEM+4FHca0ZCx/k+xOERj49ZIySXMOKdFlWELezYCnpJl6Q1qE2zPR4eSU/nEo9BwaCqbIrKoToND0L65goi4Ya/mKn3NBNkYJbAl+hHW0QQKhgyme5b1JgWZjkKX7b5eqzlkn0ic7hNUmRuj3gjJAvfvvMaVE0VIxnXSuw+SoxE8Q33qno4vtkxo8/6i1MpQgxB26e7UdeVY8xuUukByD0+pUARBMFlpOCu8ycMYcoMdJKiqVSRvn3/kg5lj39qro8kMwqR/m2nrTtZMiEfCNYSEuYNLjLUvRQbBGg8dxgp", "type"=>"ssh-rsa", "user"=>"root"}}, "autoreconfigure"=>false, "autoreconfigure::command"=>"bash -c \"cd /root/buildfarm_deployment_config && git fetch origin standalone-host && git reset --hard origin/standalone-host && ./reconfigure.bash\""}

With pyyaml pyyaml installed you can do something similar with ipython.