This turned up from PE-3666
In short, once the Puppet Enterprise module was fixed to not blow up, the PDB module throws errors and warnings.
Via Nick Lewis:
The thing I'm seeing is that it wraps creation of the validate_db_connection in a check that database_password != undef In the world of Parser Classicâ„¢ empty string = undef, so it doesn't try to create it I'm betting that's somehow not the case with the future parser (though I don't know why it would be empty string and not undef)
For steps to reproduce, see the pull request on the puppet enterprise module
Here's the errors:
[root@centos6b ~]# puppet agent -t
Warning: Setting modulepath is deprecated in puppet.conf. See http: (at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/settings.rb:1067:in `each')
Info: Retrieving plugin
Info: Loading facts in /opt/puppet/share/puppet/modules/concat/lib/facter/concat_basedir.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/pe_puppetdb/lib/facter/pe_puppetdb_server_status.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/auth_conf/lib/facter/custom_auth_conf.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/pe_postgresql/lib/facter/pe_postgres_default_version.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/puppet_vardir.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/pe_version.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/root_home.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/stdlib/lib/facter/facter_dot_d.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/postgresql/lib/facter/postgres_default_version.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/pe_staging/lib/facter/staging_http_get.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_version.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/firewall/lib/facter/ip6tables_version.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/windows.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/platform_tag.rb
Info: Loading facts in /opt/puppet/share/puppet/modules/puppet_enterprise/lib/facter/pe_build.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/windows.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/postgres_default_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/custom_auth_conf.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_postgres_default_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/platform_tag.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_build.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/ip6tables_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_puppetdb_server_status.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/staging_http_get.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/root_home.rb
Info: Loading facts in /var/opt/lib/pe-puppet/lib/facter/facter_dot_d.rb
Info: Caching catalog for centos6b.vm
Warning: The package type's allow_virtual parameter will be changing its default value from false to true in a future release. If you do not want to allow virtual packages, please explicitly set allow_virtual to false.
(at /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/type.rb:816:in `set_default')
Info: Applying configuration version '1400704367'
Warning: Exec[validate postgres connection for localhost/pe-puppetdb](provider=posix): Cannot understand environment setting "PGPASSWORD="
Warning: Exec[validate postgres connection for localhost/pe-puppetdb](provider=posix): Cannot understand environment setting "PGPASSWORD="
Notice: /Stage[main]/Pe_puppetdb::Server::Validate_db/Pe_postgresql::Validate_db_connection[validate puppetdb postgres connection]/Exec[validate postgres connection for localhost/pe-puppetdb]/returns: Unable to connect to defined database using: /opt/puppet/bin/psql --tuples-only --quiet -h localhost -U pe-puppetdb -p 5432 --dbname pe-puppetdb
Error: echo 'Unable to connect to defined database using: /opt/puppet/bin/psql --tuples-only --quiet -h localhost -U pe-puppetdb -p 5432 --dbname pe-puppetdb ' && false returned 1 instead of one of [0]
Error: /Stage[main]/Pe_puppetdb::Server::Validate_db/Pe_postgresql::Validate_db_connection[validate puppetdb postgres connection]/Exec[validate postgres connection for localhost/pe-puppetdb]/returns: change from notrun to 0 failed: echo 'Unable to connect to defined database using: /opt/puppet/bin/psql --tuples-only --quiet -h localhost -U pe-puppetdb -p 5432 --dbname pe-puppetdb ' && false returned 1 instead of one of [0]
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_psdatabase_username]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_psdatabase_username]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_psdatabase_password]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_psdatabase_password]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_classname]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_classname]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_subprotocol]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_subprotocol]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_pgs]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_pgs]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_subname]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_subname]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_gc_interval]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_gc_interval]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_node_ttl]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_node_ttl]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_node_purge_ttl]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_node_purge_ttl]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_report_ttl]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Database_ini/Ini_setting[puppetdb_report_ttl]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_host]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_host]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_port]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_port]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_sslhost]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_sslhost]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_sslport]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server::Jetty_ini/Ini_setting[puppetdb_sslport]: Skipping because of failed dependencies
Notice: /Stage[main]/Pe_puppetdb::Server/Service[pe-puppetdb]: Dependency Exec[validate postgres connection for localhost/pe-puppetdb] has failures: true
Warning: /Stage[main]/Pe_puppetdb::Server/Service[pe-puppetdb]: Skipping because of failed dependencies
Notice: Finished catalog run in 25.28 seconds
|