<div dir="ltr"><div><div>Thanks Javier.<br><br></div>I found the problem. The required environments for chef-solo to run are missing. Therefore I need to inject all the required chef environments inside the context block of base VM. <br>
<br></div>Regards,<br>Naza<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 28, 2013 at 5:00 PM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">AppStage is not supported for OpenNebula 4.x so we have not tested it in this version. Anyway, is there any file downloaded it <span style="font-family:arial,sans-serif;font-size:13px">/var/tmp/chef/cookbooks or </span><span style="font-family:arial,sans-serif;font-size:13px">/var/tmp/site_chef/cookbooks? Can you access internet from that VM? It is needed to download recipes.</span></div>

<div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 26, 2013 at 9:10 AM, Naza <span dir="ltr"><<a href="mailto:naza1715@gmail.com" target="_blank">naza1715@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<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" target="_blank">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>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Join us at OpenNebulaConf2013 in Berlin from the 24th to the 26th of September 2013!<br><br>Javier Fontán Muiños<br>
Developer<br>OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | @OpenNebula | <a href="http://github.com/jfontan" target="_blank">github.com/jfontan</a>
</font></span></div>
</blockquote></div><br></div>