0

I am getting this error when I add a gluster volume and run puppet agent -t:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, 'split' parameter 'str' expects a String value, got Undef at /etc/puppetlabs/code/environments/test/modules/gluster/manifests/volume.pp:180:21 at /etc/puppetlabs/code/environments/test/manifests/classes/gluster/test_volume.pp:3 on node gluster1.example.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

Below is what I have for test_volume.pp: gluster::volume { 'Test': replica => 4, bricks => [ 'gluster1.example.com:/data/test/brick', 'gluster2.example.com:/data/test/brick', 'gluster3.example.com:/data/test/brick', 'gluster4.example.com:/data/test/brick', 'gluster5.example.com:/data/test/brick', 'gluster6.example.com:/data/test/brick', 'gluster7.example.com:/data/test/brick', 'gluster8.example.com:/data/test/brick', ], require => [ File['/data/test'],

What I'm I doing wrong, I can't seem to figure out why its complaining on those lines.

  • is the trailing ` on the gluster2 line a typo here or is it in file? – cas Jan 18 '18 at 2:57
  • It's a typo here. sorry. – TeNaJ Systems Jan 18 '18 at 13:23
  • ok, maybe try it without the trailing comma on the gluster8 line. puppet has been fussy about that in the past, maybe it still is. – cas Jan 18 '18 at 13:37
  • It didn't work. – TeNaJ Systems Jan 18 '18 at 14:57
0

The name of the volume needs to be lower case as when puppet fact for the module I am using for gluster is run, it looks for lowercase in the volume name so if the volume name is upper case you will experience the error I was seeing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.