[chef] Role & database resources for PostgreSQL: error - not connected


Chronological Thread 
  • From: Ringo De Smet < >
  • To: Chef Users < >
  • Subject: [chef] Role & database resources for PostgreSQL: error - not connected
  • Date: Tue, 7 Jun 2011 08:49:31 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=HyQvG1coi14v0BOoQsv/izxMF2tBxmLSfc1rnwhwjS+zjOJmHLeIy/gLd5RjpWVmlb 9PLUsTbB+KydkC2hoQOMG2OwqWIW69VZTeR8SDuW/508pZ/Uzya28Ah/b5MdkGDXelos MKisYfCnGlWfNdC2ZOgMFxTRK5LIJGBx3/tAw=

Hello,

Similar to the database resource in the MySQL cookbook, I am trying to
add role and database resources to the PostgreSQL cookbook.

https://github.com/atriso/chef-repo-pas

Most of the code is in place (cleanup needed), but I am stuck with an
error that my Postgres client tells me I'm not connected, just after
my connection is made.

Generated at Mon Jun 06 23:47:37 -0700 2011
PGError: postgresql_role[openerp] (openerp::database line 30) had an
error: not connected
/tmp/vagrant-chef/cookbooks-0/postgresql/providers/role.rb:69:in `exec'
/tmp/vagrant-chef/cookbooks-0/postgresql/providers/role.rb:69:in `exists?'
/tmp/vagrant-chef/cookbooks-0/postgresql/providers/role.rb:24:in
`class_from_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/provider.rb:104:in
`instance_eval'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/provider.rb:104:in
`action_create'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource.rb:417:in
`send'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource.rb:417:in
`run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:45:in
`run_action'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:78:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection.rb:94
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in
`call'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in
`call_iterator_block'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in
`step'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in
`iterate'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in
`each_with_index'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/resource_collection.rb:92:in
`execute_each_resource'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/runner.rb:76:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/client.rb:312:in
`converge'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/client.rb:160:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:192:in
`run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:183:in
`loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application/solo.rb:183:in
`run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/../lib/chef/application.rb:66:in
`run'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.0/bin/chef-solo:25
/usr/bin/chef-solo:19:in `load'
/usr/bin/chef-solo:19

Could anyone have a look at the code and see where I missed something?

Ringo


  • [chef] Role & database resources for PostgreSQL: error - not connected, Ringo De Smet, 06/06/2011

Archive powered by MHonArc 2.6.16.

§