[chef] Error in mysql cookbook


Chronological Thread 
  • From: Peeyush Gupta < >
  • To: " " < >
  • Subject: [chef] Error in mysql cookbook
  • Date: Wed, 5 Mar 2014 15:53:50 +0800 (SGT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=pXFXp5tlE7YiyLq1Ro7bz0tHAXvLqb8kA6V9wf6p2iM6x52OEJvo97HF0EH0l5b0BVSE95IqpUXv5+fM+k9Qkff3y3N34Qvj7t10pYp3iTZzWvKZKDfi3Zkiu+s1VK1fKRNSCMhaKOWIATS5NZydHOt/cQkTr5RUWjR0WBZt528=;

Hi all,

I am trying to deploy openstack using openstack-chef-repo (https://github.com/stackforge/openstack-chef-repo). I am using fedora 19 and here is the error I am getting:

================================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/openstack-ops-database/recipes/server.rb
================================================================================


ArgumentError
-------------
Bad string format template[], you must have a string like resource_type[name]!


Cookbook Trace:
---------------
  /var/chef/cache/cookbooks/openstack-ops-database/recipes/mysql-server.rb:50:in `from_file'
  /var/chef/cache/cookbooks/openstack-ops-database/recipes/server.rb:22:in `from_file'


Relevant File Content:
----------------------
/var/chef/cache/cookbooks/openstack-ops-database/recipes/mysql-server.rb:

 43:  case node['platform_family']
 44:  when 'debian'
 45:    mycnf_template = '/etc/mysql/my.cnf'
 46:  when 'rhel'
 47:    mycnf_template = 'final-my.cnf'
 48:  end
 49:  
 50>> r = resources("template[#{mycnf_template}]")
 51:  r.notifies_immediately(:restart, 'service[mysql]')
 52:  
 53:  mysql_connection_info = {
 54:    host: 'localhost',
 55:    username: 'root',
 56:    password: node['mysql']['server_root_password']
 57:  }
 58:  
 59:  mysql_database 'FLUSH PRIVILEGES' do

Now, I talked to people on IRC and apparently not all cookbooks work with Fedora. I don't plan to put Fedora in production, we would be using RHEL there, I tried it only for testing purposes. But I am still interested to know, what is causing this error? I mean I have template defined, the why isn't the cookbook able to find it? Isn't Fedora a part of RHEL family anymore?
 
Thanks,
~Peeyush Gupta



Archive powered by MHonArc 2.6.16.

§