Hello Daniel, Wonderful, now everything running smoothly!
-- André Monteiro On Tue, May 8, 2012 at 11:12 AM, Daniel Molina <[email protected]>wrote: > Hi André, > > On 8 May 2012 11:39, André Monteiro <[email protected]> wrote: > > Hello again, > > > > Definitely the vmm_ec2 is not running, even manualy... I enabled > debugging > > and I get: > > > > ->oned.log > > Tue May 8 10:30:46 2012 [VMM][I]: Loading Virtual Machine Manager > drivers. > > Tue May 8 10:30:46 2012 [VMM][I]: Loading driver: vmm_kvm (KVM) > > Tue May 8 10:30:46 2012 [VMM][I]: Driver vmm_kvm loaded. > > Tue May 8 10:30:46 2012 [VMM][I]: Loading driver: vmm_ec2 (XML) > > Tue May 8 10:30:46 2012 [MAD][E]: MAD did not answer INIT command > > Tue May 8 10:30:46 2012 [InM][I]: Loading Information Manager drivers. > > Tue May 8 10:30:46 2012 [InM][I]: Loading driver: im_kvm > > Tue May 8 10:30:46 2012 [InM][I]: Driver im_kvm loaded > > Tue May 8 10:30:46 2012 [InM][I]: Loading driver: im_ec2 > > Tue May 8 10:30:46 2012 [InM][I]: Driver im_ec2 loaded > > > > ->vmm_ec2.log > > /opt/opennebula/lib/mads/one_vmm_ec2.rb:363: syntax error, unexpected > ')', > > expecting '=' > > /opt/opennebula/lib/mads/one_vmm_ec2.rb:397: syntax error, unexpected > kEND, > > expecting $end > > Lines 363 and 397 seem perfectly normal as all code above and bellow: > > > > -> line 363 > > def exec_and_log_ec2(action, xml, extra_params="", id) > > -> line 397 > > end > > > > I even replaced the one_vmm_ec2.rb file with the source from the > repository > > > http://dev.opennebula.org/projects/opennebula/repository/revisions/master/show/src/vmm_mad/ec2 > , > > but no luck yet. > > > > Ideas? Thanks for your help! > > I have uploaded a patch that should fix this problem: > > http://dev.opennebula.org/projects/opennebula/repository/revisions/a42752027227c475c7c8a3ac3c12133aafc8f1a2 > > Thanks for the feedback > > > > > -- > > André Monteiro > > > > > > > > > > On Mon, May 7, 2012 at 2:08 PM, Daniel Molina <[email protected]> > > wrote: > >> > >> Hi André, > >> > >> On 7 May 2012 12:39, André Monteiro <[email protected]> wrote: > >> > > >> > Hello everyone, > >> > > >> > I'me trying configure my EC2 account with my OpenNebula 3.4, but so > far > >> > I didn't succeed. Some of the instructions on > >> > http://opennebula.org/documentation:rel3.4:ec2g 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. > >> > >> > >> Fixed, thanks for the feedback > >> > >> > > >> > > >> > When creating a new image from a basic template, > >> > > >> > EC2=[ > >> > AMI="ami-77770a91e", > >> > AUTHORIZED_PORTS="22", > >> > INSTANCETYPE="t1.micro", > >> > KEYPAIR="aws_hpc" ] > >> > NAME="EC2_MICRO" > >> > REQUIREMENTS="HOSTNAME='ec2'" > >> > > >> > > >> > I get this in the log: > >> > > >> > Fri May 4 18:00:38 2012 [DiM][I]: New VM state is ACTIVE. > >> > Fri May 4 18:00:38 2012 [LCM][I]: New VM state is PROLOG. > >> > Fri May 4 18:00:38 2012 [VM][I]: Virtual Machine has no context > >> > Fri May 4 18:00:38 2012 [LCM][I]: New VM state is BOOT > >> > Fri May 4 18:00:38 2012 [VMM][E]: deploy_action, error getting driver > >> > vmm_ec2 > >> > Fri May 4 18:00:38 2012 [DiM][I]: New VM state is FAILED > >> > > >> > Can anyone help me? > >> > My vmm_ec2.conf is > >> > > >> > <TEMPLATE> > >> > <EC2> > >> > <KEYPAIR>aws_hpc</KEYPAIR> > >> > <AUTHORIZEDPORTS>22</AUTHORIZEDPORTS> > >> > <INSTANCETYPE>t1.micro</INSTANCETYPE> > >> > </EC2> > >> > </TEMPLATE> > >> > > >> > My vmm_ec2rc is > >> > > >> > EC2_HOME=/home/oneadmin/ec2-api-tools/ec2-api-tools-1.5.2.3/ > >> > EC2_PRIVATE_KEY=~/.ec2/pk.pem > >> > EC2_CERT=~/.ec2/cert.pem > >> > EC2_URL=https://ec2.us-east-1.amazonaws.com > >> > JAVA_HOME=/usr > >> > EC2_JVM_ARGS="-Xms16m -Xmx64m" > >> > EC2_JVM_CONCURRENCY=10 > >> > and my ec2 part on oned.conf is > >> > > >> > IM_MAD = [ > >> > name = "im_ec2", > >> > executable = "one_im_ec2", > >> > arguments = "im_ec2/im_ec2.conf", > >> > default = "im_ec2/im_ec2.conf" ] > >> > VM_MAD = [ > >> > name = "vmm_ec2", > >> > executable = "one_vmm_ec2", > >> > arguments = "-u https://ec2.us-east-1.amazonaws.com -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", > >> > type = "xml" ] > >> > > >> > Paths are all confirmed more than twice. What am I missing? > >> > > >> > >> The following error is reported by the core when the driver is not > >> defined in oned.conf or the driver initialization failed > >> Fri May 4 18:00:38 2012 [VMM][E]: deploy_action, error getting driver > >> vmm_ec2 > >> > >> If you check the first lines of the oned.log, you can see if the > >> driver was correctly loaded. > >> Mon May 7 05:43:10 2012 [VMM][I]: Loading driver: vmm_ec2 (XML) > >> Mon May 7 05:43:10 2012 [VMM][I]: Driver vmm_ec2 loaded. > >> > >> If this is not the case, you can debug it by enabling the > >> ONE_MAD_DEBUG level inside the /etc/defaultrc file. Also you can run > >> the driver using the following command and write INIT to initialize > >> the driver and check if there is any error: > >> > >> > $ONE_LOCATION/lib/mads/one_vmm_ec2 > >> INIT > >> > >> Hope this helps > >> > >> -- > >> Daniel Molina > >> Project Engineer > >> OpenNebula - The Open Source Solution for Data Center Virtualization > >> www.OpenNebula.org | [email protected] | @OpenNebula > > > > > > > > -- > Daniel Molina > Project Engineer > OpenNebula - The Open Source Solution for Data Center Virtualization > www.OpenNebula.org | [email protected] | @OpenNebula >
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
