Issue #5212 has been updated by Nigel Kersten.
Status changed from Needs More Information to Accepted
Jesse Wolfe wrote:
> This is with standalone ("puppet apply") ?
> Do we support storeconfigs in standalone mode?
> I'm not certain that I understand the use case.
We do support it. The primary use case is better scaling where clients do all
the catalog compilation in environments where all information can be accessible
to all nodes.
----------------------------------------
Bug #5212: With Puppet standalone, exported facts are overriding local facts
https://projects.puppetlabs.com/issues/5212
Author: Jordan Sissel
Status: Accepted
Priority: Normal
Assignee:
Category: exported resources
Target version: 2.6.6
Affected Puppet version: 2.6.2
Keywords: exported facts override local
Branch:
I have custom facts that are being overriden by the values stored in the
storeconfig database.
That is, if I run 'FACTERLIB=/path/to/puppet/facts facter' I see the correct
fact, but when I run puppet I see the old value.
On a hunch, I did this in my storeconfigs mysql db:
<pre>
mysql> delete from fact_names;
Query OK, 126 rows affected (0.03 sec)
mysql> delete from fact_values;
Query OK, 4075 rows affected (0.12 sec)
</pre>
It is not relevant w hether the above is an unsupported operation - I am just
hacking and debugging right now ;)
Here's the result:
% sudo puppet --modulepath /opt/puppet/modules --verbose
--no-use_cached_catalog --storeconfigs --thin_storeconfigs --ignorecache
/opt/puppet/manifests/site.pp
info: Loading facts in truth
info: Loading facts in rightscale
info: Loading facts in zookeeper
info: Connecting to mysql database: puppet
warning: Host is missing hostname and/or domain: solr13-1.prod.loggly.net
err: Scope(Node[default]): Unsupported operatingsystem: ''
info: Caching catalog for solr13-1.prod.loggly.net
info: Applying configuration version '1289001996'
notice: /Stage[main]//Node[default]/Exec[apt refresh]/returns: executed
successfully
</pre>
So if the facts table is empty, the node can't find its facts. This is very
strange. So I try this:
<pre>
mysql> delete from hosts;
Query OK, 37 rows affected (0.01 sec)
</pre>
And things start working...
Basically, it seems like facts stored in the storeconfig db override local
facts, which seems like a bug to me given it prevents facts from changing.
Thoughts?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.