<div>Hello Daniel,</div><div> </div><div>Wonderful, now everything running smoothly!<br clear="all"><br>--<br>André Monteiro<br><br><br>
<br><br></div><div class="gmail_quote">On Tue, May 8, 2012 at 11:12 AM, 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><div class="h5"><br>
On 8 May 2012 11:39, André Monteiro <<a href="mailto:andremonteiro@ua.pt">andremonteiro@ua.pt</a>> wrote:<br>
> Hello again,<br>
><br>
> Definitely the vmm_ec2 is not running, even manualy... I enabled debugging<br>
> and I get:<br>
><br>
> ->oned.log<br>
> 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<br>
><br>
> ->vmm_ec2.log<br>
> /opt/opennebula/lib/mads/one_vmm_ec2.rb:363: syntax error, unexpected ')',<br>
> expecting '='<br>
> /opt/opennebula/lib/mads/one_vmm_ec2.rb:397: syntax error, unexpected kEND,<br>
> expecting $end<br>
> Lines 363 and 397 seem perfectly normal as all code above and bellow:<br>
><br>
> -> line 363<br>
> def exec_and_log_ec2(action, xml, extra_params="", id)<br>
> -> line 397<br>
> end<br>
><br>
> I even replaced the one_vmm_ec2.rb file with the source from the repository<br>
> <a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/vmm_mad/ec2" target="_blank">http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/vmm_mad/ec2</a>,<br>
> but no luck yet.<br>
><br>
> Ideas? Thanks for your help!<br>
<br>
</div></div>I have uploaded a patch that should fix this problem:<br>
<a href="http://dev.opennebula.org/projects/opennebula/repository/revisions/a42752027227c475c7c8a3ac3c12133aafc8f1a2" target="_blank">http://dev.opennebula.org/projects/opennebula/repository/revisions/a42752027227c475c7c8a3ac3c12133aafc8f1a2</a><br>
<br>
Thanks for the feedback<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> --<br>
> André Monteiro<br>
><br>
><br>
><br>
><br>
> On Mon, May 7, 2012 at 2:08 PM, Daniel Molina <<a href="mailto:dmolina@opennebula.org">dmolina@opennebula.org</a>><br>
> wrote:<br>
>><br>
>> Hi André,<br>
>><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<br>
>> > I didn't succeed. Some of the instructions on<br>
>> > <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.<br>
>> > creating the ec2 host is described as "$ onehost create ec2 im_ec2 vmm_ec2<br>
>> > tm_dummy" but in 3.4 the transfer manager is not used. All my EC2<br>
>> > configuration data and variables are ok and double-checked, I can manage<br>
>> > images with the ec2-api-tools.<br>
>><br>
>><br>
>> Fixed, thanks for the feedback<br>
>><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<br>
>> > 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<br>
>> > /home/oneadmin/.ec2/pk.pem -c /home/oneadmin/.ec2/cert.pem -h<br>
>> > /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>
>> The following error is reported by the core when the driver is not<br>
>> defined in oned.conf or the driver initialization failed<br>
>> Fri May 4 18:00:38 2012 [VMM][E]: deploy_action, error getting driver<br>
>> vmm_ec2<br>
>><br>
>> 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>
>><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>
><br>
><br>
<br>
<br>
<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>
</div></div></blockquote></div><br>