Issue #2563 has been updated by John Axel Eriksson.
Here is the output:
debug: Failed to load library 'ldap' for feature 'ldap'
debug: /File[/var/lib/puppet/state/graphs]: Autorequiring
File[/var/lib/puppet/state]
debug: /File[/var/lib/puppet/ssl/certs/ca.pem]: Autorequiring
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/crl.pem]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/private_keys]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/certs/db003.example.com.pem]: Autorequiring
File[/var/lib/puppet/ssl/certs]
debug: /File[/var/lib/puppet/ssl/public_keys]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/lib]: Autorequiring File[/var/lib/puppet]
debug: /File[/etc/puppet/puppet.conf]: Autorequiring File[/etc/puppet]
debug: /File[/var/run/puppet/puppetd.pid]: Autorequiring File[/var/run/puppet]
debug: /File[/var/lib/puppet/state]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/clientbucket]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/private]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/client_yaml]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/certs]: Autorequiring File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/facts]: Autorequiring File[/var/lib/puppet]
debug: /File[/var/lib/puppet/ssl/private_keys/db003.example.com.pem]:
Autorequiring File[/var/lib/puppet/ssl/private_keys]
debug: /File[/var/lib/puppet/ssl/certificate_requests]: Autorequiring
File[/var/lib/puppet/ssl]
debug: /File[/var/lib/puppet/ssl/public_keys/db003.example.com.pem]:
Autorequiring File[/var/lib/puppet/ssl/public_keys]
debug: /File[/var/lib/puppet/ssl/certs/db003.example.com.pem]: Changing mode
debug: /File[/var/lib/puppet/ssl/certs/db003.example.com.pem]: 1 change(s)
debug: /File[/var/lib/puppet/ssl/certs/db003.example.com.pem]/mode: mode
changed '640' to '644'
debug: Finishing transaction -605753578 with 1 changes
debug: Using cached certificate for ca
debug: Using cached certificate for db003.example.com
debug: Using cached certificate for ca
debug: Using cached certificate for db003.example.com
debug: Using cached certificate_revocation_list for ca
debug: Puppet::Network::Format[json]: false value when expecting true
debug: Format s not supported for Puppet::Resource::Catalog; has not
implemented method 'from_s'
/usr/lib/ruby/1.8/puppet/indirector/rest.rb:53:in `deserialize'
/usr/lib/ruby/1.8/puppet/indirector/rest.rb:67:in `find'
/usr/lib/ruby/1.8/puppet/indirector/indirection.rb:198:in `find'
/usr/lib/ruby/1.8/puppet/indirector.rb:51:in `find'
/usr/lib/ruby/1.8/puppet/configurer.rb:94:in `retrieve_catalog'
/usr/lib/ruby/1.8/puppet/util.rb:425:in `thinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib/ruby/1.8/puppet/util.rb:424:in `thinmark'
/usr/lib/ruby/1.8/puppet/configurer.rb:93:in `retrieve_catalog'
/usr/lib/ruby/1.8/puppet/configurer.rb:135:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:53:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:130:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:51:in `run'
/usr/lib/ruby/1.8/puppet/application/puppetd.rb:103:in `onetime'
/usr/lib/ruby/1.8/puppet/application.rb:226:in `send'
/usr/lib/ruby/1.8/puppet/application.rb:226:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:306:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:217:in `run'
/usr/sbin/puppetd:159
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could
not parse for environment production: can't convert Puppet::Parser::AST::Regex
into String at /etc/puppet/manifests/nodes.pp:170
notice: Using cached catalog
err: Could not retrieve catalog; skipping run
This is when I added another regex node. Currently not in use but looks like
this:
node /^web\-([0-9]*)\.example\.com$/ {
}
So, as soon as I add that puppet skips the run. I also tried a simpler
regex node:
node /^abc\.example\.com$/ {
}
and got the same error.
Afaict the problem occurs when I have more than 1 regex node definition...
(I changed my domain to example.com obviously)
----------------------------------------
Bug #2563: Can't use more than one node using regex node name matching
http://projects.reductivelabs.com/issues/2563
Author: John Axel Eriksson
Status: Needs more information
Priority: Normal
Assigned to: Brice Figureau
Category: language
Target version: 0.25.0
Complexity: Unknown
Affected version: 0.25.0rc1
Keywords: regex node name matching
If I have these two nodes:
node /^web\-([0-9]*)\.example\.com$/ {}
node /^db\d+\.example\.com$/ {}
then node matching doesn't work afaict. At least on the db nodes (not using the
web ones currently) I get:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could
not parse for environment production: can't convert Puppet::Parser::AST::Regex
into String at /etc/puppet/manifests/nodes.pp:168
notice: Using cached catalog
err: Could not apply complete catalog: Could not retrieve dependency
'Exec[apt-update]' of Package[mysql-client] at
/etc/puppet/modules/mysql/manifests/init.pp:3
notice: Finished catalog run in 0.03 seconds
As soon as I comment out the node with /^web\-([0-9]*)\.example\.com$/ the
problem goes away.
--
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://reductivelabs.com/redmine/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
-~----------~----~----~----~------~----~------~--~---