[moving to [email protected]...]

ap

I am trying to execute mysql::server  on ubuntu precise image. some how the
recipes are not getting executed through jclouds api's. if i execute the
role going inside the vm
it works absolutely fine. but with jclouds api's it fails. please check the
output from jcloud's API.

this is my role
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{"name": "mysql-RNFcW3-Role","description":"mysql-RNFW2-Role: created by
Jayant","default_attributes":{},"override_attributes":{"mysql":
{"server_debian_password":"randomly
generated","server_repl_password":"randomly
generated","server_root_password":"randomly
generated"}},"json_class":"Chef::Role","chef_type":"role","run_list":["recipe[mysql]","recipe[mysql::server]"]}
~
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
here is the stack trace.

{RegionOne/99ebf04c-6e23-4b2e-b603-0e8b4cb4834c={output=[2014-01-11T15:51:30+00:00]
INFO: Forking chef instance to converge...
[2014-01-11T15:51:30+00:00] INFO: *** Chef 11.8.2 ***
[2014-01-11T15:51:30+00:00] INFO: Chef-client pid: 12664
[2014-01-11T15:51:30+00:00] INFO: Setting the run_list to
["role[mysql-RNFW2-Role]"] from JSON
[2014-01-11T15:51:30+00:00] INFO: Run List is [role[mysql-RNFW2-Role]]
[2014-01-11T15:51:30+00:00] INFO: Run List expands to [mysql, mysql::server]
[2014-01-11T15:51:30+00:00] INFO: Starting Chef Run for mysql-RNFW2-Node
[2014-01-11T15:51:30+00:00] INFO: Running start handlers
[2014-01-11T15:51:30+00:00] INFO: Start handlers complete.
[2014-01-11T15:51:30+00:00] WARN: Cloning resource attributes for
directory[/var/lib/mysql] from prior resource (CHEF-3694)
[2014-01-11T15:51:30+00:00] WARN: Previous directory[/var/lib/mysql]:
/var/chef/cookbooks/mysql/recipes/server.rb:108:in `block in from_file'
[2014-01-11T15:51:30+00:00] WARN: Current  directory[/var/lib/mysql]:
/var/chef/cookbooks/mysql/recipes/server.rb:108:in `block in from_file'
[2014-01-11T15:51:30+00:00] INFO: Could not find previously defined
grants.sql resource
[2014-01-11T15:51:30+00:00] WARN: Cloning resource attributes for
service[mysql] from prior resource (CHEF-3694)
[2014-01-11T15:51:30+00:00] WARN: Previous service[mysql]:
/var/chef/cookbooks/mysql/recipes/server.rb:154:in `from_file'
[2014-01-11T15:51:30+00:00] WARN: Current  service[mysql]:
/var/chef/cookbooks/mysql/recipes/server.rb:218:in `from_file'
[2014-01-11T15:51:30+00:00] INFO: Processing package[mysql-client] action
install (mysql::client line 46)
[2014-01-11T15:51:30+00:00] INFO: SIGHUP received, reconfiguring
[2014-01-11T15:51:30+00:00] INFO: Running queued delayed notifications
before re-raising exception
[2014-01-11T15:51:30+00:00] ERROR: Running exception handlers
[2014-01-11T15:51:30+00:00] ERROR: Exception handlers complete
[2014-01-11T15:51:30+00:00] FATAL: Stacktrace dumped to
/var/chef/chef-stacktrace.out
[2014-01-11T15:51:30+00:00] ERROR: package[mysql-client] (mysql::client
line 46) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected
process to exit with [0], but received ''
---- Begin output of apt-cache policy mysql-client ----
STDOUT:
STDERR:
---- End output of apt-cache policy mysql-client ----
Ran apt-cache policy mysql-client returned

================================================================================
Error executing action `install` on resource
'package[mysql-client]'
================================================================================


Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received ''
---- Begin output of apt-cache policy mysql-client ----
STDOUT:
STDERR:
---- End output of apt-cache policy mysql-client ----
Ran apt-cache policy mysql-client returned 


Resource Declaration:
---------------------
# In /var/chef/cookbooks/mysql/recipes/client.rb

 46:   package mysql_pack do
 47:     action :install
 48:   end
 49: end



Compiled Resource:
------------------
# Declared in /var/chef/cookbooks/mysql/recipes/client.rb:46:in `block in
from_file'

package("mysql-client") do
  action [:install]
  retries 0
  retry_delay 2
  package_name "mysql-client"
  cookbook_name :mysql
  recipe_name "client"
end



[2014-01-11T15:51:30+00:00] INFO: Forking chef instance to converge...
[2014-01-11T15:51:30+00:00] INFO: SIGHUP received, reconfiguring
[2014-01-11T15:51:30+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)
, error=, exitStatus=1}}

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
What does this mean.please help.

Regards
Jayant Kaushal

Reply via email to