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?
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?
From: Julian C. Dunn
Sent: Thursday, June 13, 2013 12:32 PM
To: chef@lists.opscode.com
Subject: [chef] Re: mysql_database resource does not create database … and chef-client -ldebug not showing any log output from database cookbook
Can you paste the output of the run (with debugging turned on) somewhere?
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?