Feature #78

EC2 driver should have some form of conditionals

Added by Redmine Admin over 12 years ago. Updated over 12 years ago.

Status:ClosedStart date:
Priority:HighDue date:
Assignee:Javi Fontan% Done:

0%

Category:Drivers - Auth
Target version:Release 1.4
Resolution:fixed Pull request:

Description

Currently, it's possible to put information for local deployment as well as EC2 deployment in the same VM definition, like you've written in the documentation here:

http://opennebula.org/doku.php?id=documentation:rel1.2:ec2g

If using Eucalyptus to provide a local EC2-like cloud, it's possible to
change the EC2_URL in /etc/one/vmm_ec2/vmm_ec2rc and then use OpenNebula
to deploy instances there.
It's even possible to teach OpenNebula to know about both a local
Eucalyptus cloud as well as Amazon's EC2 at the same time. It requires creating a copy of the one_vmm_ec2 script, etc., but it's possible.

However, the VM definition language does not let me specify that "if vmm = EC2: AMI = 'ami-123456', else if vmm = Eucalyptus: AMI = 'emi-34567'".

It would be very nice if there was a way to put information for both EC2 and my local Eucalyptus in the same vm definition so that OpenNebula can take care of deploying things for me so that I don't have to worry about whether my local cloud is saturated, etc. etc., because I can leave all of that up to OpenNebula.

I'm not sure how to accomplish this, though.

patch Magnifier - Untested patch to implement host specific attributes for EC2 driver (1.22 KB) Redmine Admin, 02/13/2009 12:12 PM

Associated revisions

Revision ce4b6edc
Added by Tino Vázquez over 12 years ago

Multiple EC2 site support, as requested in ticket #78

git-svn-id: http://svn.opennebula.org/one/trunk@402 3034c82b-c49b-4eb3-8279-a7acafdc01c0

Revision f12b01f7
Added by Jaime Melis over 5 years ago

Merge pull request #78 from hsanjuan/bug-4231

Bug #4231: Display full domain names when using xentop to poll for Xen VMs

History

#1 Updated by Redmine Admin over 12 years ago

Hm... Perhaps the EC2Driver could look for "EC2:<hostname>" and fall back to "EC2"?

#2 Updated by Redmine Admin over 12 years ago

I've just attached a patch to implement this suggestion. I haven't had a chance to actually test it, but it at least compiles :)

#3 Updated by Ruben S. Montero over 12 years ago

It seems totally reasonable. So we need two parts here:
  • An attribute to store EC2 cloud that should be used with that specific EC2 description
  • The driver should pick the EC2 description based on the target host.

So we could have a description file with:

...
EC2 = [ CLOUD="amazon",
        AMI="ami-f34aaa2",
        AUTHORIZED_PORTS="22" ]

EC2 = [ CLOUD="eucalyptus",
        AMI="ami-e123456",
        AUTHORIZED_PORTS="22" ]

Obviously amazon and eucalyptus should be added with onehost create. In this way when the scheduler assigns a VM to, let say, amazon the driver will known which EC2 description it should pick.

#4 Updated by Tino Vázquez over 12 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

Fixed in r402.

Also available in: Atom PDF