Ask Your Question
0

Issues with puppetlabs/mysql module

asked 2015-07-20 10:02:36 -0500

jarek04 gravatar image

updated 2015-07-28 04:21:14 -0500

After install this module i get error : Error: Facter: error while resolving custom fact "mysqlserverid": undefined method `split' for nil:NilClass

Puppet v4.2.1

facterversion => 3.0.2

/opt/puppetlabs/bin/facter -p --debug show mysql_server_id
2015-07-28 09:19:59.262936 INFO  puppetlabs.facter - executed with command line: -p --debug show mysql_server_id.
2015-07-28 09:19:59.263323 INFO  puppetlabs.facter - ruby loaded from "/opt/puppetlabs/puppet/lib/libruby.so.2.1.0".
2015-07-28 09:19:59.266591 INFO  puppetlabs.facter - using ruby version 2.1.6 to resolve custom facts.
2015-07-28 09:19:59.286114 INFO  puppetlabs.facter - requested queries: mysql_server_id show.
2015-07-28 09:19:59.286156 DEBUG puppetlabs.facter - fact "facterversion" has resolved to "3.0.2".
2015-07-28 09:19:59.286402 DEBUG puppetlabs.facter - searching "/opt/puppetlabs/facter/facts.d" for external facts.
2015-07-28 09:19:59.286470 DEBUG puppetlabs.facter - skipping external facts for "/etc/facter/facts.d": No such file or directory
2015-07-28 09:19:59.286497 DEBUG puppetlabs.facter - skipping external facts for "/etc/puppetlabs/facter/facts.d": No such file or directory
2015-07-28 09:19:59.286511 DEBUG puppetlabs.facter - no external facts were found.
mysql_server_id =>
show =>
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-08-07 12:11:25 -0500

jarek04 gravatar image

Fixed in puppetlabs-mysql v3.5.0

edit flag offensive delete link more
-1

answered 2015-07-22 08:38:40 -0500

i recall this being an issue with an old version of facter - what is your puppet & facter versions?

also maybe try and rerun byt set your locale to C

edit flag offensive delete link more

Comments

root@ns1:/etc/puppetlabs/puppet# /opt/puppetlabs/bin/facter --version 3.0.1 (commit 9b1ef723a1494a01e0eccfe93a75fd43316690c2) root@ns1:/etc/puppetlabs/puppet# /opt/puppetlabs/bin/puppet --version 4.2.0 root@ns1:/etc# locale LC_ALL=C

jarek04 gravatar imagejarek04 ( 2015-07-22 10:29:12 -0500 )edit

what does facter -p --debug show? (specifically for mysqlserverid) also show output of which facter

sahumphries gravatar imagesahumphries ( 2015-07-28 03:31:11 -0500 )edit

is to long to comment i edit post i past it. It happens even on clear debian 7 on openvz.

jarek04 gravatar imagejarek04 ( 2015-07-28 04:23:03 -0500 )edit

i've tested this on deb 7 and ok -- however the only thing I can think of is that in openvz it may not have a mac address (the mysql_server_id uses the mac address to generate id) worth looking at: https://openvz.org/Virtual_Ethernet_device ?

sahumphries gravatar imagesahumphries ( 2015-07-28 05:53:07 -0500 )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: 2015-07-20 10:02:36 -0500

Seen: 276 times

Last updated: Aug 07 '15