[one-users] AppStage chef-solo boot script fail

Naza naza1715 at gmail.com
Mon Aug 26 00:10:58 PDT 2013


I prepared AppStage environment VM with Ubuntu 12.04 LTS follow below guide:

http://opennebula.org/documentation:archives:rel4.0:appstage_preparing_the_vm

AppStage guest package was installed and I can see there are:

/etc/init.d/vmcontext
/etc/one-context.d/00-network
/etc/one-context.d/01-dns
/etc/one-context.d/02-ssh_public_key
/etc/one-context.d/99-one-chef

99-one-chef does not seem to be executed completely during boot. If I
execute /etc/init.d/vmcontext manually from the terminal, the ruby script
99-one-chef executed successfully.

I piped the 99-one-chef output to log file:

root at u12AppStageVM:~# cat /tmp/99-one-chef.log
{}
Initialized empty Git repository in /var/tmp/chef/site_cookbooks/.git/
[master (root-commit) 00b331e] Initial Commit
 0 files changed
 create mode 100644 delete_me

I attached chef configuration and node json files for your reference:

root at u12AppStageVM:~# cat /var/tmp/chef/chef.conf
file_cache_path "/var/tmp/chef/cache"
cookbook_path ["/var/tmp/chef/cookbooks", "/var/tmp/chef/site_cookbooks"]

node json file:
root at u12AppStageVM:~# cat /var/tmp/chef/node.json
{"name":"wordpress","run_list":["recipe[mysql::server]","recipe[wordpress]"],"wordpress":{"db":{"database":"wordpress","user":"wordpress","password":"password"}},"mysql":{"server_root_password":"password","server_repl_password":"password","server_debian_password":"password"}}

I am not sure why ruby script 99-one-chef run with differently during vm
boot and run manually from terminal. Please help me to solve this problem.

Thanks and regards,
Naza
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130826/2a7d67a9/attachment.htm>


More information about the Users mailing list