[chef] mysql_database resource does not create database ... and chef-client -ldebug not showing any log output from database cookbook


Chronological Thread 
  • From: Jay Pipes < >
  • To:
  • Subject: [chef] mysql_database resource does not create database ... and chef-client -ldebug not showing any log output from database cookbook
  • Date: Thu, 13 Jun 2013 00:04:19 -0400

Hi Chefs,

I am trying to debug a seemingly normal and correct call to create a new database and db user:

  mysql_database "install reviewdb" do
    connection mysql_info
    database_name db_name
    action :create
  end

  mysql_database_user db_username do
    connection mysql_info
    password db_password
    database_name db_name
    host db_address
    action [:create, :grant]
  end

I've validated all of the mysql_info credentials are correct, but this code never seems to get run. Or at least, I can see no record of it running. The database and the user never get created, and when I run chef-client -ldebug, I see no log output at all from the database cookbook.

Can someone tell me if I'm doing something wrong or how I can see what the database cookbook LWRPs are actually doing in the chef-client log output?

Thanks much!
-jay



Archive powered by MHonArc 2.6.16.

§