-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function 'split' called with mis-matched arguments #63
Comments
@cova-fe Looking at the code, it's actually line 86, so first please check you're running git master.
If this is throwing an error, this looks like it could be different behaviour in puppet4. Can you confirm what versions of things you're using please? If that's the case, please compare what puppet4 and puppet3.x return for these two variables, and chances are we'd need to add a simple conditional for the split if the empty values are now different. HTH and looking forward to your detective work and patch! |
Thanks for reply. I'll check asap the puppet4 behaviour, in fact I'm using puppet 4.2.1, and I'll report back. |
One thing that is not clear to me is how the fact about brick is collected. In the machine throwing the error above, there is no volume defined, so I'm perplexed to see an error related to bricks.
I'm not sure where facter collects volume and bricks info, can you point me in the right direction? Thanks. |
@cova-fe Sure! The fact is here: https://github.com/purpleidea/puppet-gluster/blob/master/lib/facter/gluster_bricks.rb#L97 Basically when a type runs, in this case, the brick type, it puts little text files in some dir, which are then later read in by the fact. See here: When there are no files yet, you get your error. But you don't need to figure out any of that to fix the bug. Just concentrate on the part I pointed you at in my first comment. HTH |
Hi all, tring to run this module I'm getting this error:
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Function Call, function 'split' called with mis-matched arguments
expected one of:
split(String str, String pattern) - arg count {2}
split(String str, Regexp pattern) - arg count {2}
split(String str, Type[Regexp] pattern) - arg count {2}
actual:
split(Undef, String) - arg count {2} at modules/gluster/manifests/volume.pp:85:22 on node
looking at the code, gluster_brick_group_fact is the variable used and indeed it seems empty.
looking also in facts directory, (tmp/gluster/brick/fsuuid), it contains no files, thus the error.
Unfortunately, I can't understand where can it be the problem. Any hint about where to look? (glusterfs 3.4)
Many thanks.
The text was updated successfully, but these errors were encountered: