<div>Hello again,</div><div> </div><div>Definitely the vmm_ec2 is not running, even manualy... I enabled debugging and I get:</div><div> </div><div>->oned.log</div><div>Tue May 8 10:30:46 2012 [VMM][I]: Loading Virtual Machine Manager drivers.<br>
Tue May 8 10:30:46 2012 [VMM][I]: Loading driver: vmm_kvm (KVM)<br>Tue May 8 10:30:46 2012 [VMM][I]: Driver vmm_kvm loaded.<br>Tue May 8 10:30:46 2012 [VMM][I]: Loading driver: vmm_ec2 (XML)<br>Tue May 8 10:30:46 2012 [MAD][E]: MAD did not answer INIT command<br>
Tue May 8 10:30:46 2012 [InM][I]: Loading Information Manager drivers.<br>Tue May 8 10:30:46 2012 [InM][I]: Loading driver: im_kvm<br>Tue May 8 10:30:46 2012 [InM][I]: Driver im_kvm loaded<br>Tue May 8 10:30:46 2012 [InM][I]: Loading driver: im_ec2<br>
Tue May 8 10:30:46 2012 [InM][I]: Driver im_ec2 loaded</div><div> </div><div>->vmm_ec2.log</div><div>/opt/opennebula/lib/mads/one_vmm_ec2.rb:363: syntax error, unexpected ')', expecting '='<br>/opt/opennebula/lib/mads/one_vmm_ec2.rb:397: syntax error, unexpected kEND, expecting $end<br clear="all">
</div><div>Lines 363 and 397 seem perfectly normal as all code above and bellow:</div><div> </div><div>-> line 363</div><div>def exec_and_log_ec2(action, xml, extra_params="", id)</div><div>-> line 397 </div>
<div>end</div><div> </div><div>I even replaced the one_vmm_ec2.rb file with the source from the repository <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/vmm_mad/ec2">http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/vmm_mad/ec2</a>, but no luck yet.</div>
<div> </div><div>Ideas? Thanks for your help!</div><div><br>--<br>André Monteiro<br><br><br>
<br><br></div><div class="gmail_quote">On Mon, May 7, 2012 at 2:08 PM, Daniel Molina <span dir="ltr"><<a href="mailto:dmolina@opennebula.org" target="_blank">dmolina@opennebula.org</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hi André,<br>
<div class="im"><br>
On 7 May 2012 12:39, André Monteiro <<a href="mailto:andremonteiro@ua.pt">andremonteiro@ua.pt</a>> wrote:<br>
><br>
> Hello everyone,<br>
><br>
> I'me trying configure my EC2 account with my OpenNebula 3.4, but so far I didn't succeed. Some of the instructions on <a href="http://opennebula.org/documentation:rel3.4:ec2g" target="_blank">http://opennebula.org/documentation:rel3.4:ec2g</a> are not up to date, i.e. creating the ec2 host is described as "$ onehost create ec2 im_ec2 vmm_ec2 tm_dummy" but in 3.4 the transfer manager is not used. All my EC2 configuration data and variables are ok and double-checked, I can manage images with the ec2-api-tools.<br>
<br>
<br>
</div>Fixed, thanks for the feedback<br>
<div><div class="h5"><br>
><br>
><br>
> When creating a new image from a basic template,<br>
><br>
> EC2=[<br>
> AMI="ami-77770a91e",<br>
> AUTHORIZED_PORTS="22",<br>
> INSTANCETYPE="t1.micro",<br>
> KEYPAIR="aws_hpc" ]<br>
> NAME="EC2_MICRO"<br>
> REQUIREMENTS="HOSTNAME='ec2'"<br>
><br>
><br>
> I get this in the log:<br>
><br>
> Fri May 4 18:00:38 2012 [DiM][I]: New VM state is ACTIVE.<br>
> Fri May 4 18:00:38 2012 [LCM][I]: New VM state is PROLOG.<br>
> Fri May 4 18:00:38 2012 [VM][I]: Virtual Machine has no context<br>
> Fri May 4 18:00:38 2012 [LCM][I]: New VM state is BOOT<br>
> Fri May 4 18:00:38 2012 [VMM][E]: deploy_action, error getting driver vmm_ec2<br>
> Fri May 4 18:00:38 2012 [DiM][I]: New VM state is FAILED<br>
><br>
> Can anyone help me?<br>
> My vmm_ec2.conf is<br>
><br>
> <TEMPLATE><br>
> <EC2><br>
> <KEYPAIR>aws_hpc</KEYPAIR><br>
> <AUTHORIZEDPORTS>22</AUTHORIZEDPORTS><br>
> <INSTANCETYPE>t1.micro</INSTANCETYPE><br>
> </EC2><br>
> </TEMPLATE><br>
><br>
> My vmm_ec2rc is<br>
><br>
> EC2_HOME=/home/oneadmin/ec2-api-tools/ec2-api-tools-1.5.2.3/<br>
> EC2_PRIVATE_KEY=~/.ec2/pk.pem<br>
> EC2_CERT=~/.ec2/cert.pem<br>
> EC2_URL=<a href="https://ec2.us-east-1.amazonaws.com" target="_blank">https://ec2.us-east-1.amazonaws.com</a><br>
> JAVA_HOME=/usr<br>
> EC2_JVM_ARGS="-Xms16m -Xmx64m"<br>
> EC2_JVM_CONCURRENCY=10<br>
> and my ec2 part on oned.conf is<br>
><br>
> IM_MAD = [<br>
> name = "im_ec2",<br>
> executable = "one_im_ec2",<br>
> arguments = "im_ec2/im_ec2.conf",<br>
> default = "im_ec2/im_ec2.conf" ]<br>
> VM_MAD = [<br>
> name = "vmm_ec2",<br>
> executable = "one_vmm_ec2",<br>
> arguments = "-u <a href="https://ec2.us-east-1.amazonaws.com" target="_blank">https://ec2.us-east-1.amazonaws.com</a> -k /home/oneadmin/.ec2/pk.pem -c /home/oneadmin/.ec2/cert.pem -h /home/oneadmin/ec2-api-tools/ec2-api-tools-1.5.2.3 vmm_ec2/vmm_ec2.conf",<br>
> type = "xml" ]<br>
><br>
> Paths are all confirmed more than twice. What am I missing?<br>
><br>
<br>
</div></div>The following error is reported by the core when the driver is not<br>
defined in oned.conf or the driver initialization failed<br>
<div class="im">Fri May 4 18:00:38 2012 [VMM][E]: deploy_action, error getting driver vmm_ec2<br>
<br>
</div>If you check the first lines of the oned.log, you can see if the<br>
driver was correctly loaded.<br>
Mon May 7 05:43:10 2012 [VMM][I]: Loading driver: vmm_ec2 (XML)<br>
Mon May 7 05:43:10 2012 [VMM][I]: Driver vmm_ec2 loaded.<br>
<br>
If this is not the case, you can debug it by enabling the<br>
ONE_MAD_DEBUG level inside the /etc/defaultrc file. Also you can run<br>
the driver using the following command and write INIT to initialize<br>
the driver and check if there is any error:<br>
<br>
> $ONE_LOCATION/lib/mads/one_vmm_ec2<br>
INIT<br>
<br>
Hope this helps<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Daniel Molina<br>
Project Engineer<br>
OpenNebula - The Open Source Solution for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a> | @OpenNebula<br>
</font></span></blockquote></div><br>