<div dir="ltr"><div><div><div><div><div><div><div><div>I prepared AppStage environment VM with Ubuntu 12.04 LTS follow below guide:<br><br><a href="http://opennebula.org/documentation:archives:rel4.0:appstage_preparing_the_vm">http://opennebula.org/documentation:archives:rel4.0:appstage_preparing_the_vm</a><br>
<br></div>AppStage guest package was installed and I can see there are:<br><br></div>/etc/init.d/vmcontext<br></div>/etc/one-context.d/00-network<br></div>/etc/one-context.d/01-dns<br></div>/etc/one-context.d/02-ssh_public_key<br>
</div>/etc/one-context.d/99-one-chef<br><br></div>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.<br>
<br></div><div>I piped the 99-one-chef output to log file:<br><br>root@u12AppStageVM:~# cat /tmp/99-one-chef.log <br>{}<br>Initialized empty Git repository in /var/tmp/chef/site_cookbooks/.git/<br>[master (root-commit) 00b331e] Initial Commit<br>
0 files changed<br> create mode 100644 delete_me<br><br></div><div>I attached chef configuration and node json files for your reference:<br><br>root@u12AppStageVM:~# cat /var/tmp/chef/chef.conf <br>file_cache_path "/var/tmp/chef/cache"<br>
cookbook_path ["/var/tmp/chef/cookbooks", "/var/tmp/chef/site_cookbooks"]<br><br></div><div>node json file:<br>root@u12AppStageVM:~# cat /var/tmp/chef/node.json <br>{"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"}}<br>
<br></div><div>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.<br><br></div>Thanks and regards,<br>Naza<br></div>